diff options
Diffstat (limited to 'meta/recipes-support/boost/boost.inc')
-rw-r--r-- | meta/recipes-support/boost/boost.inc | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc index 77105aa1fa..64a57ddfb2 100644 --- a/meta/recipes-support/boost/boost.inc +++ b/meta/recipes-support/boost/boost.inc | |||
@@ -16,6 +16,7 @@ do_configure[cleandirs] = "${B}" | |||
16 | 16 | ||
17 | BOOST_LIBS = "\ | 17 | BOOST_LIBS = "\ |
18 | atomic \ | 18 | atomic \ |
19 | charconv \ | ||
19 | chrono \ | 20 | chrono \ |
20 | container \ | 21 | container \ |
21 | context \ | 22 | context \ |
@@ -31,6 +32,7 @@ BOOST_LIBS = "\ | |||
31 | json \ | 32 | json \ |
32 | log \ | 33 | log \ |
33 | math \ | 34 | math \ |
35 | process \ | ||
34 | program_options \ | 36 | program_options \ |
35 | random \ | 37 | random \ |
36 | regex \ | 38 | regex \ |
@@ -42,6 +44,9 @@ BOOST_LIBS = "\ | |||
42 | type_erasure \ | 44 | type_erasure \ |
43 | url \ | 45 | url \ |
44 | wave \ | 46 | wave \ |
47 | ${@bb.utils.filter('PACKAGECONFIG', 'locale python', d)} \ | ||
48 | ${@bb.utils.contains('PACKAGECONFIG', 'graph_parallel', 'graph_parallel mpi', \ | ||
49 | bb.utils.filter('PACKAGECONFIG', 'mpi', d), d)} \ | ||
45 | " | 50 | " |
46 | 51 | ||
47 | # optional libraries | 52 | # optional libraries |
@@ -51,12 +56,6 @@ PACKAGECONFIG[graph_parallel] = ",,,boost-mpi mpich" | |||
51 | PACKAGECONFIG[mpi] = ",,mpich" | 56 | PACKAGECONFIG[mpi] = ",,mpich" |
52 | PACKAGECONFIG[python] = ",,python3" | 57 | PACKAGECONFIG[python] = ",,python3" |
53 | 58 | ||
54 | BOOST_LIBS += "\ | ||
55 | ${@bb.utils.filter('PACKAGECONFIG', 'locale python', d)} \ | ||
56 | ${@bb.utils.contains('PACKAGECONFIG', 'graph_parallel', 'graph_parallel mpi', \ | ||
57 | bb.utils.filter('PACKAGECONFIG', 'mpi', d), d)} \ | ||
58 | " | ||
59 | |||
60 | inherit python3-dir | 59 | inherit python3-dir |
61 | PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}" | 60 | PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}" |
62 | 61 | ||
@@ -69,14 +68,12 @@ python __anonymous () { | |||
69 | mlprefix = d.getVar("MLPREFIX") | 68 | mlprefix = d.getVar("MLPREFIX") |
70 | for lib in d.getVar('BOOST_LIBS').split(): | 69 | for lib in d.getVar('BOOST_LIBS').split(): |
71 | extras.append("--with-%s" % lib) | 70 | extras.append("--with-%s" % lib) |
72 | pkg = "boost-%s" % (lib.replace("_", "-")) | 71 | pkg = "%s-%s" % (d.getVar("BPN"), lib.replace("_", "-")) |
73 | if "-native" in pn: | 72 | if "-native" in pn: |
74 | pkg = pkg + "-native" | 73 | pkg = pkg + "-native" |
75 | packages.append(mlprefix + pkg) | 74 | packages.append(mlprefix + pkg) |
76 | if not d.getVar("FILES:%s" % pkg): | 75 | if not d.getVar("FILES:%s%s" % (mlprefix, pkg)): |
77 | d.setVar("FILES:%s%s" % (mlprefix, pkg), "${libdir}/libboost_%s*.so.*" % lib) | 76 | d.setVar("FILES:%s%s" % (mlprefix, pkg), "${libdir}/libboost_%s*.so.*" % lib) |
78 | else: | ||
79 | d.setVar("FILES:%s%s" % (mlprefix, pkg), d.getVar("FILES:%s" % pkg)) | ||
80 | 77 | ||
81 | d.setVar("BOOST_PACKAGES", " ".join(packages)) | 78 | d.setVar("BOOST_PACKAGES", " ".join(packages)) |
82 | d.setVar("BJAM_EXTRA", " ".join(extras)) | 79 | d.setVar("BJAM_EXTRA", " ".join(extras)) |
@@ -86,9 +83,9 @@ python __anonymous () { | |||
86 | FILES:${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*" | 83 | FILES:${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*" |
87 | FILES:${PN}-locale = "${libdir}/libboost_locale.so.*" | 84 | FILES:${PN}-locale = "${libdir}/libboost_locale.so.*" |
88 | FILES:${PN}-mpi = "${libdir}/mpi.so ${libdir}/libboost_mpi*.so.*" | 85 | FILES:${PN}-mpi = "${libdir}/mpi.so ${libdir}/libboost_mpi*.so.*" |
89 | FILES:boost-serialization = "${libdir}/libboost_serialization*.so.* \ | 86 | FILES:${PN}-serialization = "${libdir}/libboost_serialization*.so.* \ |
90 | ${libdir}/libboost_wserialization*.so.*" | 87 | ${libdir}/libboost_wserialization*.so.*" |
91 | FILES:boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \ | 88 | FILES:${PN}-test = "${libdir}/libboost_prg_exec_monitor*.so.* \ |
92 | ${libdir}/libboost_unit_test_framework*.so.*" | 89 | ${libdir}/libboost_unit_test_framework*.so.*" |
93 | 90 | ||
94 | # -dev last to pick up the remaining stuff | 91 | # -dev last to pick up the remaining stuff |