1 # The Boost web site provides free peer-reviewed portable
2 # C++ source libraries. The emphasis is on libraries which
3 # work well with the C++ Standard Library. The libraries are
4 # intended to be widely useful, and are in regular use by
5 # thousands of programmers across a broad spectrum of applications.
6 DESCRIPTION = "Free peer-reviewed portable C++ source libraries"
7 HOMEPAGE = "http://www.boost.org/"
9 DEPENDS = "zlib bzip2 python expat"
11 LICENSE = "Boost Software License"
14 ARM_INSTRUCTION_SET = "arm"
15 BOOST_VER = "${@"_".join(bb.data.getVar("PV",d,1).split("."))}"
16 BOOST_MAJ = "${@"_".join(bb.data.getVar("PV",d,1).split(".")[0:2])}"
17 BOOST_P = "boost_${BOOST_VER}"
21 EXTRA_OECMAKE = "-DBUILD_SHARED=ON \
22 -DBUILD_MULTI_THREADED=ON \
26 -DINSTALL_VERSIONED:BOOL=OFF \
44 # FIXME: for some reason this fails on powerpc
45 #BOOST_LIBS += "serialization"
47 # To enable python, uncomment the following:
48 #BOOST_LIBS += "python"
50 #PYTHON_ROOT = "${STAGING_DIR_HOST}/${layout_prefix}"
51 #PYTHON_VERSION = "2.5"
53 S = "${WORKDIR}/${BOOST_P}"
55 # Make a package for each library, plus -dev
56 PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
57 python __anonymous () {
62 for lib in bb.data.getVar('BOOST_LIBS', d, 1).split( ):
63 pkg = "boost-%s" % lib.replace("_", "-")
64 extras.append("--with-%s" % lib)
66 if not bb.data.getVar("FILES_%s" % pkg, d, 1):
67 bb.data.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s*.so*" % lib, d)
68 bb.data.setVar("BOOST_PACKAGES", " ".join(packages), d)
71 # Override the contents of specific packages
72 FILES_boost-serialization = "${libdir}/libboost_serialization*.so* \
73 ${libdir}/libboost_wserialization*.so*"
74 FILES_boost-test = "${libdir}/libboost_prg_exec_monitor*.so \
75 ${libdir}/libboost_unit_test_framework*.so*"
77 # -dev last to pick up the remaining stuff
78 PACKAGES += "${PN}-dev"
79 FILES_${PN}-dev = "${includedir} ${libdir}/libboost_*.so ${libdir}/libboost_*.a"
81 # "boost" is a metapackage which pulls in all boost librabries
83 RRECOMMENDS_${PN} += "${BOOST_PACKAGES}"