summaryrefslogtreecommitdiff
path: root/boost
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2008-09-13 16:12:45 +1000
committerDanny Rawlins <romster@shortcircuit.net.au>2008-09-13 16:17:57 +1000
commita6fdcf4dd2e4605bed5c1654ba613ae0d275808e (patch)
tree0c48f4e2e9c44d2a6002690b0c8db1b4e6a695f3 /boost
parente73eafa72d431c02abe30ab9b11257be65bee90b (diff)
downloadcontrib-a6fdcf4dd2e4605bed5c1654ba613ae0d275808e.tar.gz
contrib-a6fdcf4dd2e4605bed5c1654ba613ae0d275808e.tar.xz
boost: use system cxxflags and respect MAKEFLAGS
Diffstat (limited to 'boost')
-rw-r--r--boost/Pkgfile22
1 files changed, 13 insertions, 9 deletions
diff --git a/boost/Pkgfile b/boost/Pkgfile
index 63eec09dd..43d412bd3 100644
--- a/boost/Pkgfile
+++ b/boost/Pkgfile
@@ -6,36 +6,40 @@
name=boost
version=1.36.0
-release=1
+release=2
source=(http://dl.sourceforge.net/sourceforge/boost/boost_${version//./_}.tar.bz2)
build() {
cd boost_${version//./_}
- local gccversion="$(gcc -dumpversion)"
- export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
- export EXPAT_INCLUDE=/usr/include
- export EXPAT_LIBPATH=/usr/lib
+ sed -i -e "s|-O3|$CXXFLAGS -Wno-deprecated|" tools/build/v2/tools/gcc.jam
+ local JOBS="$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< $MAKEFLAGS)"
pushd tools/bcp
bjam \
- --toolset=gcc \
+ $JOBS -q -d 2 \
debug-symbols=off \
+ --toolset=gcc \
+ -sEXPAT_INCLUDE=/usr/include \
+ -sEXPAT_LIBPATH=/usr/lib \
-sHAVE_ICU=1
- install -D -m 0755 ../../bin.v2/tools/bcp/gcc-$gccversion/release/link-static/bcp $PKG/usr/bin/bcp
+ install -m 0755 -D ../../bin.v2/tools/bcp/gcc-$(gcc -dumpversion)/release/link-static/bcp $PKG/usr/bin/bcp
popd
bjam \
+ $JOBS -q -d 2 \
release \
- debug-symbols=off \
threading=single,multi \
runtime-link=shared \
link=shared,static \
- --prefix=$PKG/usr \
+ debug-symbols=off \
--toolset=gcc \
--layout=system \
+ --prefix=$PKG/usr \
-sHAVE_ICU=1 \
+ -sEXPAT_INCLUDE=/usr/include \
+ -sEXPAT_LIBPATH=/usr/lib \
install
cd libs/python/pyste/install

Generated by cgit