summaryrefslogtreecommitdiff
path: root/meta-pkgs
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2005-02-26 22:48:34 +0000
committerjmmv <jmmv@pkgsrc.org>2005-02-26 22:48:34 +0000
commit09753597b223bcda95fb6bd4f47c0f7d2e2bbf80 (patch)
tree86eb8cada7f656a641af3c6b96375efcf8216a7d /meta-pkgs
parentca13dd378c0b4c49cee030636232df8941d62293 (diff)
downloadpkgsrc-09753597b223bcda95fb6bd4f47c0f7d2e2bbf80.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 'meta-pkgs')
-rw-r--r--meta-pkgs/boost/DESCR4
-rw-r--r--meta-pkgs/boost/Makefile34
-rw-r--r--meta-pkgs/boost/Makefile.common67
-rw-r--r--meta-pkgs/boost/PLIST2
-rw-r--r--meta-pkgs/boost/distinfo7
-rw-r--r--meta-pkgs/boost/patches/patch-aa26
-rw-r--r--meta-pkgs/boost/patches/patch-ab13
7 files changed, 153 insertions, 0 deletions
diff --git a/meta-pkgs/boost/DESCR b/meta-pkgs/boost/DESCR
new file mode 100644
index 00000000000..20ab3de4375
--- /dev/null
+++ b/meta-pkgs/boost/DESCR
@@ -0,0 +1,4 @@
+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 is a meta package that depends on all other components of Boost.
diff --git a/meta-pkgs/boost/Makefile b/meta-pkgs/boost/Makefile
new file mode 100644
index 00000000000..98117df08c4
--- /dev/null
+++ b/meta-pkgs/boost/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2005/02/26 22:48:34 jmmv Exp $
+#
+
+BOOST_PACKAGE= meta-pkg
+BOOST_COMMENT= (meta package)
+
+.include "Makefile.common"
+
+CATEGORIES+= meta-pkgs
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= jmmv@NetBSD.org
+HOMEPAGE= http://www.boost.org/
+COMMENT= Free, peer-reviewed portable C++ source libraries
+
+DEPENDS+= boost-build>=${BOOST_VERSION}:../../devel/boost-build
+DEPENDS+= boost-docs>=${BOOST_VERSION}:../../devel/boost-docs
+DEPENDS+= boost-headers>=${BOOST_VERSION}:../../devel/boost-headers
+DEPENDS+= boost-libs>=${BOOST_VERSION}:../../devel/boost-libs
+DEPENDS+= boost-python>=${BOOST_VERSION}:../../devel/boost-python
+
+EXTRACT_ONLY= # empty
+NO_CHECKSUM= yes
+NO_CONFIGURE= yes
+NO_BUILD= yes
+NO_BUILDLINK= yes
+NO_MTREE= yes
+
+do-patch: # empty
+
+do-install: # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/meta-pkgs/boost/Makefile.common b/meta-pkgs/boost/Makefile.common
new file mode 100644
index 00000000000..608ae4254cf
--- /dev/null
+++ b/meta-pkgs/boost/Makefile.common
@@ -0,0 +1,67 @@
+# $NetBSD: Makefile.common,v 1.1 2005/02/26 22:48:34 jmmv Exp $
+#
+
+BOOST_PACKAGE?= undefined
+BOOST_COMMENT?= undefined
+
+BOOST_VERSION= 1.32.0
+BOOST_SHORT_VERSION= 1_32
+
+DISTNAME= boost_${BOOST_VERSION:S/./_/g}
+CATEGORIES= devel
+
+.if ${BOOST_PACKAGE} == "meta-pkg"
+
+PKGNAME= boost-${BOOST_VERSION}
+
+.else # ${BOOST_PACKAGE} != "meta-pkg"
+
+PKGNAME= boost-${BOOST_PACKAGE}-${BOOST_VERSION}
+
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= jmmv@NetBSD.org
+HOMEPAGE= http://www.boost.org/
+COMMENT= Free, peer-reviewed portable C++ source libraries ${BOOST_COMMENT}
+
+DISTINFO_FILE= ${.CURDIR}/../../meta-pkgs/boost/distinfo
+PATCHDIR= ${.CURDIR}/../../meta-pkgs/boost/patches
+
+USE_BUILDLINK3= yes
+USE_LANGUAGES+= c++
+GCC_REQD+= 3.2 # if using gcc; ignored otherwise
+
+# We can't do this at post-extract because the extract cookie will get a
+# future timestamp than the sources. If this happens, print-PLIST does
+# not work.
+pre-configure:
+ @cd ${WRKSRC} && ${FIND} . -type f -exec ${TOUCH} {} \;
+
+# Generate a new user.hpp or use the installed one, depending on the
+# package we are building.
+.if ${BOOST_CONFIG} == "installed"
+. include "../../devel/boost-headers/buildlink3.mk"
+do-configure:
+ ${CP} -f \
+ ${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \
+ ${WRKSRC}/boost/config/user.hpp
+.elif ${BOOST_CONFIG} == "generate"
+do-configure:
+ @cd ${WRKSRC}/libs/config && \
+ ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure
+ ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp
+.endif
+
+boost-install-libs:
+ @cd ${WRKSRC}/stage/lib && \
+ for f in *; do \
+ ${ECHO} ${INSTALL_LIB} $$f \
+ ${PREFIX}/lib/`${ECHO} $$f | \
+ ${SED} 's|-.*\\.|${BOOST_LIB_SUFFIX}.|'`; \
+ ${INSTALL_LIB} $$f \
+ ${PREFIX}/lib/`${ECHO} $$f | \
+ ${SED} 's|-.*\\.|${BOOST_LIB_SUFFIX}.|'`; \
+ done
+
+.endif # ${BOOST_PACKAGE} == "meta-pkg"
diff --git a/meta-pkgs/boost/PLIST b/meta-pkgs/boost/PLIST
new file mode 100644
index 00000000000..5eb3a9eb9c6
--- /dev/null
+++ b/meta-pkgs/boost/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2005/02/26 22:48:34 jmmv Exp $
+@comment PLIST intentionally left empty.
diff --git a/meta-pkgs/boost/distinfo b/meta-pkgs/boost/distinfo
new file mode 100644
index 00000000000..83e4ebae730
--- /dev/null
+++ b/meta-pkgs/boost/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2005/02/26 22:48:34 jmmv Exp $
+
+SHA1 (boost_1_32_0.tar.bz2) = bb193b381d8e1c8321ee7d77f01c88837edc3e56
+RMD160 (boost_1_32_0.tar.bz2) = 9a51660e01d5047b08a753a7fa38028d8aa171ec
+Size (boost_1_32_0.tar.bz2) = 10181552 bytes
+SHA1 (patch-aa) = 6f0b64da37de35b2b3d2eb5884608bd8f9a906fd
+SHA1 (patch-ab) = 197c51ac67d74923d02f8a9746b5d2e0f7b84736
diff --git a/meta-pkgs/boost/patches/patch-aa b/meta-pkgs/boost/patches/patch-aa
new file mode 100644
index 00000000000..54953e871cc
--- /dev/null
+++ b/meta-pkgs/boost/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1 2005/02/26 22:48:34 jmmv Exp $
+
+--- tools/build/v1/gcc-tools.jam.orig 2004-10-19 17:12:58.000000000 +0200
++++ tools/build/v1/gcc-tools.jam
+@@ -123,6 +123,12 @@ else if $(UNIX)
+ .GCC ?= cc ;
+ .GXX ?= c++ ;
+ }
++ case NetBSD :
++ {
++ flags gcc CFLAGS <threading>multi : -pthread ;
++ flags gcc LINKFLAGS <threading>multi : -lpthread ;
++ # there is no -lrt on NetBSD
++ }
+ case *BSD :
+ {
+ flags gcc CFLAGS <threading>multi : -pthread ;
+@@ -175,7 +181,7 @@ if $(UNIX)
+ SONAME = -Wl,-soname, ;
+ flags gcc OBJCOPY_FLAGS <debug-symbols>on : "--set-section-flags .debug_str=contents,debug" ;
+ }
+- case OpenBSD :
++ case *BSD :
+ {
+ SONAME = -Wl,-soname, ;
+ }
diff --git a/meta-pkgs/boost/patches/patch-ab b/meta-pkgs/boost/patches/patch-ab
new file mode 100644
index 00000000000..3d1929058e8
--- /dev/null
+++ b/meta-pkgs/boost/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2005/02/26 22:48:34 jmmv Exp $
+
+--- libs/config/test/boost_no_cwchar.ipp.orig 2003-10-14 12:33:07.000000000 +0200
++++ libs/config/test/boost_no_cwchar.ipp
+@@ -18,7 +18,7 @@ int test()
+ {
+ wchar_t c1[2] = { 0 };
+ wchar_t c2[2] = { 0 };
+- if(wcscmp(c1,c2) || wcslen(c1)) return -1;
++ if(std::wcscmp(c1,c2) || std::wcslen(c1)) return -1;
+ wcscpy(c1,c2);
+ wcsxfrm(c1,c2,0);
+ return 0;