New Libraries * Icl: Interval Container Library, interval sets and maps and aggregation of associated values, from Joachim Faulhaber. Updated Libraries * Array: - Added support for cbegin/cend - Fixed a problem with the Sun compiler * Asio: - Fixed a problem on older Linux kernels (where epoll is used without timerfd support) that prevents timely delivery of deadline_timer handlers, after the program has been running for some time * Bind: - make_adaptable now documented * Concept Check: - fixed warnings with self-assignment * Filesystem: - Version 3 of the library is now the default. - IBM vacpp: Workaround for compiler bug affecting iterator_facade - Verify, clarify, document that <boost/config/user.hpp> can be used to specify BOOST_FILESYSTEM_VERSIO - Replaced C-style assert with BOOST_ASSERT. - Undeprecated unique_path(). Instead, add a note mentioning the workaround for lack of thread safety and possible change to cwd. unique_path() is just too convenient to deprecate! - Cleared several GCC warnings. - Changed V2 code to use BOOST_THROW_EXCEPTION. - Windows: Fix status() to report non-symlink reparse point correctly. - Add symlink_option to recursive_directory_iterator, allowing control over recursion into directory symlinks. Note that the default is changed to not recurse into directory symlinks. - Reference documentation cleanup, including fixing missing and broken links, and adding missing functions. - Miscellaneous implementation code cleanup. * Fusion: - vector copy constructor now copies sequence members in the same order on different platforms * Graph: - Fixed Graphviz output to work on Visual C++ 7.1. - Replaced assert with BOOST_ASSERT. - Changed to Boost.Filesystem v3. More...
91 lines
2.6 KiB
Text
91 lines
2.6 KiB
Text
# $NetBSD: Makefile.common,v 1.27 2011/02/24 11:05:35 adam Exp $
|
|
#
|
|
# used by devel/boost-build/Makefile
|
|
# used by devel/boost-docs/Makefile
|
|
# used by devel/boost-jam/Makefile
|
|
# used by devel/boost-headers/Makefile
|
|
# used by devel/boost-libs/Makefile
|
|
# used by devel/boost-python/Makefile
|
|
|
|
BOOST_PACKAGE?= undefined
|
|
BOOST_COMMENT?= undefined
|
|
|
|
BOOST_VERSION= 1.46.0
|
|
BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//}
|
|
|
|
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}
|
|
LICENSE= boost-license
|
|
|
|
CONFLICTS+= boost<1.36.0
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../meta-pkgs/boost/distinfo
|
|
PATCHDIR= ${.CURDIR}/../../meta-pkgs/boost/patches
|
|
|
|
USE_TOOLS+= pax
|
|
USE_LANGUAGES= c c++
|
|
GCC_REQD+= 3.2 # if using gcc; ignored otherwise
|
|
|
|
PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}"
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_STAGE.prefix= pre-configure
|
|
SUBST_MESSAGE.prefix= Fixing prefix.
|
|
SUBST_FILES.prefix= Jamroot
|
|
SUBST_VARS.prefix= PREFIX
|
|
|
|
SUBST_CLASSES+= darwin
|
|
SUBST_STAGE.darwin= pre-configure
|
|
SUBST_MESSAGE.darwin= Fixing install_name for Darwin.
|
|
SUBST_FILES.darwin= tools/build/v2/tools/*darwin.jam
|
|
SUBST_SED.darwin= -e 's,-install_name ",-install_name "${PREFIX}/lib/,g'
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
# Prevent using a pkgsrc libtool in OS X because the darwin toolset needs
|
|
# the native libtool from /usr/bin.
|
|
post-wrapper:
|
|
ln -s /usr/bin/libtool ${WRAPPER_BINDIR}/libtool
|
|
.endif
|
|
|
|
# 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 -print | ${XARGS} ${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 && pax -rw -p p libboost* ${DESTDIR}${PREFIX}/lib
|
|
|
|
.endif # ${BOOST_PACKAGE} == "meta-pkg"
|