pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/portaudio Use pthread variables instead of hard-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/131a1faad5f8
branches:  trunk
changeset: 500566:131a1faad5f8
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Oct 10 15:24:08 2005 +0000

description:
Use pthread variables instead of hard-wired -lpthread for the detection
in configure. This allows DragonFly to get threading.

diffstat:

 audio/portaudio/distinfo         |   3 ++-
 audio/portaudio/patches/patch-ag |  39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletions(-)

diffs (57 lines):

diff -r 6bbcf435b50e -r 131a1faad5f8 audio/portaudio/distinfo
--- a/audio/portaudio/distinfo  Mon Oct 10 15:24:07 2005 +0000
+++ b/audio/portaudio/distinfo  Mon Oct 10 15:24:08 2005 +0000
@@ -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-ad) = 5a343e721ae183facc58195026c7e5c49536632a
 SHA1 (patch-ae) = c2744f10d80a478ad571fcce82bf301d6c50cb59
 SHA1 (patch-af) = da42578e66137f95edbbb86bde724af32e398d57
+SHA1 (patch-ag) = d8c7edcab465048389d90878f1a13bf05b6e6467
diff -r 6bbcf435b50e -r 131a1faad5f8 audio/portaudio/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio/patches/patch-ag  Mon Oct 10 15:24:08 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index