summaryrefslogtreecommitdiff
path: root/devel/boost-build
diff options
context:
space:
mode:
authorjmmv <jmmv>2005-02-26 22:48:34 +0000
committerjmmv <jmmv>2005-02-26 22:48:34 +0000
commit977baf982418f32b1e9bf1766d5cab6d3be9ca77 (patch)
tree86eb8cada7f656a641af3c6b96375efcf8216a7d /devel/boost-build
parent33711a3b30302be4e95215274ee2e2250c330c48 (diff)
downloadpkgsrc-977baf982418f32b1e9bf1766d5cab6d3be9ca77.tar.gz
Complete rework of the Boost packages:
- Drop devel/boost and devel/boost-thread. - Add devel/boost-docs which includes all the documentation related to Boost (previously included in devel/boost). - Add devel/boost-build which includes bjam, the Boost.Build framework. - Add devel/boost-headers which includes all the header files needed at build time by programs using Boost (previously included in devel/boost). - Add devel/boost-libs which includes all the binary libraries needed at build and run time by programs using Boost (previously included in devel/boost and devel/thread). All of them are multithreaded, to make things easier. - devel/boost-python includes the Boost Python library (as it did before), but now works, given that everything is threaded again. - Drop our thread_user.hpp customization. Avoids some build failures that appeared when the previous boost-thread package was not installed. - Use static PLISTs. - Install unversioned files. Makes things *a lot* easier when building stuff outside pkgsrc. - Add meta-pkgs/boost, a meta package that depends on all of the above. Thanks go to jlam@ and tv@ for their comments. While here, update to 1.32.0: New Toolset Names The names of some the Boost.Build toolsets have been changed to remove the "." (dot) character and to fix some other naming inconsistencies. For example, vc7.1 toolset was renamed to become vc-7_1. Please refer to the Supported Toolsets section of the installation guide for the complete list of the current toolset names. This change was made as a part of the effort to make the Boost distribution compatible with ISO 9660 level 2 requirements. New Libraries * Assignment Library: Filling containers with constant or generated data has never been easier, from Thorsten Ottosen. * Minmax Library: Standard library extensions for simultaneous min/max and min/max element computations, from Hervé Brönnimann. * Multi-index Containers Library: Containers with multiple STL-compatible access interfaces, from Joaquín M López Muñoz. * Numeric Conversion Library: Optimized policy-based numeric conversions, from Fernando Cacciola. * Program Options Library: Access to configuration data given on command line, in config files and other sources, from Vladimir Prus. * Range Library: A new infrastructure for generic algorithms that builds on top of the new iterator concepts, from Thorsten Ottosen. * Serialization Library: Serialization/de-serialization of arbitrary C++ data structures to various formats including text, binary, and xml, from Robert Ramey. * String Algorithms Library: Collection of string related algorithms for case conversion, trimming, find/replace operations and more, from Pavol Droba. * Tribool: 3-state boolean type library, from Doug Gregor. Updated Libraries * Compose: This deprecated library has been removed. * Graph: o Added bundled properties to the adjacency_list and adjacency_matrix class templates, greatly simplifying the introduction of internal vertex and edge properties. o The LEDA graph adaptors have been ported to LEDA 4.5. o Added algorithms for betweenness centrality and betweenness centrality clustering. o Added circle layout and undirected spring layout algorithms. * MPL Library: o Updated to use the Boost Software License. o New documentation, including a complete reference manual. o Major interface changes and improvements, many of which are not backward compatible. Please refer to the 1.32 changelog for the detailed information about upgrading to the new version. * Python Library: o Updated to use the Boost Software License. o A new, better method of wrapping classes with virtual functions has been implemented. o Support for the new Python Bool type, thanks to Daniel Holth. o Support for upcoming GCC symbol export control features have been folded in, thanks to Niall Douglas. o Improved support for std::auto_ptr-like types. o Components used by other libraries have been moved out of python/detail and into boost/detail to improve dependency relationships. o Miscellaneous bug fixes and compiler workarounds. * Signals Library: Introduced deterministic slot ordering, permitting slots to be connected at the beginning or end of slot groups or the slot list itself. Combiners may safely have state and are accessible from the signal. * Utility: class template result_of added. * Test Library: o namespace names gets shorten; old one still supported till next release o added proper encoding of XML PCDATA o support for wide string comparison implemented For complete list of changes see Test Library release notes. Regression tests This release has been extensively tested on a variety of different compilers and platforms. It is known to contain no regressions against the previous reference release on the compilers and configurations tested. Please refer to the corresponding regression reports to see how well your compiler performs on the new Boost codebase.
Diffstat (limited to 'devel/boost-build')
-rw-r--r--devel/boost-build/DESCR5
-rw-r--r--devel/boost-build/Makefile22
-rw-r--r--devel/boost-build/PLIST2
-rw-r--r--devel/boost-build/bjam.mk28
-rw-r--r--devel/boost-build/buildlink3.mk19
-rw-r--r--devel/boost-build/toolset.mk13
6 files changed, 89 insertions, 0 deletions
diff --git a/devel/boost-build/DESCR b/devel/boost-build/DESCR
new file mode 100644
index 00000000000..151d9e9ba5d
--- /dev/null
+++ b/devel/boost-build/DESCR
@@ -0,0 +1,5 @@
+Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on
+portable libraries which work well with the ISO C++ Standard Library.
+
+This package provides the Boost.Build module, which includes bjam. This
+is the tool used to build Boost itself, and is based on Perforce Jam.
diff --git a/devel/boost-build/Makefile b/devel/boost-build/Makefile
new file mode 100644
index 00000000000..628b07e5ff6
--- /dev/null
+++ b/devel/boost-build/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2005/02/26 22:48:35 jmmv Exp $
+#
+
+BOOST_PACKAGE= build
+BOOST_COMMENT= (Boost.Build framework)
+BOOST_CONFIG= no
+
+.include "../../meta-pkgs/boost/Makefile.common"
+
+.include "toolset.mk"
+
+INSTALLATION_DIRS= bin
+
+do-build:
+ @cd ${WRKSRC}/tools/build/jam_src && \
+ ${SETENV} ${MAKE_ENV} ${SH} ./build.sh ${BOOST_TOOLSET}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/jam_src/bin.*/bjam \
+ ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/boost-build/PLIST b/devel/boost-build/PLIST
new file mode 100644
index 00000000000..83b2ea0545b
--- /dev/null
+++ b/devel/boost-build/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2005/02/26 22:48:35 jmmv Exp $
+bin/bjam
diff --git a/devel/boost-build/bjam.mk b/devel/boost-build/bjam.mk
new file mode 100644
index 00000000000..beffb08f058
--- /dev/null
+++ b/devel/boost-build/bjam.mk
@@ -0,0 +1,28 @@
+# $NetBSD: bjam.mk,v 1.1 2005/02/26 22:48:35 jmmv Exp $
+#
+
+USE_BUILDLINK3= YES
+.include "../../devel/boost-build/buildlink3.mk"
+
+.include "toolset.mk"
+.include "../../mk/bsd.prefs.mk"
+
+BJAM= ${BUILDLINK_PREFIX.boost-build}/bin/bjam
+BJAM_ARGS+= --builddir=${WRKSRC}/build
+BJAM_ARGS+= --layout=system
+BJAM_ARGS+= --prefix=${PREFIX}
+BJAM_ARGS+= -sBUILD=${BJAM_BUILD:Q}
+BJAM_ARGS+= -sTOOLS=${BOOST_TOOLSET}
+.if defined(BOOST_DEBUG) && !empty(BOOST_DEBUG:M[Yy][Ee][Ss])
+BJAM_BUILD+= debug
+.endif
+BJAM_BUILD+= <linkflags>-Wl,-R${PREFIX}/lib
+BJAM_BUILD+= <threading>multi
+BJAM_BUILD+= release
+BJAM_CMD= ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS}
+
+bjam-build:
+ @cd ${WRKSRC} && ${BJAM_CMD} stage
+
+bjam-install:
+ @cd ${WRKSRC} && ${BJAM_CMD} install
diff --git a/devel/boost-build/buildlink3.mk b/devel/boost-build/buildlink3.mk
new file mode 100644
index 00000000000..3bbe4de8dc2
--- /dev/null
+++ b/devel/boost-build/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1 2005/02/26 22:48:35 jmmv Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+BOOST_BUILD_BUILDLINK3_MK:= ${BOOST_BUILD_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= boost-build
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nboost-build}
+BUILDLINK_PACKAGES+= boost-build
+
+.if !empty(BOOST_BUILD_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.boost-build+= boost-build>=1.32.0
+BUILDLINK_DEPMETHOD.boost-build?= build
+BUILDLINK_PKGSRCDIR.boost-build?= ../../devel/boost-build
+.endif # BOOST_BUILD_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/devel/boost-build/toolset.mk b/devel/boost-build/toolset.mk
new file mode 100644
index 00000000000..ab4e6efebab
--- /dev/null
+++ b/devel/boost-build/toolset.mk
@@ -0,0 +1,13 @@
+# $NetBSD: toolset.mk,v 1.1 2005/02/26 22:48:35 jmmv Exp $
+
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mgcc)
+BOOST_TOOLSET= gcc
+.elif !empty(PKGSRC_COMPILER:Mmipspro*)
+BOOST_TOOLSET= mipspro
+.elif !empty(PKGSRC_COMPILER:Msunpro)
+BOOST_TOOLSET= sunpro
+.else
+BROKEN+= "Unknown compiler ${PKGSRC_COMPILER} for Boost"
+.endif