libgcrypt: update to 1.4.6
[openembedded.git] / recipes / boost / boost-14x.inc
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/"
8 SECTION = "libs"
9 DEPENDS = "zlib bzip2 python expat"
10 PRIORITY = "optional"
11 LICENSE = "Boost Software License"
12 INC_PR = "r8"
13
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}"
18
19 inherit cmake
20
21 EXTRA_OECMAKE = "-DBUILD_SHARED=ON \
22                  -DBUILD_MULTI_THREADED=ON \
23                  -DBUILD_RELEASE=ON \
24                  -DBUILD_DEBUG=OFF \
25                  -DWITH_MPI:BOOL=OFF \
26                  -DINSTALL_VERSIONED:BOOL=OFF \
27                 "
28
29 BOOST_LIBS = "\
30         date_time \
31         filesystem \
32         graph \
33         iostreams \
34         program_options \
35         python \
36         regex \
37         serialization \
38         signals \
39         system \
40         test \
41         thread \
42         "
43
44 # FIXME: for some reason this fails on powerpc
45 #BOOST_LIBS += "serialization"
46
47 # To enable python, uncomment the following:
48 #BOOST_LIBS += "python"
49 #DEPENDS += "python"
50 #PYTHON_ROOT = "${STAGING_DIR_HOST}/${layout_prefix}"
51 #PYTHON_VERSION = "2.5"
52
53 S = "${WORKDIR}/${BOOST_P}"
54
55 # Make a package for each library, plus -dev
56 PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
57 python __anonymous () {
58     import bb
59
60     packages = []
61     extras = []
62     for lib in bb.data.getVar('BOOST_LIBS', d, 1).split( ):
63             pkg = "boost-%s" % lib.replace("_", "-")
64             extras.append("--with-%s" % lib)
65             packages.append(pkg)
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)
69 }
70
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*"
76
77 # -dev last to pick up the remaining stuff
78 PACKAGES += "${PN}-dev"
79 FILES_${PN}-dev = "${includedir} ${libdir}/libboost_*.so ${libdir}/libboost_*.a"
80
81 # "boost" is a metapackage which pulls in all boost librabries
82 PACKAGES += "${PN}"
83 RRECOMMENDS_${PN} += "${BOOST_PACKAGES}"
84