pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/cinepaint Fix pthread detection.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/68678dffd2ee
branches:  trunk
changeset: 512015:68678dffd2ee
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Apr 28 18:23:28 2006 +0000

description:
Fix pthread detection.

diffstat:

 graphics/cinepaint/Makefile         |   3 ++-
 graphics/cinepaint/distinfo         |   3 ++-
 graphics/cinepaint/patches/patch-ac |  30 ++++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 2 deletions(-)

diffs (63 lines):

diff -r 8750090e54eb -r 68678dffd2ee graphics/cinepaint/Makefile
--- a/graphics/cinepaint/Makefile       Fri Apr 28 18:17:53 2006 +0000
+++ b/graphics/cinepaint/Makefile       Fri Apr 28 18:23:28 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2006/04/22 15:05:39 jschauma Exp $
+# $NetBSD: Makefile,v 1.15 2006/04/28 18:23:28 joerg Exp $
 
 DISTNAME=      cinepaint-0.20-2
 PKGNAME=       cinepaint-0.20.2
@@ -26,5 +26,6 @@
 .include "../../graphics/tiff/buildlink3.mk"
 .include "../../x11/fltk/buildlink3.mk"
 .include "../../x11/gtk/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
diff -r 8750090e54eb -r 68678dffd2ee graphics/cinepaint/distinfo
--- a/graphics/cinepaint/distinfo       Fri Apr 28 18:17:53 2006 +0000
+++ b/graphics/cinepaint/distinfo       Fri Apr 28 18:23:28 2006 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2006/01/31 21:06:56 adam Exp $
+$NetBSD: distinfo,v 1.7 2006/04/28 18:23:28 joerg Exp $
 
 SHA1 (cinepaint-0.20-2.tar.gz) = 67ef64c1708553fc50f28c622d016e6388df079b
 RMD160 (cinepaint-0.20-2.tar.gz) = 637396d43db8e6bd00d6b28fc754315be8db2d9c
 Size (cinepaint-0.20-2.tar.gz) = 7550210 bytes
 SHA1 (patch-aa) = 2259896756f3371589b4a83655e4c118d0247302
 SHA1 (patch-ab) = 1e03ffb0deab12b229f2604083bd3515a80747ac
+SHA1 (patch-ac) = c6a506ffedd7d08832256243fd67981f7ee9679f
diff -r 8750090e54eb -r 68678dffd2ee graphics/cinepaint/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/cinepaint/patches/patch-ac       Fri Apr 28 18:23:28 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ac,v 1.3 2006/04/28 18:23:28 joerg Exp $
+
+--- configure.orig     2006-04-28 17:23:15.000000000 +0000
++++ configure
+@@ -22212,13 +22212,13 @@ _ACEOF
+ fi
+ 
+ if test -z "$THREAD_LIBS"; then
+-    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
+@@ -22277,7 +22277,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: result: none" >&5
+ echo "${ECHO_T}none" >&6



Home | Main Index | Thread Index | Old Index