blob: 51b4a0bc8543f60c437057149a6301e3683bb090 [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
Andrew Geissler82c905d2020-04-13 13:39:40 -05005inherit features_check binconfig lib_package gtk-icon-cache mime mime-xdg
Brad Bishop316dfdd2018-06-25 12:45:53 -04006REQUIRED_DISTRO_FEATURES = "x11"
7
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008EXTRA_OECMAKE = " \
9 -DOPTION_BUILD_SHARED_LIBS=ON \
10 -DOPTION_USE_THREADS=ON \
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070011 -DFLTK_BUILD_TEST=OFF \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012 -DOPTION_USE_XDBE=ON \
13 -DOPTION_USE_XFT=ON \
14 -DFLTK_CONFIG_PATH=${libdir}/cmake \
15"
16
17PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
18
Brad Bishop316dfdd2018-06-25 12:45:53 -040019PACKAGECONFIG[cairo] = "-DOPTION_CAIRO=ON,-DOPTION_CAIRO=OFF,cairo"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020PACKAGECONFIG[opengl] = "-DOPTION_USE_GL=ON,-DOPTION_USE_GL=OFF,virtual/libgl"
21PACKAGECONFIG[xinerama] = "-DOPTION_USE_XINERAMA=ON,-DOPTION_USE_XINERAMA=OFF,libxinerama"
22PACKAGECONFIG[xfixes] = "-DOPTION_USE_XFIXES=ON,-DOPTION_USE_XFIXES=OFF,libxfixes"
23PACKAGECONFIG[xcursor] = "-DOPTION_USE_XCURSOR=ON,-DOPTION_USE_XCURSOR=OFF,libxcursor"
24
25do_install_append() {
26 sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/fltk-config
27}
28
29python populate_packages_prepend () {
30 if (d.getVar('DEBIAN_NAMES')):
31 d.setVar('PKG_${BPN}', 'libfltk${PV}')
32}
33
34LEAD_SONAME = "libfltk.so"
35
Brad Bishop316dfdd2018-06-25 12:45:53 -040036# .desktop / icons / mime only necessary for fluid app
37FILES_${PN}-bin += " \
38 ${datadir}/applications \
39 ${datadir}/icons \
40 ${datadir}/mime \
41"
42
43# cmake files
44FILES_${PN}-dev += "${datadir}/fltk"