1
0
forked from ports/contrib
contrib-tek/boost/Pkgfile

63 lines
1.5 KiB
Plaintext
Raw Normal View History

# Description: Free peer-reviewed portable C++ source libraries.
2007-12-16 17:56:50 +11:00
# URL: http://www.boost.org/
2008-03-26 13:45:31 +11:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: sten, nick dot steeves at shaw dot ca
2011-04-05 01:50:51 +10:00
# Depends on: expat icu python
name=boost
2012-11-07 18:58:12 +11:00
version=1.52.0
2012-10-20 16:21:33 +11:00
release=1
2010-12-24 22:49:57 +11:00
source=(http://downloads.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.tar.bz2)
build() {
2010-11-13 15:04:55 +11:00
cd ${name}_${version//./_}
2007-07-22 22:46:23 +10:00
if [ -n "$(pkginfo -i | grep '^ccache ')" ]; then
echo "using gcc : : ccache g++ ;" >> \
tools/build/v2/user-config.jam
fi
2011-04-05 01:50:51 +10: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 22:46:23 +10:00
2008-05-02 04:16:07 +10:00
pushd tools/bcp
2011-04-05 01:50:51 +10:00
../../bjam \
$JOBS -q -d 2 \
2008-05-02 04:16:07 +10:00
debug-symbols=off \
--toolset=gcc \
-sEXPAT_INCLUDE=/usr/include \
-sEXPAT_LIBPATH=/usr/lib \
2008-05-02 04:16:07 +10:00
-sHAVE_ICU=1
2007-12-17 09:24:00 +11:00
2011-04-05 01:50:51 +10:00
install -m 0755 -D ../../bin.v2/tools/bcp/gcc-$(gcc -dumpversion)/release/link-static/bcp \
$PKG/usr/bin/bcp
2008-05-02 04:16:07 +10:00
popd
2007-07-22 22:46:23 +10:00
2011-04-05 01:50:51 +10:00
./bjam \
$JOBS -q -d 2 \
2007-12-17 09:24:00 +11:00
release \
threading=single,multi \
runtime-link=shared \
link=shared,static \
debug-symbols=off \
2007-07-22 22:46:23 +10:00
--toolset=gcc \
--layout=tagged \
--prefix=$PKG/usr \
2007-12-17 09:24:00 +11:00
-sHAVE_ICU=1 \
-sEXPAT_INCLUDE=/usr/include \
-sEXPAT_LIBPATH=/usr/lib \
2007-07-22 22:46:23 +10:00
install
2012-05-17 21:45:15 +10:00
install -m 0755 bjam $PKG/usr/bin/bjam
2007-07-22 22:46:23 +10:00
cd libs/python/pyste/install
python setup.py install --root=$PKG
mv $PKG/usr/bin/pyste.py $PKG/usr/bin/pyste
2011-04-10 23:53:50 +10:00
find $PKG -name '*.egg-info' | xargs rm -rf
}