contrib/boost/Pkgfile
2007-12-17 09:24:00 +11:00

48 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: boost-jam icu 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"
export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
(
cd tools/bcp
bjam \
--toolset=gcc \
debug-symbols=off \
-sHAVE_ICU=1
install -D -m 0755 ../../bin.v2/tools/bcp/gcc-$gccversion/release/link-static/bcp $PKG/usr/bin/bcp
)
bjam \
release \
debug-symbols=off \
threading=single,multi \
runtime-link=shared \
link=shared,static \
--prefix=$PKG/usr \
--toolset=gcc \
--layout=system \
-sHAVE_ICU=1 \
install
cd libs/python/pyste/install
python setup.py install --root=$PKG
mv $PKG/usr/bin/pyste.py $PKG/usr/bin/pyste
}