summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/boost-headers/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/boost-headers/Makefile b/devel/boost-headers/Makefile
index 3bea87ab09f..caf06261754 100644
--- a/devel/boost-headers/Makefile
+++ b/devel/boost-headers/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/01/20 20:40:19 jmmv Exp $
+# $NetBSD: Makefile,v 1.7 2006/07/01 19:38:00 jmmv Exp $
#
BOOST_PACKAGE= headers
@@ -11,6 +11,14 @@ BJAM_ARGS+= --with-unknown # disable all libraries
.include "../../devel/boost-build/bjam.mk"
+# The following is a quick hack to let boost compile under NetBSD with GCC 4.
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "NetBSD" && !empty(CC_VERSION:Mgcc-4.*)
+post-configure:
+ ${ECHO} "#define BOOST_NO_STD_WSTREAMBUF" \
+ >>${WRKSRC}/boost/config/user.hpp
+.endif
+
do-build:
do-install: bjam-install