2010-04-13 06:12:15 +02:00
|
|
|
# Template file for 'boost'
|
|
|
|
pkgname=boost
|
2012-07-02 16:30:25 +02:00
|
|
|
version=1.50.0
|
|
|
|
revision=1
|
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}"
|
|
|
|
subpackages="boost-build boost-devel boost-jam boost-python"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="zlib-devel icu-devel python-devel"
|
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"
|
|
|
|
checksum=c9ace2b8c81fa6703d1d17c7e478de3bc51101c5adbdeb3f6cb72cf3045a8529
|
2010-04-13 06:12:15 +02: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."
|
|
|
|
|
2012-07-02 16:30:25 +02:00
|
|
|
do_build() {
|
|
|
|
./bootstrap.sh -prefix=${DESTDIR}/usr
|
|
|
|
./bjam cflags=-fno-strict-aliasing ${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
|
|
|
|
_bindir="bin.linuxx86"
|
2011-11-08 11:56:17 +01:00
|
|
|
[ "${XBPS_MACHINE}" = "x86_64" ] && _bindir="bin.linuxx86_64"
|
2012-07-02 16:30:25 +02:00
|
|
|
vinstall bjam 755 usr/bin
|
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.
|
|
|
|
install -d ${DESTDIR}/usr/share/boost-build
|
2012-07-02 16:30:25 +02:00
|
|
|
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
|
|
|
}
|