void-packages/srcpkgs/boost/template

109 lines
2.8 KiB
Text
Raw Normal View History

# 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
_boostver="$(echo $version|sed 's|\.|_|g')"
2012-07-02 14:30:25 +00:00
wrksrc="${pkgname}_${_boostver}"
2012-07-21 07:52:26 +00:00
makedepends="zlib-devel icu-devel>=49.1 python-devel"
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
long_desc="
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
if [ "$CROSS_BUILD" ]; then
# XXX boost-jam and boost-python subpkgs.
makedepends="zlib-devel icu-devel>=49.1"
fi
2012-07-02 14:30:25 +00:00
do_build() {
if [ "$CROSS_BUILD" ]; then
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
./bjam toolset=gcc-arm cflags="-fno-strict-aliasing $CFLAGS" ${makejobs}
}
2012-07-02 14:30:25 +00:00
do_install() {
# Install bjam
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
_bindir="bin.linuxx86"
elif [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
_bindir="bin.linuxx86_64"
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
_bindir="bin.linuxarm"
fi
[ -z "$CROSS_BUILD" ] && vinstall bjam 755 usr/bin
# Install headers/libs
2012-07-02 14:30:25 +00:00
./bjam --prefix=${DESTDIR}/usr install
# Install Boost.Build stuff.
vmkdir usr/share/boost-build
cd ${wrksrc}/tools/build/v2 && cp -a . ${DESTDIR}/usr/share/boost-build
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
# license
2012-07-02 14:30:25 +00:00
vinstall LICENSE_1_0.txt 644 usr/share/licenses/boost
}
if [ -z "$CROSS_BUILD" ]; then
boost-jam_package() {
short_desc="${short_desc} - Boost.Jam utility"
pkg_install() {
vmove usr/bin/bjam
}
}
boost-python_package() {
depends="boost>=${version} python"
short_desc="${short_desc} - python bindings"
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"
short_desc="${short_desc} - Boost.Build framework"
pkg_install() {
vmove usr/share/boost-build
vmove etc
}
}
boost-devel_package() {
depends="boost-${version}_${revision}"
short_desc="${short_desc} - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}
boost_package() {
pkg_install() {
vmove usr
}
}