pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics Explicitly link against pthread.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a6e5c96af471
branches:  trunk
changeset: 533889:a6e5c96af471
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Oct 05 22:31:43 2007 +0000

description:
Explicitly link against pthread.

diffstat:

 graphics/gimp-fix-ca/Makefile     |  8 ++++++--
 graphics/gimp2-wideangle/Makefile |  7 +++++--
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (56 lines):

diff -r f4fbd94d019b -r a6e5c96af471 graphics/gimp-fix-ca/Makefile
--- a/graphics/gimp-fix-ca/Makefile     Fri Oct 05 22:14:33 2007 +0000
+++ b/graphics/gimp-fix-ca/Makefile     Fri Oct 05 22:31:43 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2007/09/25 10:03:53 hira Exp $
+# $NetBSD: Makefile,v 1.8 2007/10/05 22:31:43 joerg Exp $
 #
 
 DISTNAME=              gimp-fix-ca-2.1.0
@@ -18,16 +18,20 @@
 
 USE_TOOLS+=            pkg-config
 
+LINK_PTHREAD=          ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
+
 pre-build:
        ln -sf ${LOCALBASE}/bin/gimptool-2.0 \
                ${BUILDLINK_DIR}/bin/gimptool
 
 do-build:
-       cd "${WRKDIR}" && gimptool --build ${DISTNAME}${EXTRACT_SUFX}
+       cd "${WRKDIR}" && \
+           LIBS=${LINK_PTHREAD:Q} gimptool --build ${DISTNAME}${EXTRACT_SUFX}
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME} \
                ${PREFIX}/lib/gimp/2.0/plug-ins/fix-ca
 
 .include "../../graphics/gimp/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r f4fbd94d019b -r a6e5c96af471 graphics/gimp2-wideangle/Makefile
--- a/graphics/gimp2-wideangle/Makefile Fri Oct 05 22:14:33 2007 +0000
+++ b/graphics/gimp2-wideangle/Makefile Fri Oct 05 22:31:43 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/09/21 13:03:50 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2007/10/05 22:38:24 joerg Exp $
 #
 
 DISTNAME=      wideangle
@@ -17,11 +17,14 @@
 DIST_SUBDIR=   ${PKGNAME_NOREV}
 WRKSRC=                ${WRKDIR}
 
+LINK_PTHREAD=  ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
+
 do-build:
-       (cd ${WRKSRC} && gimptool-2.0 --build wideangle.c)
+       (cd ${WRKSRC} && LIBS=${LINK_PTHREAD:Q} gimptool-2.0 --build wideangle.c)
 
 do-install:
        (cd ${WRKSRC} && gimptool-2.0 --install-admin-bin wideangle)
 
 .include "../../graphics/gimp/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index