2010-04-13 04:12:15 +00:00
|
|
|
# Template file for 'boost'
|
|
|
|
pkgname=boost
|
2012-07-02 14:30:25 +00:00
|
|
|
version=1.50.0
|
2012-07-21 07:52:26 +00:00
|
|
|
revision=2
|
2010-04-13 04:12:15 +00:00
|
|
|
_boostver="$(echo $version|sed 's|\.|_|g')"
|
2012-07-02 14:30:25 +00:00
|
|
|
wrksrc="${pkgname}_${_boostver}"
|
|
|
|
subpackages="boost-build boost-devel boost-jam boost-python"
|
2012-07-21 07:52:26 +00:00
|
|
|
makedepends="zlib-devel icu-devel>=49.1 python-devel"
|
2010-04-13 04:12:15 +00:00
|
|
|
short_desc="Free peer-reviewed portable C++ source libraries"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-02 14:30:25 +00:00
|
|
|
homepage="http://www.boost.org/"
|
|
|
|
license="Boost Software License 1.0"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${_boostver}.tar.bz2"
|
|
|
|
checksum=c9ace2b8c81fa6703d1d17c7e478de3bc51101c5adbdeb3f6cb72cf3045a8529
|
2010-04-13 04:12:15 +00:00
|
|
|
long_desc="
|
2013-03-19 08:46:18 +00:00
|
|
|
The Boost web site provides free peer-reviewed portable C++ source libraries.
|
|
|
|
The emphasis is on libraries which work well with the C++ Standard Library.
|
|
|
|
The libraries are intended to be widely useful, and are in regular use by
|
|
|
|
thousands of programmers across a broad spectrum of applications."
|
|
|
|
|
|
|
|
disable_debug=yes
|
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
2013-03-19 08:46:18 +00:00
|
|
|
# XXX boost-jam and boost-python subpkgs.
|
|
|
|
subpackages="boost-build boost-devel"
|
2013-03-24 09:21:58 +00:00
|
|
|
makedepends="zlib-devel icu-devel>=49.1"
|
2013-03-19 08:46:18 +00:00
|
|
|
fi
|
2010-04-13 04:12:15 +00:00
|
|
|
|
2012-07-02 14:30:25 +00:00
|
|
|
do_build() {
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
2013-03-19 08:46:18 +00:00
|
|
|
echo "using gcc : arm : ${XBPS_CROSS_TRIPLET}-g++ ;" > \
|
|
|
|
tools/build/v2/user-config.jam
|
|
|
|
fi
|
2012-07-02 14:30:25 +00:00
|
|
|
./bootstrap.sh -prefix=${DESTDIR}/usr
|
2013-03-19 08:46:18 +00:00
|
|
|
./bjam toolset=gcc-arm cflags="-fno-strict-aliasing $CFLAGS" ${makejobs}
|
2010-04-13 04:12:15 +00:00
|
|
|
}
|
|
|
|
|
2012-07-02 14:30:25 +00:00
|
|
|
do_install() {
|
2010-04-13 04:12:15 +00:00
|
|
|
# Install bjam
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
2013-03-19 08:46:18 +00:00
|
|
|
_bindir="bin.linuxx86"
|
2013-03-24 09:21:58 +00:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2013-03-19 08:46:18 +00:00
|
|
|
_bindir="bin.linuxx86_64"
|
2013-03-24 09:21:58 +00:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
2013-03-19 08:46:18 +00:00
|
|
|
_bindir="bin.linuxarm"
|
|
|
|
fi
|
|
|
|
[ -z "$XBPS_CROSS_BUILD" ] && vinstall bjam 755 usr/bin
|
2010-04-13 04:12:15 +00:00
|
|
|
|
|
|
|
# Install headers/libs
|
2012-07-02 14:30:25 +00:00
|
|
|
./bjam --prefix=${DESTDIR}/usr install
|
2010-04-13 04:12:15 +00:00
|
|
|
|
|
|
|
# Install Boost.Build stuff.
|
2013-03-19 08:46:18 +00:00
|
|
|
vmkdir usr/share/boost-build
|
|
|
|
cd ${wrksrc}/tools/build/v2 && cp -a . ${DESTDIR}/usr/share/boost-build
|
2010-04-13 04:12:15 +00:00
|
|
|
find ${DESTDIR}/usr/share/boost-build \
|
|
|
|
-type f -name \*.orig -exec rm -f {} \;
|
|
|
|
( echo '# System wide configuration file for Boost.Build.' ; \
|
|
|
|
echo ; \
|
|
|
|
echo 'using gcc ;' ; ) >${wrksrc}/site-config.jam
|
2012-07-02 14:30:25 +00:00
|
|
|
cd $wrksrc
|
|
|
|
vinstall site-config.jam 644 etc
|
2010-04-13 04:12:15 +00:00
|
|
|
|
|
|
|
# license
|
2012-07-02 14:30:25 +00:00
|
|
|
vinstall LICENSE_1_0.txt 644 usr/share/licenses/boost
|
2010-04-13 04:12:15 +00:00
|
|
|
}
|