diff options
Diffstat (limited to 'meta/recipes-graphics/directfb/directfb.inc')
-rw-r--r-- | meta/recipes-graphics/directfb/directfb.inc | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta/recipes-graphics/directfb/directfb.inc b/meta/recipes-graphics/directfb/directfb.inc new file mode 100644 index 0000000000..669c0ffd9d --- /dev/null +++ b/meta/recipes-graphics/directfb/directfb.inc | |||
@@ -0,0 +1,76 @@ | |||
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" | ||
13 | |||
14 | SRC_URI = "http://www.directfb.org/downloads/Core/DirectFB-1.7/DirectFB-${PV}.tar.gz \ | ||
15 | file://configurefix.patch \ | ||
16 | file://fusion.patch" | ||
17 | |||
18 | S = "${WORKDIR}/DirectFB-${PV}" | ||
19 | |||
20 | LDFLAGS_append =" -lts -lm" | ||
21 | |||
22 | BINCONFIG = "${bindir}/directfb-config" | ||
23 | |||
24 | inherit autotools binconfig-disabled pkgconfig | ||
25 | |||
26 | PACKAGECONFIG ??= "" | ||
27 | PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper" | ||
28 | PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" | ||
29 | PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" | ||
30 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" | ||
31 | |||
32 | EXTRA_OECONF = "\ | ||
33 | --with-gfxdrivers=none \ | ||
34 | --enable-libmpeg3=no \ | ||
35 | --enable-freetype=yes \ | ||
36 | --enable-sdl=no \ | ||
37 | --enable-vnc=no \ | ||
38 | --disable-x11 \ | ||
39 | --disable-mesa \ | ||
40 | " | ||
41 | |||
42 | #Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default | ||
43 | #this will cause directfb build failure on x86 arch, so filter out it. | ||
44 | TARGET_CFLAGS_x86 := "${@oe_filter_out('-fno-omit-frame-pointer', '${TARGET_CFLAGS}', d)}" | ||
45 | |||
46 | #PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*" | ||
47 | # | ||
48 | #python populate_packages_prepend () { | ||
49 | # inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers') | ||
50 | # do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s') | ||
51 | #} | ||
52 | |||
53 | # NOTE: monolithic packaging for now, should improve that eventually | ||
54 | |||
55 | |||
56 | |||
57 | FILES_${PN}-dbg += "\ | ||
58 | ${libdir}/directfb-${RV}/*/*/.debug/*.so \ | ||
59 | ${libdir}/directfb-${RV}/*/.debug/*.so \ | ||
60 | " | ||
61 | |||
62 | FILES_${PN}-dev += "\ | ||
63 | ${bindir}/directfb-config \ | ||
64 | ${libdir}/directfb-${RV}/systems/*.la \ | ||
65 | ${libdir}/directfb-${RV}/inputdrivers/*.la \ | ||
66 | ${libdir}/directfb-${RV}/interfaces/*/*.la \ | ||
67 | ${libdir}/directfb-${RV}/wm/*.la \ | ||
68 | " | ||
69 | |||
70 | FILES_${PN} += "\ | ||
71 | ${libdir}/directfb-${RV}/systems/*.so \ | ||
72 | ${libdir}/directfb-${RV}/inputdrivers/*.so \ | ||
73 | ${libdir}/directfb-${RV}/interfaces/*/*.so \ | ||
74 | ${libdir}/directfb-${RV}/wm/*.so \ | ||
75 | ${datadir}/directfb-${PV} \ | ||
76 | " | ||