Magellan Linux

Contents of /trunk/extras/boost/boost-1.34.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 379 - (show annotations) (download)
Tue Dec 23 23:58:43 2008 UTC (15 years, 4 months ago) by niro
File size: 2463 byte(s)
-moved to core
1 # $Header: /magellan-cvs/smage/boost/boost-1.34.1-r2.smage2,v 1.4 2008/02/14 19:37:34 niro Exp $
2
3 PNAME="boost"
4 PVER="1.34.1"
5 PBUILD="r2"
6
7 PCATEGORIE="dev-libs"
8 STATE="unstable"
9
10 DESCRIPTION="Boost provides free peer-reviewed portable C++ source libraries."
11 HOMEPAGE="http://www.boost.org/"
12
13 DEPEND=">= dev-lang/python-2.5"
14
15 SRCFILE="${PNAME}_$(echo ${PVER} | sed "s:\.:_:g").tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}_$(echo ${PVER} | sed "s:\.:_:g")"
17
18 sminclude python mbuild mtools
19
20 SRC_URI=(
21 sourceforge://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 src_compile()
26 {
27 # bjam builded with gcc-4.2 segfaults without '-fno-strict-aliasing'
28 # see: http://svn.boost.org/trac/boost/ticket/977
29 export CFLAGS="${CFLAGS} -fno-strict-aliasing"
30 export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
31
32 # first build bjam (must use cc not gcc to use our modified cflags)
33 cd ${SRCDIR}/tools/jam/src
34 ./build.sh cc || die
35
36 # find bjam exec
37 local bjam=$(find ${SRCDIR}/tools/jam/src/ -name bjam -a -type f)
38
39 # build bcp
40 cd ${SRCDIR}/tools/bcp
41 ${bjam} || die
42
43 # build boost libraries
44 cd ${SRCDIR}
45 ${bjam} \
46 release \
47 debug-symbols=off \
48 runtime-link=shared \
49 link=shared,static \
50 threading=single,multi \
51 -sPYTHON_ROOT=/usr \
52 -sPYTHON_VERSION=$(get_python_version) \
53 -sTOOLS=gcc \
54 --prefix=${BINDIR}/usr \
55 --layout=system \
56 || die
57
58 # build pyste
59 cd ${SRCDIR}/libs/python/pyste/install
60 python setup.py build || die
61 }
62
63 src_install ()
64 {
65 cd ${SRCDIR}
66
67 # find bjam exec
68 local bjam=$(find ${SRCDIR}/tools/jam/src/ -name bjam -a -type f)
69
70 # install boost
71 ${bjam} \
72 release \
73 debug-symbols=off \
74 runtime-link=shared \
75 link=shared,static \
76 threading=single,multi \
77 -sPYTHON_ROOT=/usr \
78 -sPYTHON_VERSION=$(get_python_version) \
79 -sTOOLS=gcc \
80 --prefix=${BINDIR}/usr \
81 --libdir=${BINDIR}/usr/$(mlibdir) \
82 --layout=system \
83 install \
84 || die
85
86 # install bjam and bcp executables
87 minstallexec ${bjam} || die
88 minstallexec ${SRCDIR}/dist/bin/bcp || die
89
90 # install pyste
91 cd ${SRCDIR}/libs/python/pyste/install
92 python setup.py install --no-compile --root ${BINDIR} || die
93
94 # install docs
95 cd ${SRCDIR}
96 minstalldocs LICENSE_1_0.txt README || die
97 minstalldir /usr/share/boost-build || die
98 cd ${SRCDIR}/tools/build
99 cp -pPR boost.css index.html v2/ ${BINDIR}/usr/share/boost-build || die
100
101 # # fix libdir on 64bit arches
102 # if [[ $(mlibdir) != lib ]]
103 # then
104 # mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die
105 # fi
106 }

Properties

Name Value
svn:keywords Id