diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2017-02-28 02:09:42 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-04-18 14:21:42 +0200 |
commit | 2c78fa9134074c8bdb3e34c7ad41e2832354bb8c (patch) | |
tree | e09de165819e088840cb6cc2ae2c8b682d68ed97 /meta-oe/recipes-support/fltk/fltk.bb | |
parent | b6e7cc35d4a6becbbf3bef4afed70a5660992d1f (diff) | |
download | meta-openembedded-2c78fa9134074c8bdb3e34c7ad41e2832354bb8c.tar.gz |
fltk: rework completely
* Use cmake as build system. Projects also using cmake and depending on fltk
would not find all required components. Note that FindFLTK.cmake is part of
cmake.
* Add a native recipe and split out common - we need fluid (Fast Light User
Interface Designer) as working binary
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'meta-oe/recipes-support/fltk/fltk.bb')
-rw-r--r-- | meta-oe/recipes-support/fltk/fltk.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/fltk/fltk.bb b/meta-oe/recipes-support/fltk/fltk.bb new file mode 100644 index 000000000..542fd661e --- /dev/null +++ b/meta-oe/recipes-support/fltk/fltk.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | require ${BPN}.inc | ||
2 | |||
3 | DEPENDS = "alsa-lib zlib jpeg libpng libxext libxft ${BPN}-native" | ||
4 | |||
5 | inherit binconfig lib_package gtk-icon-cache mime | ||
6 | |||
7 | EXTRA_OECMAKE = " \ | ||
8 | -DOPTION_BUILD_SHARED_LIBS=ON \ | ||
9 | -DOPTION_USE_THREADS=ON \ | ||
10 | -DOPTION_USE_XDBE=ON \ | ||
11 | -DOPTION_USE_XFT=ON \ | ||
12 | -DFLTK_CONFIG_PATH=${libdir}/cmake \ | ||
13 | " | ||
14 | |||
15 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" | ||
16 | |||
17 | PACKAGECONFIG[examples] = "-DOPTION_BUILD_EXAMPLES=ON,-DOPTION_BUILD_EXAMPLES=OFF," | ||
18 | PACKAGECONFIG[opengl] = "-DOPTION_USE_GL=ON,-DOPTION_USE_GL=OFF,virtual/libgl" | ||
19 | PACKAGECONFIG[xinerama] = "-DOPTION_USE_XINERAMA=ON,-DOPTION_USE_XINERAMA=OFF,libxinerama" | ||
20 | PACKAGECONFIG[xfixes] = "-DOPTION_USE_XFIXES=ON,-DOPTION_USE_XFIXES=OFF,libxfixes" | ||
21 | PACKAGECONFIG[xcursor] = "-DOPTION_USE_XCURSOR=ON,-DOPTION_USE_XCURSOR=OFF,libxcursor" | ||
22 | |||
23 | do_install_append() { | ||
24 | sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/fltk-config | ||
25 | } | ||
26 | |||
27 | python populate_packages_prepend () { | ||
28 | if (d.getVar('DEBIAN_NAMES')): | ||
29 | d.setVar('PKG_${BPN}', 'libfltk${PV}') | ||
30 | } | ||
31 | |||
32 | LEAD_SONAME = "libfltk.so" | ||
33 | |||
34 | FILES_${PN} += "${datadir}/mime" | ||