diff options
author | Maxin B. John <maxin.john@intel.com> | 2016-07-04 16:45:53 +0300 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-07-29 11:00:53 +0200 |
commit | 273be2ecc2dd4402dd44a8d377892ab2e83f60b3 (patch) | |
tree | dea88947ba13ccd050462fdb697f237cd7e7a52b /meta-oe/recipes-graphics/directfb/directfb.inc | |
parent | 37e1dd154b8516966fee5d01b689d2abf5fe0679 (diff) | |
download | meta-openembedded-273be2ecc2dd4402dd44a8d377892ab2e83f60b3.tar.gz |
directfb: move recipe to meta-oe
directfb.org has been down for about a year now. Since there
are active users for this recipe, it makes sense to move this
from oe-core to meta-oe.
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'meta-oe/recipes-graphics/directfb/directfb.inc')
-rw-r--r-- | meta-oe/recipes-graphics/directfb/directfb.inc | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/directfb/directfb.inc b/meta-oe/recipes-graphics/directfb/directfb.inc new file mode 100644 index 000000000..46e0838f7 --- /dev/null +++ b/meta-oe/recipes-graphics/directfb/directfb.inc | |||
@@ -0,0 +1,80 @@ | |||
1 | SUMMARY = "Graphics abstraction library for the Linux Framebuffer Device" | ||
2 | DESCRIPTION = "DirectFB is a thin library that provides developers \ | ||
3 | with hardware graphics acceleration, input device handling and \ | ||
4 | abstraction, an integrated windowing system with support for \ | ||
5 | translucent windows and multiple display layers on top of the \ | ||
6 | Linux framebuffer device." | ||
7 | SECTION = "libs" | ||
8 | LICENSE = "LGPLv2.1" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" | ||
10 | |||
11 | HOMEPAGE = "http://directfb.org" | ||
12 | DEPENDS = "jpeg libpng freetype zlib tslib sysfsutils" | ||
13 | |||
14 | SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.gz \ | ||
15 | file://configurefix.patch \ | ||
16 | file://fusion.patch \ | ||
17 | file://bashism.patch \ | ||
18 | file://0001-gfx-direct-Aboid-usng-VLAs-and-printf-formats.patch \ | ||
19 | file://compar_fn_t.patch \ | ||
20 | file://union-sigval.patch \ | ||
21 | file://use-PTHREAD_MUTEX_RECURSIVE.patch \ | ||
22 | file://fix-client-gfx_state-initialisation.patch \ | ||
23 | " | ||
24 | |||
25 | S = "${WORKDIR}/DirectFB-${PV}" | ||
26 | |||
27 | LDFLAGS_append =" -lts -lm" | ||
28 | |||
29 | # Workaround for linking issues seen with armv7a + gold | ||
30 | LDFLAGS_append_arm = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
31 | |||
32 | BINCONFIG = "${bindir}/directfb-config" | ||
33 | |||
34 | inherit autotools binconfig-disabled pkgconfig | ||
35 | |||
36 | PACKAGECONFIG ??= "" | ||
37 | PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper" | ||
38 | PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" | ||
39 | PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" | ||
40 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" | ||
41 | |||
42 | EXTRA_OECONF = "\ | ||
43 | --with-gfxdrivers=none \ | ||
44 | --enable-freetype=yes \ | ||
45 | --enable-zlib \ | ||
46 | --disable-imlib2 \ | ||
47 | --disable-mesa \ | ||
48 | --disable-sdl \ | ||
49 | --disable-vnc \ | ||
50 | --disable-x11 \ | ||
51 | " | ||
52 | |||
53 | #Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default | ||
54 | #this will cause directfb build failure on x86 arch, so filter out it. | ||
55 | TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer" | ||
56 | |||
57 | #PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*" | ||
58 | # | ||
59 | #python populate_packages_prepend () { | ||
60 | # inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers') | ||
61 | # do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s') | ||
62 | #} | ||
63 | |||
64 | # NOTE: monolithic packaging for now, should improve that eventually | ||
65 | |||
66 | FILES_${PN}-dev += "\ | ||
67 | ${bindir}/directfb-config \ | ||
68 | ${libdir}/directfb-${RV}/systems/*.la \ | ||
69 | ${libdir}/directfb-${RV}/inputdrivers/*.la \ | ||
70 | ${libdir}/directfb-${RV}/interfaces/*/*.la \ | ||
71 | ${libdir}/directfb-${RV}/wm/*.la \ | ||
72 | " | ||
73 | |||
74 | FILES_${PN} += "\ | ||
75 | ${libdir}/directfb-${RV}/systems/*.so \ | ||
76 | ${libdir}/directfb-${RV}/inputdrivers/*.so \ | ||
77 | ${libdir}/directfb-${RV}/interfaces/*/*.so \ | ||
78 | ${libdir}/directfb-${RV}/wm/*.so \ | ||
79 | ${datadir}/directfb-${PV} \ | ||
80 | " | ||