summaryrefslogtreecommitdiff
path: root/devel/boost-thread
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
commit7db9aba4f1208760bf138aba5e09590c8b63097e (patch)
treea7cd5640e780892a1cc931e96366f7a8261a7415 /devel/boost-thread
parent16b4e10ff40d33d730c0cad231f1a5afeefedf7b (diff)
downloadpkgsrc-7db9aba4f1208760bf138aba5e09590c8b63097e.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-thread')
-rw-r--r--devel/boost-thread/DESCR3
-rw-r--r--devel/boost-thread/Makefile28
-rw-r--r--devel/boost-thread/PLIST2
-rw-r--r--devel/boost-thread/buildlink3.mk21
4 files changed, 54 insertions, 0 deletions
diff --git a/devel/boost-thread/DESCR b/devel/boost-thread/DESCR
new file mode 100644
index 00000000000..45ee8f1cb9d
--- /dev/null
+++ b/devel/boost-thread/DESCR
@@ -0,0 +1,3 @@
+This package adds static and shared libraries providing support for the
+"thread" Boost library, as well as multithreading-aware versions of the
+other Boost libraries.
diff --git a/devel/boost-thread/Makefile b/devel/boost-thread/Makefile
new file mode 100644
index 00000000000..10843d625ed
--- /dev/null
+++ b/devel/boost-thread/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2004/06/06 23:51:37 tv Exp $
+#
+
+BOOST_PKGNAME_ADD= -thread
+BJAM_ARGS+= --without-python
+BJAM_BUILD+= <threading>multi
+
+COMMENT= Threading support for Boost C++ libraries
+
+.include "../boost/Makefile.common"
+
+do-configure: userhpp-configure
+ ${LN} -s -f user.hpp ${WRKSRC}/boost/config/thread_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 "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/boost-thread/PLIST b/devel/boost-thread/PLIST
new file mode 100644
index 00000000000..50e70540505
--- /dev/null
+++ b/devel/boost-thread/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2004/06/06 23:51:37 tv Exp $
+include/boost-1_31/boost/config/thread_user.hpp
diff --git a/devel/boost-thread/buildlink3.mk b/devel/boost-thread/buildlink3.mk
new file mode 100644
index 00000000000..c928e479bf9
--- /dev/null
+++ b/devel/boost-thread/buildlink3.mk
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/06/06 23:51:37 tv Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+BOOST_THREAD_BUILDLINK3_MK:= ${BOOST_THREAD_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= boost-thread
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nboost-thread}
+BUILDLINK_PACKAGES+= boost-thread
+
+.if !empty(BOOST_THREAD_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.boost-thread+= boost-thread>=1.31.0
+BUILDLINK_PKGSRCDIR.boost-thread?= ../../devel/boost-thread
+.endif # BOOST_THREAD_BUILDLINK3_MK
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../devel/boost/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}