summaryrefslogtreecommitdiffstats
path: root/extra/boost/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-12-29 01:07:53 +0000
committersibel <lesibel@free.fr>2010-12-29 01:07:53 +0000
commit481ce4c8c9bfa93e8751e13e9d2e965a45b4cbaa (patch)
tree40074f60ef3de55a5eb34bec156431deba735128 /extra/boost/Pkgfile
parent6c475b3af7129ac94d331ef078ae051fc16361de (diff)
downloadnutyx-pakxe-481ce4c8c9bfa93e8751e13e9d2e965a45b4cbaa.tar.gz
nutyx-pakxe-481ce4c8c9bfa93e8751e13e9d2e965a45b4cbaa.tar.bz2
nutyx-pakxe-481ce4c8c9bfa93e8751e13e9d2e965a45b4cbaa.tar.xz
nutyx-pakxe-481ce4c8c9bfa93e8751e13e9d2e965a45b4cbaa.zip
boost#1.45.0-1, maj port
Diffstat (limited to 'extra/boost/Pkgfile')
-rw-r--r--extra/boost/Pkgfile77
1 files changed, 40 insertions, 37 deletions
diff --git a/extra/boost/Pkgfile b/extra/boost/Pkgfile
index 15816c22a..0c3941441 100644
--- a/extra/boost/Pkgfile
+++ b/extra/boost/Pkgfile
@@ -2,58 +2,61 @@
# URL: http://boost.sourceforge.net/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: python
+# Depends on:
name=boost
-version=1.43.0
+version=1.45.0
release=1
-_boostver=1_43_0
-source=(http://downloads.sourceforge.net/$name/boost_${version//./_}.tar.bz2\
- layout-tagged.patch translate_exception.patch )
+_boostver=1_45_0
+
+source=(http://downloads.sourceforge.net/$name/boost_${version//./_}.tar.bz2 )
build() {
cd boost_${version//./_}
-# patch -Np0 -i ../layout-tagged.patch
-# patch -Np1 -i ../translate_exception.patch
+
+# build bjam
+ cd $SRC/boost_${_boostver}/tools/
+ echo "using python : 2.7 : /usr/bin/python2 ;" >> build/v2/user-config.jam
+ cd $SRC/boost_${_boostver}/tools/build/v2/engine/src
+ ./build.sh cc
+
+ _bindir="bin.linuxx86"
+ [ "`uname -m`" = "x86_64" ] && _bindir="bin.linuxx86_64"
- # build bjam
- cd ${SRC}/${name}_${_boostver}/tools/jam/src
- ./build.sh cc || return 1
+ install -m755 -d $PKG/usr/bin
+ install -m755 ${_bindir}/bjam $PKG/usr/bin/bjam
- _bindir="bin.linuxx86"
- [ "`uname -m`" = "x86_64" ] && _bindir="bin.linuxx86_64"
+# build bcp
+ cd $SRC/boost_${_boostver}/tools/bcp
+
+ ../build/v2/engine/src/${_bindir}/bjam --toolset=gcc
+
+ install -m755 $SRC/boost_${_boostver}/dist/bin/bcp $PKG/usr/bin/bcp
- install -m755 -d ${PKG}/usr/bin
- install -m755 ${_bindir}/bjam ${PKG}/usr/bin/bjam || return 1
- # build bcp
- cd ${SRC}/${name}_${_boostver}/tools/bcp
- ../jam/src/${_bindir}/bjam || return 1
- install -m755 ${SRC}/${name}_${_boostver}/dist/bin/bcp \
- ${PKG}/usr/bin/bcp || return 1
+# build libs
+ cd $SRC/boost_${_boostver}
- # build libs
- cd ${SRC}/${name}_${_boostver}
# default "minimal" install: "release link=shared,static
# runtime-link=shared threading=multi"
# --layout=tagged will add the "-mt" suffix for multithreaded libraries
# and installs includes in /usr/include/boost.
# --layout=system no longer adds the -mt suffix for multi-threaded libs.
- ./tools/jam/src/${_bindir}/bjam \
- release debug-symbols=off threading=single,multi \
- runtime-link=shared link=shared,static \
- cflags=-fno-strict-aliasing \
- --prefix=${PKG}/usr \
- -sPYTHON_ROOT=/usr \
- -sPYTHON_VERSION=2.6 \
- -sTOOLS=gcc \
- --layout=tagged \
- install || return 1
-# --with-wave install || return 1
-# -d2 <- debug cflags=-fno-strict-aliasing \
-
- # build pyste
- cd ${SRC}/${name}_${_boostver}/libs/python/pyste/install
- python setup.py install --root=${PKG} || return 1
+
+ ./tools/build/v2/engine/src/${_bindir}/bjam \
+ release debug-symbols=off threading=single,multi \
+ runtime-link=shared link=shared,static \
+ cflags=-fno-strict-aliasing \
+ toolset=gcc \
+ --prefix=$PKG/ \
+ -sTOOLS=gcc \
+ --layout=tagged \
+ ${MAKEFLAGS} \
+ install
+
+# build pyste
+ cd $SRC/boost_${_boostver}/libs/python/pyste/install
+ python2 setup.py install --root=$PKG
+
}