blob: ec9e04bed627cffb47fa2ade80997097875e890f [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001require ${BPN}.inc
2
Brad Bishopd7bf8c12018-02-25 22:55:05 -05003DEPENDS = "alsa-lib zlib jpeg libpng libxext libxft"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05004
Brad Bishop316dfdd2018-06-25 12:45:53 -04005inherit distro_features_check binconfig lib_package gtk-icon-cache mime
6REQUIRED_DISTRO_FEATURES = "x11"
7
8SRC_URI += "file://0003-CMake-build-Force-shared-libs-with-unsuffixed-names.patch"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009
10EXTRA_OECMAKE = " \
11 -DOPTION_BUILD_SHARED_LIBS=ON \
12 -DOPTION_USE_THREADS=ON \
13 -DOPTION_USE_XDBE=ON \
14 -DOPTION_USE_XFT=ON \
15 -DFLTK_CONFIG_PATH=${libdir}/cmake \
16"
17
18PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
19
20PACKAGECONFIG[examples] = "-DOPTION_BUILD_EXAMPLES=ON,-DOPTION_BUILD_EXAMPLES=OFF,"
Brad Bishop316dfdd2018-06-25 12:45:53 -040021PACKAGECONFIG[cairo] = "-DOPTION_CAIRO=ON,-DOPTION_CAIRO=OFF,cairo"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022PACKAGECONFIG[opengl] = "-DOPTION_USE_GL=ON,-DOPTION_USE_GL=OFF,virtual/libgl"
23PACKAGECONFIG[xinerama] = "-DOPTION_USE_XINERAMA=ON,-DOPTION_USE_XINERAMA=OFF,libxinerama"
24PACKAGECONFIG[xfixes] = "-DOPTION_USE_XFIXES=ON,-DOPTION_USE_XFIXES=OFF,libxfixes"
25PACKAGECONFIG[xcursor] = "-DOPTION_USE_XCURSOR=ON,-DOPTION_USE_XCURSOR=OFF,libxcursor"
26
27do_install_append() {
28 sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/fltk-config
29}
30
31python populate_packages_prepend () {
32 if (d.getVar('DEBIAN_NAMES')):
33 d.setVar('PKG_${BPN}', 'libfltk${PV}')
34}
35
36LEAD_SONAME = "libfltk.so"
37
Brad Bishop316dfdd2018-06-25 12:45:53 -040038# .desktop / icons / mime only necessary for fluid app
39FILES_${PN}-bin += " \
40 ${datadir}/applications \
41 ${datadir}/icons \
42 ${datadir}/mime \
43"
44
45# cmake files
46FILES_${PN}-dev += "${datadir}/fltk"