Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 909 - (show annotations)
Sun Oct 4 15:10:48 2009 UTC (3 years, 7 months ago) by cjg
File size: 1342 byte(s)
boost: updated to 1.38.0
1 # Description: Boost provides free peer-reviewed portable C++ source libraries.
2 # URL: http://boost.sourceforge.net
3 # Packager: Giuseppe Coviello <cjg@cruxppc.org>
4 # Maintainer: CRUX PPC Team
5 # Depends on: python
6 # PPC!=upstream:
7
8 name=boost
9 version=1.38.0
10 release=1
11 source=(http://dl.sourceforge.net/sourceforge/$name/${name}_${version//./_}.tar.bz2)
12
13 build() {
14 cd ${name}_${version//./_}
15 export CFLAGS="${CFLAGS} -fno-strict-aliasing"
16 export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
17 sed -i -e "s|-O3|$CXXFLAGS|" tools/build/v2/tools/gcc.jam
18
19 cd tools/jam/src
20 ./build.sh cc
21
22 _bindir="bin.linuxx86"
23
24 if [ "`uname -m`" == "ppc" ]; then
25 _bindir="bin.linuxppc"
26 fi
27
28 install -D -m755 $_bindir/bjam $PKG/usr/bin/bjam
29
30 cd ../../bcp
31 ../jam/src/$_bindir/bjam
32 install -D -m755 $SRC/${name}_${version//./_}/dist/bin/bcp $PKG/usr/bin/bcp
33
34 cd $SRC/${name}_${version//./_}
35 ./tools/jam/src/$_bindir/bjam \
36 release debug-symbols=off \
37 threading=single,multi \
38 runtime-link=shared \
39 link=shared,static \
40 --prefix=$PKG/usr \
41 -sPYTHON_ROOT=/usr \
42 -sPYTHON_VERSION=2.6 \
43 -sTOOLS=gcc \
44 --layout=system \
45 install
46
47 cd libs/python/pyste/install
48 python setup.py install --root=$PKG
49 mv $PKG/usr/bin/pyste.py $PKG/usr/bin/pyste
50 }