diff options
author | joerg <joerg@pkgsrc.org> | 2005-10-10 15:24:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-10-10 15:24:08 +0000 |
commit | db628e898196a658dcb97847c2ab64a501f0d329 (patch) | |
tree | cb82aec32e0f1454a0fc3ecf4839e36cd5439db3 /audio/portaudio | |
parent | 0ed24f41fdfd72798e315e7ef751a555306557e7 (diff) | |
download | pkgsrc-db628e898196a658dcb97847c2ab64a501f0d329.tar.gz |
Use pthread variables instead of hard-wired -lpthread for the detection
in configure. This allows DragonFly to get threading.
Diffstat (limited to 'audio/portaudio')
-rw-r--r-- | audio/portaudio/distinfo | 3 | ||||
-rw-r--r-- | audio/portaudio/patches/patch-ag | 39 |
2 files changed, 41 insertions, 1 deletions
diff --git a/audio/portaudio/distinfo b/audio/portaudio/distinfo index 8236a07307f..5cc940bc559 100644 --- a/audio/portaudio/distinfo +++ b/audio/portaudio/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2005/02/23 20:39:50 agc Exp $ +$NetBSD: distinfo,v 1.6 2005/10/10 15:24:08 joerg Exp $ SHA1 (portaudio_v18_1.zip) = a460ac5484137d77df17a95ce844ff7f178305b1 RMD160 (portaudio_v18_1.zip) = 3352d70225a81aae80eefabc3701658da0c750c2 @@ -8,3 +8,4 @@ SHA1 (patch-ac) = bc8133f418cc062bae1513d5aeea7107c4bb1843 SHA1 (patch-ad) = 5a343e721ae183facc58195026c7e5c49536632a SHA1 (patch-ae) = c2744f10d80a478ad571fcce82bf301d6c50cb59 SHA1 (patch-af) = da42578e66137f95edbbb86bde724af32e398d57 +SHA1 (patch-ag) = d8c7edcab465048389d90878f1a13bf05b6e6467 diff --git a/audio/portaudio/patches/patch-ag b/audio/portaudio/patches/patch-ag new file mode 100644 index 00000000000..9017fdb153d --- /dev/null +++ b/audio/portaudio/patches/patch-ag @@ -0,0 +1,39 @@ +$NetBSD: patch-ag,v 1.1 2005/10/10 15:24:08 joerg Exp $ + +--- configure.orig 2005-07-22 16:42:48.000000000 +0000 ++++ configure +@@ -1909,13 +1909,13 @@ case "${host_os}" in + + *) + +-echo "$as_me:1912: checking for pthread_create in -lpthread" >&5 +-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 ++echo "$as_me:1912: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5 ++echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6 + if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lpthread $LIBS" ++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" + cat >conftest.$ac_ext <<_ACEOF + #line 1920 "configure" + #include "confdefs.h" +@@ -1963,7 +1963,7 @@ if test $ac_cv_lib_pthread_pthread_creat + #define HAVE_LIBPTHREAD 1 + EOF + +- LIBS="-lpthread $LIBS" ++ LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" + + else + { { echo "$as_me:1969: error: libpthread not found!" >&5 +@@ -1972,7 +1972,7 @@ echo "$as_me: error: libpthread not foun + fi + + OTHER_OBJS="pa_unix_oss/pa_unix_oss.o pa_unix_oss/pa_unix.o"; +- LIBS="-lm -lpthread"; ++ LIBS="-lm ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"; + PADLL="libportaudio.so"; + SHARED_FLAGS="-shared"; + esac |