summaryrefslogtreecommitdiff
path: root/print/poppler-utils
diff options
context:
space:
mode:
authorreed <reed>2006-04-03 21:20:06 +0000
committerreed <reed>2006-04-03 21:20:06 +0000
commit470c5a979b1cb85604619f429272df2c63329064 (patch)
treea86519f823ff2c4941e1f5f7e134c4f77c6e5517 /print/poppler-utils
parent1e756ee46d128898b417f4e6c6a95347fb529d95 (diff)
downloadpkgsrc-470c5a979b1cb85604619f429272df2c63329064.tar.gz
Use pthread-stublib on NetBSD 1.x and 2.x.
Bump PKGREVISION. Patch updated to use the library. Thank you Joerg for the suggestion.
Diffstat (limited to 'print/poppler-utils')
-rw-r--r--print/poppler-utils/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/print/poppler-utils/Makefile b/print/poppler-utils/Makefile
index d0277e8a547..cc723ebff46 100644
--- a/print/poppler-utils/Makefile
+++ b/print/poppler-utils/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/04/01 19:11:39 reed Exp $
+# $NetBSD: Makefile,v 1.2 2006/04/03 21:20:06 reed Exp $
#
.include "../../print/poppler/Makefile.common"
PKGNAME= poppler-utils-${POPPLER_VERS}
+PKGREVISION= 1
COMMENT= PDF utilities (from poppler)
@@ -32,4 +33,14 @@ BUILD_DIRS= utils # implies INSTALL_DIRS too
BUILDLINK_DEPENDS.poppler+= poppler>=${POPPLER_VERS}nb3
.include "../../print/poppler/buildlink3.mk"
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-[12].*)
+.include "../../devel/pthread-stublib/buildlink3.mk"
+PTHREAD_STUBLIB= "-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lpthstub"
+.else
+PTHREAD_STUBLIB= # provided by libc
+.endif
+MAKE_ENV+= PTHREAD_STUBLIB=${PTHREAD_STUBLIB}
+
.include "../../mk/bsd.pkg.mk"