1SUMMARY = "C++ bindings for the glib library"
2HOMEPAGE = "http://www.gtkmm.org/"
3SECTION = "libs"
4LICENSE = "LGPL-2.1-only & GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=42dfffebc56fec7527aac53b7a89d1d8 \
6                    file://COPYING.tools;md5=751419260aa954499f7abaabaa882bbe"
7
8DEPENDS = "mm-common glib-2.0 libsigc++-3 glib-2.0-native"
9
10GNOMEBN = "glibmm"
11inherit gnomebase
12
13SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
14
15SRC_URI[archive.sha256sum] = "539b0a29e15a96676c4f0594541250566c5ca44da5d4d87a3732fa2d07909e4a"
16
17S = "${WORKDIR}/${GNOMEBN}-${PV}"
18
19FILES:${PN} = "${libdir}/lib*.so.*"
20FILES:${PN}-dev += "${datadir}/glibmm-* ${libdir}/${BPN}/include/ ${libdir}/${BPN}/proc/ ${libdir}/giomm-2.68/include/"
21
22RDEPENDS:${PN}-dev = "perl"
23
24EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross -Dmaintainer-mode=false"
25
26do_write_config:append() {
27    cat >${WORKDIR}/meson-${PN}.cross <<EOF
28[binaries]
29m4 = '${bindir}/m4'
30perl = '${bindir}/perl'
31EOF
32}
33