2006-11-21 22:03:23 +11:00
|
|
|
# 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
|
2006-11-21 22:03:23 +11:00
|
|
|
# Packager: sten, nick dot steeves at shaw dot ca
|
2008-11-05 00:17:42 +11:00
|
|
|
# Depends on: boost-jam icu python expat
|
2006-11-21 22:03:23 +11:00
|
|
|
|
|
|
|
name=boost
|
2010-12-24 22:49:57 +11:00
|
|
|
version=1.45.0
|
2008-11-05 00:17:42 +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)
|
2006-11-21 22:03:23 +11:00
|
|
|
|
|
|
|
build() {
|
2010-11-13 15:04:55 +11:00
|
|
|
cd ${name}_${version//./_}
|
2007-07-22 22:46:23 +10:00
|
|
|
|
2008-09-13 16:12:45 +10: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 22:46:23 +10:00
|
|
|
|
2008-05-02 04:16:07 +10:00
|
|
|
pushd tools/bcp
|
|
|
|
bjam \
|
2008-09-13 16:12:45 +10:00
|
|
|
$JOBS -q -d 2 \
|
2008-05-02 04:16:07 +10:00
|
|
|
debug-symbols=off \
|
2008-09-13 16:12:45 +10:00
|
|
|
--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
|
|
|
|
2008-09-13 16:12:45 +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
|
|
|
|
2007-12-17 09:24:00 +11:00
|
|
|
bjam \
|
2008-09-13 16:12:45 +10:00
|
|
|
$JOBS -q -d 2 \
|
2007-12-17 09:24:00 +11:00
|
|
|
release \
|
|
|
|
threading=single,multi \
|
|
|
|
runtime-link=shared \
|
|
|
|
link=shared,static \
|
2008-09-13 16:12:45 +10:00
|
|
|
debug-symbols=off \
|
2007-07-22 22:46:23 +10:00
|
|
|
--toolset=gcc \
|
2010-09-24 22:33:56 +10:00
|
|
|
--layout=tagged \
|
2008-09-13 16:12:45 +10:00
|
|
|
--prefix=$PKG/usr \
|
2007-12-17 09:24:00 +11:00
|
|
|
-sHAVE_ICU=1 \
|
2008-09-13 16:12:45 +10:00
|
|
|
-sEXPAT_INCLUDE=/usr/include \
|
|
|
|
-sEXPAT_LIBPATH=/usr/lib \
|
2007-07-22 22:46:23 +10:00
|
|
|
install
|
|
|
|
|
|
|
|
cd libs/python/pyste/install
|
|
|
|
python setup.py install --root=$PKG
|
|
|
|
mv $PKG/usr/bin/pyste.py $PKG/usr/bin/pyste
|
2006-11-21 22:03:23 +11:00
|
|
|
}
|