summaryrefslogtreecommitdiffstats
path: root/boost/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /boost/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'boost/Pkgfile')
-rw-r--r--boost/Pkgfile74
1 files changed, 74 insertions, 0 deletions
diff --git a/boost/Pkgfile b/boost/Pkgfile
new file mode 100644
index 000000000..1269bf9c8
--- /dev/null
+++ b/boost/Pkgfile
@@ -0,0 +1,74 @@
+# Description: Free peer-reviewed portable C++ source libraries
+# URL: http://boost.sourceforge.net/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: python
+# Run on:
+
+name=boost
+version=1.47.0
+release=1
+_boostver=1_47_0
+
+source=(http://downloads.sourceforge.net/$name/boost_$_boostver.tar.bz2
+ http://nutyx.meticul.eu/files/patchs/boost/boost-1.46.0-signals-erase-2.patch)
+
+build() {
+ cd boost_$_boostver
+# patch -Np1 -i ../boost-1.46.0-signals-erase-2.patch
+
+# build bjam
+ cd $SRC/boost_${_boostver}/tools/
+ echo "using python : 2.7 : /usr/bin/python2 ;" >> build/v2/user-config.jam
+ echo "using python : 3.2 : /usr/bin/python : /usr/include/python3.2mu : /usr/lib ;" >> build/v2/user-config.jam
+
+ cd $SRC/boost_${_boostver}/tools/build/v2/engine
+ ./build.sh cc
+
+ case `uname -m` in
+ x86_64)
+ _bindir="bin.linuxx86_64" ;;
+ i?86)
+ _bindir="bin.linuxx86" ;;
+
+ esac
+
+ install -m755 -d $PKG/usr/bin
+ install -m755 ${_bindir}/bjam $PKG/usr/bin/bjam
+
+# build bcp
+ cd $SRC/boost_${_boostver}/tools/bcp
+
+ ../build/v2/engine/${_bindir}/bjam --toolset=gcc
+
+ install -m755 $SRC/boost_${_boostver}/dist/bin/bcp $PKG/usr/bin/bcp
+
+
+# build libs
+ cd $SRC/boost_${_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/build/v2/engine/${_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
+
+ install -dm 755 $PKG/usr/{include,lib}
+ cp -r $PKG/include/ $PKG/usr/
+ rm -rf $PKG/include/
+}