summaryrefslogtreecommitdiff
path: root/devel/boost-python/Makefile
diff options
context:
space:
mode:
authortv <tv>2004-06-06 23:51:36 +0000
committertv <tv>2004-06-06 23:51:36 +0000
commit71a00a38e986de1fd039db2b3264b687feda6869 (patch)
treea7cd5640e780892a1cc931e96366f7a8261a7415 /devel/boost-python/Makefile
parent399d4c9da15f9ef21f4abcd1257175c3c9d2104e (diff)
downloadpkgsrc-71a00a38e986de1fd039db2b3264b687feda6869.tar.gz
Update devel/boost to 1.31.0. The most notable change here is a more robust
build system, which is actually being used now to build the backing binary libraries necessary to make date_time, regex, and a few other libraries work. While here, the thread and python libraries have been split out to their own subpackages, devel/boost-thread and devel/boost-python, so that the main boost package need not rely on the presence of either to provide basic functionality.
Diffstat (limited to 'devel/boost-python/Makefile')
-rw-r--r--devel/boost-python/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/boost-python/Makefile b/devel/boost-python/Makefile
new file mode 100644
index 00000000000..157cd25615a
--- /dev/null
+++ b/devel/boost-python/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2004/06/06 23:51:37 tv Exp $
+#
+
+BOOST_PKGNAME_ADD= -python
+BJAM_ARGS+= --without-date_time
+BJAM_ARGS+= --without-filesystem
+BJAM_ARGS+= --without-regex
+BJAM_ARGS+= --without-signals
+BJAM_ARGS+= --without-test
+BJAM_ARGS+= --without-thread
+BJAM_ARGS+= -sPYTHON_ROOT=${PREFIX}
+BJAM_ARGS+= -sPYTHON_VERSION=${PYVERSSUFFIX}
+
+# this pkg doesn't support threaded python yet:
+BJAM_BUILD+= <threading>single
+PYTHON_VERSIONS_INCOMPATIBLE+= 23pth 22pth 21 21pth 20 15
+
+COMMENT= Python support for Boost C++ libraries
+
+.include "../boost/Makefile.common"
+
+do-configure:
+ ${CP} -f ${LOCALBASE}/include/boost-1_31/boost/config/user.hpp \
+ ${WRKSRC}/boost/config/user.hpp
+
+do-build:
+ @cd ${WRKSRC} && ${BJAM_CMD} stage
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/boost/config/user.hpp \
+ ${PREFIX}/include/boost-1_31/boost/config/thread_user.hpp
+ ${INSTALL_LIB} ${WRKSRC}/stage/lib/*-1_31.* ${PREFIX}/lib/
+ @cd ${WRKSRC}/stage/lib && for f in *-1_31.*; do \
+ ${LN} -f ${PREFIX}/lib/$$f \
+ ${PREFIX}/lib/`${ECHO} $$f | ${SED} s,-1_31,,`; \
+ done
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"