summaryrefslogtreecommitdiff
path: root/x11/fox
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2005-07-25 12:49:56 +0000
committeradam <adam@pkgsrc.org>2005-07-25 12:49:56 +0000
commit66b115691dc979d634b67c365ca5354af09b20ea (patch)
treeacbefc6974eb8c404ef9e5a408a35e364d8fbaa3 /x11/fox
parent69e5d711d2ebf5b48453a579ad6ac13ba58cf20b (diff)
downloadpkgsrc-66b115691dc979d634b67c365ca5354af09b20ea.tar.gz
Fix building on NetBSD < 3.0
Diffstat (limited to 'x11/fox')
-rw-r--r--x11/fox/Makefile9
-rw-r--r--x11/fox/buildlink3.mk5
2 files changed, 10 insertions, 4 deletions
diff --git a/x11/fox/Makefile b/x11/fox/Makefile
index 661f08fa4a8..c7d254af27b 100644
--- a/x11/fox/Makefile
+++ b/x11/fox/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2005/07/25 10:53:43 adam Exp $
+# $NetBSD: Makefile,v 1.26 2005/07/25 12:49:56 adam Exp $
DISTNAME= fox-1.4.16
CATEGORIES= x11
@@ -16,6 +16,13 @@ CONFIGURE_ARGS+= --with-opengl
CONFIGURE_ARGS+= --with-shm
CONFIGURE_ARGS+= --with-x
+.include "../../mk/bsd.prefs.mk"
+
+# NetBSD < 3.0 does not have getpwnam_r() getpwuin_r()
+.if (${OPSYS} == "NetBSD") && (${OS_VERSION:R} < 3)
+CONFIGURE_ARGS+= --disable-threadsafe
+.endif
+
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
diff --git a/x11/fox/buildlink3.mk b/x11/fox/buildlink3.mk
index ec2e26b9f1d..c6f70c7ab3a 100644
--- a/x11/fox/buildlink3.mk
+++ b/x11/fox/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.6 2005/07/25 10:59:44 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.7 2005/07/25 12:49:56 adam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
FOX_BUILDLINK3_MK:= ${FOX_BUILDLINK3_MK}+
@@ -16,10 +16,9 @@ BUILDLINK_PKGSRCDIR.fox?= ../../x11/fox
BUILDLINK_INCDIRS.fox?= include/fox-1.4
.endif # FOX_BUILDLINK3_MK
+.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
-.include "../../graphics/MesaLib/buildlink3.mk"
-.include "../../graphics/glu/buildlink3.mk"
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}