Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 2425 byte(s)
import repo
1 niro 2 # $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     --layout=system \
82     install \
83     || die
84    
85     # install bjam and bcp executables
86     minstallexec ${bjam} || die
87     minstallexec ${SRCDIR}/dist/bin/bcp || die
88    
89     # install pyste
90     cd ${SRCDIR}/libs/python/pyste/install
91     python setup.py install --no-compile --root ${BINDIR} || die
92    
93     # install docs
94     cd ${SRCDIR}
95     minstalldocs LICENSE_1_0.txt README || die
96     minstalldir /usr/share/boost-build || die
97     cd ${SRCDIR}/tools/build
98     cp -pPR boost.css index.html v2/ ${BINDIR}/usr/share/boost-build || die
99    
100     # # fix libdir on 64bit arches
101     # if [[ $(mlibdir) != lib ]]
102     # then
103     # mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die
104     # fi
105     }

Properties

Name Value
svn:keywords Id