Contents of /trunk/extras/boost/boost-1.40.0-r1.smage2
Parent Directory | Revision Log
Revision 3701 -
(show annotations)
(download)
Fri Oct 30 15:39:47 2009 UTC (14 years, 10 months ago) by niro
File size: 2461 byte(s)
Fri Oct 30 15:39:47 2009 UTC (14 years, 10 months ago) by niro
File size: 2461 byte(s)
auto added: ver bump to 1.40.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="boost" |
4 | PVER="1.40.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 | --with-toolset=gcc \ |
59 | || die |
60 | |
61 | # build pyste |
62 | cd ${SRCDIR}/libs/python/pyste/install |
63 | python setup.py build || die |
64 | } |
65 | |
66 | src_install () |
67 | { |
68 | cd ${SRCDIR} |
69 | |
70 | # find bjam exec |
71 | local bjam=$(find ${SRCDIR}/tools/jam/src/ -name bjam -a -type f) |
72 | |
73 | # install boost |
74 | ${bjam} \ |
75 | release \ |
76 | debug-symbols=off \ |
77 | runtime-link=shared \ |
78 | link=shared,static \ |
79 | threading=single,multi \ |
80 | -sPYTHON_ROOT=/usr \ |
81 | -sPYTHON_VERSION=$(get_python_version) \ |
82 | -sTOOLS=gcc \ |
83 | --prefix=${BINDIR}/usr \ |
84 | --libdir=${BINDIR}/usr/$(mlibdir) \ |
85 | --layout=system \ |
86 | --with-toolset=gcc \ |
87 | install \ |
88 | || die |
89 | |
90 | # install bjam and bcp executables |
91 | minstallexec ${bjam} || die |
92 | minstallexec ${SRCDIR}/dist/bin/bcp || die |
93 | |
94 | # install pyste |
95 | cd ${SRCDIR}/libs/python/pyste/install |
96 | python setup.py install --no-compile --root ${BINDIR} || die |
97 | |
98 | # install docs |
99 | cd ${SRCDIR} |
100 | minstalldocs LICENSE_1_0.txt README || die |
101 | minstalldir /usr/share/boost-build || die |
102 | cd ${SRCDIR}/tools/build |
103 | cp -pPR boost.css index.html v2/ ${BINDIR}/usr/share/boost-build || die |
104 | |
105 | # # fix libdir on 64bit arches |
106 | # if [[ $(mlibdir) != lib ]] |
107 | # then |
108 | # mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die |
109 | # fi |
110 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |