From 470c5a979b1cb85604619f429272df2c63329064 Mon Sep 17 00:00:00 2001 From: reed Date: Mon, 3 Apr 2006 21:20:06 +0000 Subject: Use pthread-stublib on NetBSD 1.x and 2.x. Bump PKGREVISION. Patch updated to use the library. Thank you Joerg for the suggestion. --- print/poppler-utils/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'print/poppler-utils') 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" -- cgit v1.2.3