pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/libdvdnav Use PTHREAD_* for thread lib dete...
details: https://anonhg.NetBSD.org/pkgsrc/rev/331650848168
branches: trunk
changeset: 505395:331650848168
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Jan 03 14:35:32 2006 +0000
description:
Use PTHREAD_* for thread lib detection in configure. Fix DragonFly
in internal dvdread.
diffstat:
multimedia/libdvdnav/distinfo | 4 +++-
multimedia/libdvdnav/patches/patch-aa | 30 ++++++++++++++++++++++++++++++
multimedia/libdvdnav/patches/patch-ab | 13 +++++++++++++
3 files changed, 46 insertions(+), 1 deletions(-)
diffs (63 lines):
diff -r 972e4425e3df -r 331650848168 multimedia/libdvdnav/distinfo
--- a/multimedia/libdvdnav/distinfo Tue Jan 03 14:33:02 2006 +0000
+++ b/multimedia/libdvdnav/distinfo Tue Jan 03 14:35:32 2006 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/05/04 16:24:52 drochner Exp $
+$NetBSD: distinfo,v 1.4 2006/01/03 14:35:32 joerg Exp $
SHA1 (libdvdnav-0.1.10.tar.gz) = 22289cb8f297664ce36551b818c0083e936632a7
RMD160 (libdvdnav-0.1.10.tar.gz) = 75e7878ab6fd99294b5a1c8fca1391bdbf113616
Size (libdvdnav-0.1.10.tar.gz) = 539803 bytes
+SHA1 (patch-aa) = d8170dcb91c08384a6f77f69d3d960e8144686cd
+SHA1 (patch-ab) = cd8a866df5c037b2f882939048ed1e368d55a384
diff -r 972e4425e3df -r 331650848168 multimedia/libdvdnav/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libdvdnav/patches/patch-aa Tue Jan 03 14:35:32 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.3 2006/01/03 14:35:32 joerg Exp $
+
+--- configure.orig 2006-01-03 14:22:24.000000000 +0000
++++ configure
+@@ -21228,13 +21228,13 @@ case $host in
+ *mingw32* | *cygwin*)
+ ;;
+ *)
+- echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
++ echo "$as_me:$LINENO: 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
+ /* confdefs.h. */
+ _ACEOF
+@@ -21293,7 +21293,7 @@ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
+ echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
+ if test $ac_cv_lib_pthread_pthread_create = yes; then
+- THREAD_LIBS="-lpthread"
++ THREAD_LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
+ else
+ { { echo "$as_me:$LINENO: error: pthread needed" >&5
+ echo "$as_me: error: pthread needed" >&2;}
diff -r 972e4425e3df -r 331650848168 multimedia/libdvdnav/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libdvdnav/patches/patch-ab Tue Jan 03 14:35:32 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2006/01/03 14:35:32 joerg Exp $
+
+--- src/dvdread/bswap.h.orig 2006-01-03 14:25:33.000000000 +0000
++++ src/dvdread/bswap.h
+@@ -53,7 +53,7 @@
+ #define B2N_32(x) x = swap32(x)
+ #define B2N_64(x) x = swap64(x)
+
+-#elif defined(__FreeBSD__) && __FreeBSD_version >= 470000
++#elif defined(__DragonFly__) || (defined(__FreeBSD__) && __FreeBSD_version >= 470000)
+ #include <sys/endian.h>
+ #define B2N_16(x) x = be16toh(x)
+ #define B2N_32(x) x = be32toh(x)
Home |
Main Index |
Thread Index |
Old Index