All pastes #187446 Raw Edit

Mine

public text v1 · immutable
·published 2006-10-01 03:22 UTC
rendered paste body
patch <<__EOF__
--- configure.orig      2006-09-24 23:56:36.000000000 -0700
+++ configure   2006-09-24 23:57:32.000000000 -0700
@@ -1886,7 +1886,7 @@
        OTHER_OBJS="pa_mac_core/pa_mac_core.o";
        LIBS="-framework CoreAudio -lm";
        PADLL="libportaudio.dylib";
-       SHARED_FLAGS="-framework CoreAudio -dynamiclib";
+       SHARED_FLAGS="-framework CoreAudio -dynamiclib -install_name \\\$(PREFIX)/lib/\\\$(PADLL)";
        ;;

   mingw* )

--- pa_unix_oss.c.orig  Sat Sep 30 20:14:16 2006
+++ pa_unix_oss.c       Sat Sep 30 20:18:01 2006
@@ -95,7 +95,9 @@

 #include <stdio.h>
 #include <stdlib.h>
+#ifndef __FreeBSD__
 #include <malloc.h>
+#endif
 #include <memory.h>
 #include <math.h>
 #include <sys/ioctl.h>
@@ -109,6 +111,8 @@

 #ifdef __linux__
 #include <linux/soundcard.h>
+#elsif __FreeBSD__
+#include <sys/soundcard.h>
 #else
 #include <machine/soundcard.h> /* JH20010905 */
 #endif

__EOF__

arch=`uname -m`

opts=""
if [ $arch = "x86_64" ] ; then
opts="-fPIC"
fi

CFLAGS=$opts ./configure $@
$MAKE
$MAKE install