summaryrefslogtreecommitdiff
path: root/x11/fox/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-06-26 13:12:00 +0000
committerjoerg <joerg@pkgsrc.org>2006-06-26 13:12:00 +0000
commit301a49e7ac776b8cb2198f0e37426bb3cd3d8b35 (patch)
tree2b0924fc210f6e157cec40843f5bc6f9daced47e /x11/fox/Makefile
parente0241b30635bd636677107015f0631419574c073 (diff)
downloadpkgsrc-301a49e7ac776b8cb2198f0e37426bb3cd3d8b35.tar.gz
Fix pthread detection, force non-threadsafe version for DragonFly due
to lack of getpwuid_r and friends.
Diffstat (limited to 'x11/fox/Makefile')
-rw-r--r--x11/fox/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/x11/fox/Makefile b/x11/fox/Makefile
index cc4b23e90e2..32d2c222806 100644
--- a/x11/fox/Makefile
+++ b/x11/fox/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2006/04/17 13:45:58 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2006/06/26 13:12:00 joerg Exp $
DISTNAME= fox-1.4.17
PKGREVISION= 2
@@ -17,10 +17,12 @@ CONFIGURE_ARGS+= --with-opengl
CONFIGURE_ARGS+= --with-shm
CONFIGURE_ARGS+= --with-x
+CONFIGURE_ENV+= REAL_PTHREAD_LIBS=${PTHREAD_LIBS:Q}
+
.include "../../mk/bsd.prefs.mk"
# NetBSD < 3.0 does not have getpwnam_r() getpwuin_r()
-.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[1-2]*)
+.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[1-2]*) || ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+= --disable-threadsafe
.endif
@@ -29,5 +31,6 @@ CONFIGURE_ARGS+= --disable-threadsafe
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"