forked from ports/contrib
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# Description: Free peer-reviewed portable C++ source libraries.
|
|
# URL: http://www.boost.org/
|
|
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
# Packager: sten, nick dot steeves at shaw dot ca
|
|
# Depends on: python
|
|
|
|
name=boost
|
|
version=1.34.1
|
|
release=1
|
|
source=(http://dl.sourceforge.net/sourceforge/boost/boost_${version//./_}.tar.bz2)
|
|
|
|
build() {
|
|
cd boost_${version//./_}
|
|
|
|
local bindir='bin.linuxx86'
|
|
local gccversion="$(gcc -dumpversion)"
|
|
export CFLAGS="$CFLAGS -fno-strict-aliasing"
|
|
|
|
(
|
|
cd tools/jam/src
|
|
./build.sh gcc
|
|
install -D -m 0755 $bindir/bjam $PKG/usr/bin/bjam
|
|
)
|
|
|
|
(
|
|
cd tools/bcp
|
|
../jam/src/$bindir/bjam --toolset=gcc debug-symbols=off
|
|
install -D -m 0755 ../../bin.v2/tools/bcp/gcc-$gccversion/release/link-static/bcp $PKG/usr/bin/bcp
|
|
)
|
|
|
|
./tools/jam/src/$bindir/bjam \
|
|
release debug-symbols=off threading=single,multi \
|
|
runtime-link=shared link=shared,static \
|
|
--prefix=$PKG/usr \
|
|
--toolset=gcc \
|
|
--layout=system \
|
|
install
|
|
|
|
cd libs/python/pyste/install
|
|
python setup.py install --root=$PKG
|
|
mv $PKG/usr/bin/pyste.py $PKG/usr/bin/pyste
|
|
}
|
|
|