2010-04-13 04:12:15 +00:00
|
|
|
# Template file for 'boost'
|
|
|
|
pkgname=boost
|
2010-11-02 18:42:43 +00:00
|
|
|
version=1.44.0
|
2011-11-12 08:45:15 +00:00
|
|
|
revision=2
|
2010-04-13 04:12:15 +00:00
|
|
|
_boostver="$(echo $version|sed 's|\.|_|g')"
|
|
|
|
wrksrc=${pkgname}_${_boostver}
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${_boostver}.tar.bz2"
|
|
|
|
short_desc="Free peer-reviewed portable C++ source libraries"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-11-02 18:42:43 +00:00
|
|
|
checksum=45c328029d97d1f1dc7ff8c9527cd0c5cc356636084a800bca2ee4bfab1978db
|
2010-04-13 04:12:15 +00:00
|
|
|
long_desc="
|
|
|
|
boost is a library for applications dealing with netlink sockets.
|
|
|
|
The library provides an interface for raw netlink messaging and various
|
|
|
|
netlink family specific interfaces."
|
|
|
|
|
|
|
|
subpackages="boost-build boost-devel boost-jam boost-python"
|
|
|
|
Add_dependency build zlib-devel
|
|
|
|
Add_dependency build bzip2-devel
|
|
|
|
Add_dependency build icu-devel
|
2011-07-02 13:51:53 +00:00
|
|
|
Add_dependency build python-devel
|
2010-04-13 04:12:15 +00:00
|
|
|
|
|
|
|
do_build()
|
|
|
|
{
|
|
|
|
cd ${wrksrc} && ./bootstrap.sh -prefix=${DESTDIR}/usr || return 1
|
2010-04-29 03:31:41 +00:00
|
|
|
cd ${wrksrc} && ./bjam cflags=-fno-strict-aliasing ${makejobs} || return 1
|
2010-04-13 04:12:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
# Install bjam
|
|
|
|
_bindir="bin.linuxx86"
|
2011-11-08 10:56:17 +00:00
|
|
|
[ "${XBPS_MACHINE}" = "x86_64" ] && _bindir="bin.linuxx86_64"
|
2010-04-13 04:12:15 +00:00
|
|
|
install -m755 -d ${DESTDIR}/usr/bin
|
|
|
|
install -m755 ${wrksrc}/tools/jam/src/${_bindir}/bjam \
|
|
|
|
${DESTDIR}/usr/bin || return 1
|
|
|
|
|
|
|
|
# Install headers/libs
|
|
|
|
cd ${wrksrc} && ./bjam --prefix=${DESTDIR}/usr install || return 1
|
|
|
|
|
|
|
|
# Install Boost.Build stuff.
|
|
|
|
install -d ${DESTDIR}/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
|
|
|
|
install -m644 -D ${wrksrc}/site-config.jam \
|
|
|
|
${DESTDIR}/etc/site-config.jam
|
|
|
|
|
|
|
|
# license
|
|
|
|
install -d ${DESTDIR}/usr/share/licenses/${pkgname}
|
|
|
|
install -m644 ${wrksrc}/LICENSE_1_0.txt \
|
|
|
|
${DESTDIR}/usr/share/licenses/${pkgname}/ || return 1
|
|
|
|
}
|