blob: 712bb6c566c446672a9fb5c81c25014478ef336d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# This needs bjam (boost-jam-native) 3.1.16
#
# Warning! The build system for boost seems to have changed
# significantly since 1.33 (again).
include boost.inc
DEFAULT_PREFERENCE = "-1"
DEPENDS += "bzip2"
SRC_URI = "\
${SOURCEFORGE_MIRROR}/boost/${BOOST_P}.tar.bz2 \
file://linux-uclibc.patch;patch=1 \
file://${PV}-gcc43.patch;patch=1 \
"
PR = "r1"
BJAM_TOOLS = "--toolset=gcc \
'-sGCC=${CC} '${BJAM_CONF} \
'-sGXX=${CXX} '${BJAM_CONF} \
'-sGCC_INCLUDE_DIRECTORY=${STAGING_INCDIR}' \
'-sGCC_STDLIB_DIRECTORY=${STAGING_LIBDIR}' \
'-sBUILD=release <optimization>space <inlining>on <debug-symbols>off' \
'-sPYTHON_VERSION=${PYTHON_VERSION}' \
'-sPYTHON=${STAGING_BINDIR_NATIVE}/python' \
'-sPYTHON_ROOT=${PYTHON_ROOT}' \
'-sBZIP2_LIBPATH=${STAGING_LIBDIR}' \
'-sZLIB_LIBPATH=${STAGING_LIBDIR}' \
'--layout=system' \
"
BJAM_OPTS = '${BJAM_TOOLS} \
--builddir=${S}/${TARGET_SYS} \
${BJAM_EXTRA}'
do_configure() {
echo "import toolset : using ;" > tools/build/v2/user-config.jam
echo "using gcc : : ${CC} : <cflags>${CFLAGS} <cxxflags>${CXXFLAGS} <linkflags>${LDFLAGS} ;" >> tools/build/v2/user-config.jam
}
do_install_append() {
# Since boost does not provide library files in the form
# lib<name>.so.<abi> and a symlink pointing to this file
# we need to do this manually.
for F in `find ${D}${libdir} -name "*.so" -maxdepth 1`; do
echo renaming $F to $F.${PV}
mv $F $F.${PV}
ln -sf `basename $F`.${PV} $F
done
}
|