summaryrefslogtreecommitdiff
path: root/devel/boost-python
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-06-06 23:51:36 +0000
committertv <tv@pkgsrc.org>2004-06-06 23:51:36 +0000
commit071f8176865bb3c7edd815a7f9c57750419d575d (patch)
treea7cd5640e780892a1cc931e96366f7a8261a7415 /devel/boost-python
parent6a85d78ddc64c3cbefa1e0b9ef15672b03da51db (diff)
downloadpkgsrc-071f8176865bb3c7edd815a7f9c57750419d575d.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')
-rw-r--r--devel/boost-python/DESCR2
-rw-r--r--devel/boost-python/Makefile39
-rw-r--r--devel/boost-python/PLIST1
-rw-r--r--devel/boost-python/buildlink3.mk23
4 files changed, 65 insertions, 0 deletions
diff --git a/devel/boost-python/DESCR b/devel/boost-python/DESCR
new file mode 100644
index 00000000000..a64a6cb08ac
--- /dev/null
+++ b/devel/boost-python/DESCR
@@ -0,0 +1,2 @@
+This package adds static and shared libraries providing support for the
+"python" Boost library.
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"
diff --git a/devel/boost-python/PLIST b/devel/boost-python/PLIST
new file mode 100644
index 00000000000..a36e50c135a
--- /dev/null
+++ b/devel/boost-python/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1 2004/06/06 23:51:37 tv Exp $
diff --git a/devel/boost-python/buildlink3.mk b/devel/boost-python/buildlink3.mk
new file mode 100644
index 00000000000..882eda4232f
--- /dev/null
+++ b/devel/boost-python/buildlink3.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/06/06 23:51:37 tv Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+BOOST_PYTHON_BUILDLINK3_MK:= ${BOOST_PYTHON_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= boost-python
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nboost-python}
+BUILDLINK_PACKAGES+= boost-python
+
+.if !empty(BOOST_PYTHON_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.boost-python+= boost-python-1.31.*
+BUILDLINK_PKGSRCDIR.boost-python?= ../../devel/boost-python
+
+# the following should match the list in Makefile
+PYTHON_VERSIONS_INCOMPATIBLE+= 23pth 22pth 21 21pth 20 15
+.endif # BOOST_PYTHON_BUILDLINK3_MK
+
+.include "../../devel/boost/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}