2010-04-13 06:12:15 +02:00
|
|
|
# Template file for 'boost'
|
|
|
|
pkgname=boost
|
2015-06-09 15:36:36 +02:00
|
|
|
version=1.58.0
|
2015-08-05 12:53:29 +02:00
|
|
|
revision=4
|
2014-10-12 11:28:16 +02:00
|
|
|
wrksrc="${pkgname}_${version//\./_}"
|
2015-06-09 15:36:36 +02:00
|
|
|
hostmakedepends="bzip2-devel"
|
2015-08-05 12:53:29 +02:00
|
|
|
makedepends="zlib-devel bzip2-devel icu55-devel"
|
2010-04-13 06:12:15 +02:00
|
|
|
short_desc="Free peer-reviewed portable C++ source libraries"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-07-02 16:30:25 +02:00
|
|
|
homepage="http://www.boost.org/"
|
|
|
|
license="Boost Software License 1.0"
|
2014-10-12 11:28:16 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version//\./_}.tar.bz2"
|
2015-06-09 15:36:36 +02:00
|
|
|
checksum=fdfc204fc33ec79c99b9a74944c3e54bd78be4f7f15e260c0e2700a36dc7d3e5
|
2013-03-19 09:46:18 +01:00
|
|
|
|
2015-05-26 11:53:34 +02:00
|
|
|
subpackages="boost-build boost-devel"
|
|
|
|
|
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"
|
2015-05-26 11:53:34 +02:00
|
|
|
subpackages+=" boost-jam boost-python"
|
2013-03-19 09:46:18 +01:00
|
|
|
fi
|
2010-04-13 06:12:15 +02:00
|
|
|
|
2015-06-09 15:36:36 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2015-07-09 14:07:38 +02:00
|
|
|
i686*) _arch=x86; _toolset="gcc-i386"; _abi=sysv ;;
|
|
|
|
x86_64*) _arch=x86; _toolset="gcc-x86_64"; _abi=sysv ;;
|
2015-07-09 13:58:35 +02:00
|
|
|
arm*) _arch=arm; _toolset="gcc-arm"; _abi=aapcs ;;
|
|
|
|
aarch64*) _arch=arm; _toolset="gcc-aarch64"; _abi=aapcs ;;
|
|
|
|
mips*) _arch=mips; _toolset="gcc-mips"; _abi=o32 ;;
|
2015-06-09 15:36:36 +02:00
|
|
|
esac
|
|
|
|
|
2012-07-02 16:30:25 +02:00
|
|
|
do_build() {
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2015-07-09 13:58:35 +02:00
|
|
|
echo "using gcc : ${_toolset#gcc-} : ${XBPS_CROSS_TRIPLET}-g++ ${CXXFLAGS} ;" \
|
|
|
|
> user-config.jam
|
2013-07-01 22:43:11 +02:00
|
|
|
else
|
2015-07-09 13:58:35 +02:00
|
|
|
echo "using gcc : ${_toolset#gcc-} : g++ ${CXXFLAGS} ;" \
|
|
|
|
> 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
|
2015-07-09 13:58:35 +02:00
|
|
|
./bjam --toolset=${_toolset} ${makejobs} abi=$_abi architecture=$_arch \
|
|
|
|
--user-config=${wrksrc}/user-config.jam --debug-building
|
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
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2015-06-09 15:36:36 +02:00
|
|
|
vbin bjam
|
2013-03-19 09:46:18 +01:00
|
|
|
fi
|
2010-04-13 06:12:15 +02:00
|
|
|
|
|
|
|
# Install headers/libs
|
2015-07-09 13:58:35 +02:00
|
|
|
./bjam --prefix=${DESTDIR}/usr abi=$_abi architecture=$_arch \
|
2015-06-09 15:36:36 +02:00
|
|
|
--user-config=${wrksrc}/user-config.jam 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
|
2015-06-09 15:36:36 +02:00
|
|
|
cd ${wrksrc}/tools/build && 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
|
2015-06-09 15:36:36 +02:00
|
|
|
vconf site-config.jam
|
2010-04-13 06:12:15 +02:00
|
|
|
|
|
|
|
# license
|
2015-06-09 15:36:36 +02:00
|
|
|
vlicense LICENSE_1_0.txt
|
2010-04-13 06:12:15 +02:00
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
|
|
|
boost-jam_package() {
|
2013-07-01 22:43:11 +02:00
|
|
|
short_desc+=" - Boost.Jam utility"
|
2014-10-27 11:33:32 +01:00
|
|
|
depends="boost-build-${version}_${revision}"
|
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*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
boost-build_package() {
|
|
|
|
noarch=yes
|
|
|
|
conf_files="/etc/site-config.jam"
|
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
|
|
|
}
|
|
|
|
}
|