Magellan Linux

Contents of /trunk/extras/boost/boost-1.49.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11419 - (show annotations) (download)
Fri Mar 9 08:28:06 2012 UTC (12 years, 3 months ago) by niro
File size: 2508 byte(s)
auto added: ver bump to 1.49.0-r1
1 # $Id$
2
3 PNAME="boost"
4 PVER="1.49.0"
5 PBUILD="r1"
6
7 PCAT="dev-libs"
8
9 DESCRIPTION="Boost provides free peer-reviewed portable C++ source libraries."
10 HOMEPAGE="http://www.boost.org/"
11
12 DEPEND=">= dev-lang/python-2.7
13 >= sys-libs/zlib-1.2
14 >= sys-libs/libstdc++-4.6"
15
16 SRCFILE="${PNAME}_$(echo ${PVER} | sed "s:\.:_:g").tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}_$(echo ${PVER} | sed "s:\.:_:g")"
18
19 sminclude python mbuild mtools
20 msetfeature "!check"
21
22 SRC_URI=(
23 sourceforge://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd_sourceforge ${PNAME}"
28
29 src_compile()
30 {
31 # bjam builded with gcc-4.2 segfaults without '-fno-strict-aliasing'
32 # see: http://svn.boost.org/trac/boost/ticket/977
33 export CFLAGS="${CFLAGS} -fno-strict-aliasing"
34 export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
35
36 # first build bjam (must use cc not gcc to use our modified cflags)
37 cd ${SRCDIR}/tools/build/v2/engine
38 ./build.sh cc || die
39
40 # find bjam exec
41 local bjam=$(find ${SRCDIR}/tools/build/v2/engine -name bjam -a -type f)
42
43 # build bcp
44 cd ${SRCDIR}/tools/bcp
45 ${bjam} || die
46
47 # build boost libraries
48 # --layout=tagged will add the "-mt" suffix for multithreaded libraries
49 # and installs includes in /usr/include/boost.
50 # --layout=system no longer adds the -mt suffix for multi-threaded libs.
51 cd ${SRCDIR}
52 ${bjam} \
53 release \
54 debug-symbols=off \
55 runtime-link=shared \
56 link=shared,static \
57 threading=single,multi \
58 -sPYTHON_ROOT=/usr \
59 -sPYTHON_VERSION=$(get_python_version) \
60 -sTOOLS=gcc \
61 --prefix=${BINDIR}/usr \
62 --layout=tagged \
63 || die
64
65 # build pyste
66 cd ${SRCDIR}/libs/python/pyste/install
67 python_docompile || die
68 }
69
70 src_install ()
71 {
72 cd ${SRCDIR}
73
74 # find bjam exec
75 local bjam=$(find ${SRCDIR}/tools/build/v2/engine -name bjam -a -type f)
76
77 # install boost
78 ${bjam} \
79 release \
80 debug-symbols=off \
81 runtime-link=shared \
82 link=shared,static \
83 threading=single,multi \
84 -sPYTHON_ROOT=/usr \
85 -sPYTHON_VERSION=$(get_python_version) \
86 -sTOOLS=gcc \
87 --prefix=${BINDIR}/usr \
88 --libdir=${BINDIR}/usr/$(mlibdir) \
89 --layout=tagged \
90 install \
91 || die
92
93 # install bjam and bcp executables
94 minstallexec ${bjam} || die
95 minstallexec ${SRCDIR}/dist/bin/bcp || die
96
97 # install pyste
98 cd ${SRCDIR}/libs/python/pyste/install
99 python_doinstall || die
100
101 # install docs
102 cd ${SRCDIR}
103 minstalldocs LICENSE_1_0.txt README || die
104 minstalldir /usr/share/boost-build || die
105 cd ${SRCDIR}/tools/build
106 cp -pPR boost.css index.html v2/ ${BINDIR}/usr/share/boost-build || die
107 }