2010-04-13 06:12:15 +02:00
|
|
|
# Template file for 'boost'
|
|
|
|
pkgname=boost
|
2013-10-29 11:38:13 +01:00
|
|
|
version=1.54.0
|
2014-02-16 19:46:56 +01:00
|
|
|
revision=2
|
2010-04-13 06:12:15 +02:00
|
|
|
_boostver="$(echo $version|sed 's|\.|_|g')"
|
2012-07-02 16:30:25 +02:00
|
|
|
wrksrc="${pkgname}_${_boostver}"
|
2013-07-01 22:43:11 +02:00
|
|
|
makedepends="zlib-devel bzip2-devel icu-devel>=49.1"
|
2010-04-13 06:12:15 +02:00
|
|
|
short_desc="Free peer-reviewed portable C++ source libraries"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-02 16:30:25 +02:00
|
|
|
homepage="http://www.boost.org/"
|
|
|
|
license="Boost Software License 1.0"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${_boostver}.tar.bz2"
|
2013-10-29 11:38:13 +01:00
|
|
|
checksum=047e927de336af106a24bceba30069980c191529fd76b8dff8eb9a328b48ae1d
|
2013-03-19 09:46:18 +01:00
|
|
|
|
2013-07-01 22:43:11 +02:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2013-03-19 09:46:18 +01:00
|
|
|
# XXX boost-jam and boost-python subpkgs.
|
2013-07-01 22:43:11 +02:00
|
|
|
makedepends+=" python-devel"
|
2013-03-19 09:46:18 +01:00
|
|
|
fi
|
2010-04-13 06:12:15 +02:00
|
|
|
|
2012-07-02 16:30:25 +02:00
|
|
|
do_build() {
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-07-01 22:43:11 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
arm*) _arch=arm; _toolset="gcc-arm";;
|
|
|
|
mips*) _arch=mips; _toolset="gcc-mips";;
|
|
|
|
esac
|
|
|
|
echo "using gcc : ${_arch} : ${XBPS_CROSS_TRIPLET}-g++ ${CXXFLAGS} ;" > \
|
2013-03-19 09:46:18 +01:00
|
|
|
tools/build/v2/user-config.jam
|
2013-07-01 22:43:11 +02:00
|
|
|
else
|
|
|
|
_toolset=gcc
|
|
|
|
echo "using gcc : : g++ ${CXXFLAGS} ;" > tools/build/v2/user-config.jam
|
2013-03-19 09:46:18 +01:00
|
|
|
fi
|
2012-07-02 16:30:25 +02:00
|
|
|
./bootstrap.sh -prefix=${DESTDIR}/usr
|
2013-07-01 22:43:11 +02:00
|
|
|
./bjam --toolset=${_toolset} ${makejobs}
|
2010-04-13 06:12:15 +02:00
|
|
|
}
|
|
|
|
|
2012-07-02 16:30:25 +02:00
|
|
|
do_install() {
|
2010-04-13 06:12:15 +02:00
|
|
|
# Install bjam
|
2014-02-16 19:46:56 +01:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*) _bindir="bin.linuxx86";;
|
|
|
|
x86_64*) _bindir="bin.linuxx86_64";;
|
|
|
|
arm*) _bindir="bin.linuxarm";;
|
|
|
|
esac
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
vinstall bjam 755 usr/bin
|
2013-03-19 09:46:18 +01:00
|
|
|
fi
|
2010-04-13 06:12:15 +02:00
|
|
|
|
|
|
|
# Install headers/libs
|
2012-07-02 16:30:25 +02:00
|
|
|
./bjam --prefix=${DESTDIR}/usr install
|
2010-04-13 06:12:15 +02:00
|
|
|
|
|
|
|
# Install Boost.Build stuff.
|
2013-03-19 09:46:18 +01:00
|
|
|
vmkdir usr/share/boost-build
|
|
|
|
cd ${wrksrc}/tools/build/v2 && cp -a . ${DESTDIR}/usr/share/boost-build
|
2010-04-13 06:12:15 +02: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 16:30:25 +02:00
|
|
|
cd $wrksrc
|
|
|
|
vinstall site-config.jam 644 etc
|
2010-04-13 06:12:15 +02:00
|
|
|
|
|
|
|
# license
|
2012-07-02 16:30:25 +02:00
|
|
|
vinstall LICENSE_1_0.txt 644 usr/share/licenses/boost
|
2010-04-13 06:12:15 +02:00
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
|
|
|
|
boost-jam_package() {
|
2013-07-01 22:43:11 +02:00
|
|
|
short_desc+=" - Boost.Jam utility"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/bjam
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
boost-python_package() {
|
2013-07-01 22:43:11 +02:00
|
|
|
depends="boost-${version}_${revision} python"
|
|
|
|
short_desc+=" - python bindings"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libboost_python*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fi # !CROSS_BUILD
|
|
|
|
|
|
|
|
boost-build_package() {
|
|
|
|
noarch=yes
|
|
|
|
conf_files="/etc/site-config.jam"
|
|
|
|
depends="boost-jam>=$version boost-devel>=$version"
|
2013-07-01 22:43:11 +02:00
|
|
|
short_desc+=" - Boost.Build framework"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/boost-build
|
|
|
|
vmove etc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
boost-devel_package() {
|
2013-10-29 11:38:13 +01:00
|
|
|
noverifyrdeps=yes
|
2013-04-12 08:55:23 +02:00
|
|
|
depends="boost-${version}_${revision}"
|
2013-07-01 22:43:11 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-07-01 22:43:11 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|