contrib/boost/Pkgfile

49 lines
1.2 KiB
Plaintext
Raw Normal View History

# Description: Free peer-reviewed portable C++ source libraries.
2007-12-16 07:56:50 +01:00
# URL: http://www.boost.org/
2008-03-26 03:45:31 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: sten, nick dot steeves at shaw dot ca
2008-11-04 14:17:42 +01:00
# Depends on: boost-jam icu python expat
name=boost
version=1.44.0
2008-11-04 14:17:42 +01:00
release=1
2010-11-13 05:04:55 +01:00
source=(http://downloads.sourceforge.net/project/$name/${name}_${version//./_}.tar.bz2)
build() {
2010-11-13 05:04:55 +01:00
cd ${name}_${version//./_}
2007-07-22 14:46:23 +02:00
sed -i -e "s|-O3|$CXXFLAGS -Wno-deprecated|" tools/build/v2/tools/gcc.jam
local JOBS="$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< $MAKEFLAGS)"
2007-07-22 14:46:23 +02:00
2008-05-01 20:16:07 +02:00
pushd tools/bcp
bjam \
$JOBS -q -d 2 \
2008-05-01 20:16:07 +02:00
debug-symbols=off \
--toolset=gcc \
-sEXPAT_INCLUDE=/usr/include \
-sEXPAT_LIBPATH=/usr/lib \
2008-05-01 20:16:07 +02:00
-sHAVE_ICU=1
2007-12-16 23:24:00 +01:00
install -m 0755 -D ../../bin.v2/tools/bcp/gcc-$(gcc -dumpversion)/release/link-static/bcp $PKG/usr/bin/bcp
2008-05-01 20:16:07 +02:00
popd
2007-07-22 14:46:23 +02:00
2007-12-16 23:24:00 +01:00
bjam \
$JOBS -q -d 2 \
2007-12-16 23:24:00 +01:00
release \
threading=single,multi \
runtime-link=shared \
link=shared,static \
debug-symbols=off \
2007-07-22 14:46:23 +02:00
--toolset=gcc \
--layout=tagged \
--prefix=$PKG/usr \
2007-12-16 23:24:00 +01:00
-sHAVE_ICU=1 \
-sEXPAT_INCLUDE=/usr/include \
-sEXPAT_LIBPATH=/usr/lib \
2007-07-22 14:46:23 +02:00
install
cd libs/python/pyste/install
python setup.py install --root=$PKG
mv $PKG/usr/bin/pyste.py $PKG/usr/bin/pyste
}