contrib/boost/Pkgfile

63 lines
1.5 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/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: sten, nick dot steeves at shaw dot ca
2011-04-04 17:50:51 +02:00
# Depends on: expat icu python
name=boost
2014-03-21 12:36:08 +01:00
version=1.55.0
2012-10-20 07:21:33 +02:00
release=1
2010-12-24 12:49:57 +01:00
source=(http://downloads.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.tar.bz2)
build() {
2010-11-13 05:04:55 +01:00
cd ${name}_${version//./_}
2007-07-22 14:46:23 +02:00
if [ -n "$(pkginfo -i | grep '^ccache ')" ]; then
echo "using gcc : : ccache g++ ;" >> \
tools/build/v2/user-config.jam
fi
2011-04-04 17:50:51 +02:00
./bootstrap.sh
sed -i -e "s|-O3|$CXXFLAGS -O3 -Wno-deprecated -fno-strict-aliasing|" \
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
2011-04-04 17:50:51 +02:00
../../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
2011-04-04 17:50:51 +02: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
2011-04-04 17:50:51 +02: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
2012-05-17 13:45:15 +02:00
install -m 0755 bjam $PKG/usr/bin/bjam
2007-07-22 14:46:23 +02:00
cd libs/python/pyste/install
/usr/bin/python setup.py install --root=$PKG
2007-07-22 14:46:23 +02:00
mv $PKG/usr/bin/pyste.py $PKG/usr/bin/pyste
2011-04-10 15:53:50 +02:00
find $PKG -name '*.egg-info' | xargs rm -rf
}