Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | require ${BPN}.inc |
| 2 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 3 | DEPENDS = "alsa-lib zlib jpeg libpng libxext libxft" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 4 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 5 | inherit distro_features_check binconfig lib_package gtk-icon-cache mime |
| 6 | REQUIRED_DISTRO_FEATURES = "x11" |
| 7 | |
| 8 | SRC_URI += "file://0003-CMake-build-Force-shared-libs-with-unsuffixed-names.patch" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | |
| 10 | EXTRA_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 | |
| 18 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" |
| 19 | |
| 20 | PACKAGECONFIG[examples] = "-DOPTION_BUILD_EXAMPLES=ON,-DOPTION_BUILD_EXAMPLES=OFF," |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 21 | PACKAGECONFIG[cairo] = "-DOPTION_CAIRO=ON,-DOPTION_CAIRO=OFF,cairo" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 22 | PACKAGECONFIG[opengl] = "-DOPTION_USE_GL=ON,-DOPTION_USE_GL=OFF,virtual/libgl" |
| 23 | PACKAGECONFIG[xinerama] = "-DOPTION_USE_XINERAMA=ON,-DOPTION_USE_XINERAMA=OFF,libxinerama" |
| 24 | PACKAGECONFIG[xfixes] = "-DOPTION_USE_XFIXES=ON,-DOPTION_USE_XFIXES=OFF,libxfixes" |
| 25 | PACKAGECONFIG[xcursor] = "-DOPTION_USE_XCURSOR=ON,-DOPTION_USE_XCURSOR=OFF,libxcursor" |
| 26 | |
| 27 | do_install_append() { |
| 28 | sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/fltk-config |
| 29 | } |
| 30 | |
| 31 | python populate_packages_prepend () { |
| 32 | if (d.getVar('DEBIAN_NAMES')): |
| 33 | d.setVar('PKG_${BPN}', 'libfltk${PV}') |
| 34 | } |
| 35 | |
| 36 | LEAD_SONAME = "libfltk.so" |
| 37 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 38 | # .desktop / icons / mime only necessary for fluid app |
| 39 | FILES_${PN}-bin += " \ |
| 40 | ${datadir}/applications \ |
| 41 | ${datadir}/icons \ |
| 42 | ${datadir}/mime \ |
| 43 | " |
| 44 | |
| 45 | # cmake files |
| 46 | FILES_${PN}-dev += "${datadir}/fltk" |