summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/boost/boost.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/boost/boost.inc')
-rw-r--r--meta/recipes-support/boost/boost.inc33
1 files changed, 30 insertions, 3 deletions
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index 5696b6adb6..7637a4e932 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -8,11 +8,14 @@ ARM_INSTRUCTION_SET_armv5 = "arm"
8BOOST_LIBS = "\ 8BOOST_LIBS = "\
9 atomic \ 9 atomic \
10 chrono \ 10 chrono \
11 container \
11 date_time \ 12 date_time \
13 exception \
12 filesystem \ 14 filesystem \
13 graph \ 15 graph \
14 iostreams \ 16 iostreams \
15 log \ 17 log \
18 math \
16 program_options \ 19 program_options \
17 random \ 20 random \
18 regex \ 21 regex \
@@ -22,12 +25,28 @@ BOOST_LIBS = "\
22 timer \ 25 timer \
23 test \ 26 test \
24 thread \ 27 thread \
28 wave \
25 " 29 "
26 30
27# optional boost-python library 31# only supported by x86 and powerpc
28PACKAGECONFIG ??= "" 32BOOST_LIBS_append_x86 = " context coroutine"
33BOOST_LIBS_append_x86-64 = " context coroutine"
34BOOST_LIBS_append_powerpc = " context coroutine"
35
36# optional libraries
37PACKAGECONFIG ??= "locale"
38PACKAGECONFIG[locale] = ",,icu"
39PACKAGECONFIG[graph_parallel] = ",,,boost-mpi mpich"
40PACKAGECONFIG[mpi] = ",,mpich"
29PACKAGECONFIG[python] = ",,python python3" 41PACKAGECONFIG[python] = ",,python python3"
30BOOST_LIBS += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python python3', '', d)}" 42
43BOOST_LIBS += "\
44 ${@bb.utils.contains('PACKAGECONFIG', 'locale', 'locale', '', d)} \
45 ${@bb.utils.contains('PACKAGECONFIG', 'graph_parallel', 'graph_parallel mpi', \
46 bb.utils.contains('PACKAGECONFIG', 'mpi', 'mpi', '', d), d)} \
47 ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python python3', '', d)} \
48"
49
31inherit python-dir 50inherit python-dir
32PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}" 51PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}"
33 52
@@ -54,6 +73,10 @@ python __anonymous () {
54} 73}
55 74
56# Override the contents of specific packages 75# Override the contents of specific packages
76FILES_${PN}-graph = "${libdir}/libboost_graph.so.*"
77FILES_${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*"
78FILES_${PN}-locale = "${libdir}/libboost_locale.so.*"
79FILES_${PN}-mpi = "${libdir}/mpi.so ${libdir}/libboost_mpi*.so.*"
57FILES_boost-serialization = "${libdir}/libboost_serialization*.so.* \ 80FILES_boost-serialization = "${libdir}/libboost_serialization*.so.* \
58 ${libdir}/libboost_wserialization*.so.*" 81 ${libdir}/libboost_wserialization*.so.*"
59FILES_boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \ 82FILES_boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
@@ -159,6 +182,10 @@ do_configure() {
159 echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${WORKDIR}/user-config.jam 182 echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${WORKDIR}/user-config.jam
160 echo "using python : 3.5 : : ${STAGING_INCDIR}/python3.5m ;" >> ${WORKDIR}/user-config.jam 183 echo "using python : 3.5 : : ${STAGING_INCDIR}/python3.5m ;" >> ${WORKDIR}/user-config.jam
161 184
185 if ${@bb.utils.contains('BOOST_LIBS', 'mpi', 'true', 'false', d)}; then
186 echo "using mpi : : <find-shared-library>mpi ;" >> ${WORKDIR}/user-config.jam
187 fi
188
162 CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-bjam=bjam --with-toolset=gcc --with-python-root=${PYTHON_ROOT} 189 CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-bjam=bjam --with-toolset=gcc --with-python-root=${PYTHON_ROOT}
163 sed -i '/^using python/d' ${S}/project-config.jam 190 sed -i '/^using python/d' ${S}/project-config.jam
164} 191}