Magellan Linux

Annotation of /trunk/extras/boost/boost-1.37.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1838 - (hide annotations) (download)
Sat Jun 6 21:47:09 2009 UTC (14 years, 11 months ago) by niro
File size: 2415 byte(s)
auto added: ver bump to 1.37.0-r1
1 niro 1838 # $Id$
2    
3     PNAME="boost"
4     PVER="1.37.0"
5     PBUILD="r1"
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.6"
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     UP2DATE="updatecmd_sourceforge ${PNAME}"
26    
27     src_compile()
28     {
29     # bjam builded with gcc-4.2 segfaults without '-fno-strict-aliasing'
30     # see: http://svn.boost.org/trac/boost/ticket/977
31     export CFLAGS="${CFLAGS} -fno-strict-aliasing"
32     export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
33    
34     # first build bjam (must use cc not gcc to use our modified cflags)
35     cd ${SRCDIR}/tools/jam/src
36     ./build.sh cc || die
37    
38     # find bjam exec
39     local bjam=$(find ${SRCDIR}/tools/jam/src/ -name bjam -a -type f)
40    
41     # build bcp
42     cd ${SRCDIR}/tools/bcp
43     ${bjam} || die
44    
45     # build boost libraries
46     cd ${SRCDIR}
47     ${bjam} \
48     release \
49     debug-symbols=off \
50     runtime-link=shared \
51     link=shared,static \
52     threading=single,multi \
53     -sPYTHON_ROOT=/usr \
54     -sPYTHON_VERSION=$(get_python_version) \
55     -sTOOLS=gcc \
56     --prefix=${BINDIR}/usr \
57     --layout=system \
58     || die
59    
60     # build pyste
61     cd ${SRCDIR}/libs/python/pyste/install
62     python setup.py build || die
63     }
64    
65     src_install ()
66     {
67     cd ${SRCDIR}
68    
69     # find bjam exec
70     local bjam=$(find ${SRCDIR}/tools/jam/src/ -name bjam -a -type f)
71    
72     # install boost
73     ${bjam} \
74     release \
75     debug-symbols=off \
76     runtime-link=shared \
77     link=shared,static \
78     threading=single,multi \
79     -sPYTHON_ROOT=/usr \
80     -sPYTHON_VERSION=$(get_python_version) \
81     -sTOOLS=gcc \
82     --prefix=${BINDIR}/usr \
83     --libdir=${BINDIR}/usr/$(mlibdir) \
84     --layout=system \
85     install \
86     || die
87    
88     # install bjam and bcp executables
89     minstallexec ${bjam} || die
90     minstallexec ${SRCDIR}/dist/bin/bcp || die
91    
92     # install pyste
93     cd ${SRCDIR}/libs/python/pyste/install
94     python setup.py install --no-compile --root ${BINDIR} || die
95    
96     # install docs
97     cd ${SRCDIR}
98     minstalldocs LICENSE_1_0.txt README || die
99     minstalldir /usr/share/boost-build || die
100     cd ${SRCDIR}/tools/build
101     cp -pPR boost.css index.html v2/ ${BINDIR}/usr/share/boost-build || die
102    
103     # # fix libdir on 64bit arches
104     # if [[ $(mlibdir) != lib ]]
105     # then
106     # mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die
107     # fi
108     }

Properties

Name Value
svn:keywords Id