diff options
Diffstat (limited to 'recipes-graphics/directfb/directfb.inc')
-rw-r--r-- | recipes-graphics/directfb/directfb.inc | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/recipes-graphics/directfb/directfb.inc b/recipes-graphics/directfb/directfb.inc new file mode 100644 index 0000000000..d07d58c113 --- /dev/null +++ b/recipes-graphics/directfb/directfb.inc | |||
@@ -0,0 +1,71 @@ | |||
1 | DESCRIPTION = "DirectFB is a thin library that provides developers \ | ||
2 | with hardware graphics acceleration, input device handling and \ | ||
3 | abstraction, an integrated windowing system with support for \ | ||
4 | translucent windows and multiple display layers on top of the \ | ||
5 | Linux framebuffer device." | ||
6 | SECTION = "libs" | ||
7 | LICENSE = "LGPL" | ||
8 | HOMEPAGE = "http://directfb.org" | ||
9 | DEPENDS = "jpeg libpng freetype zlib tslib" | ||
10 | |||
11 | SRC_URI = " \ | ||
12 | http://www.directfb.org/downloads/Old/DirectFB-${PV}.tar.gz \ | ||
13 | file://fix-pkgconfig-cflags.patch \ | ||
14 | file://fix-font-missing-char.patch \ | ||
15 | file://getpagesize.patch \ | ||
16 | file://mkdfiff.patch \ | ||
17 | file://dont-use-linux-config.patch \ | ||
18 | file://ts_lib_autotools.patch \ | ||
19 | " | ||
20 | S = "${WORKDIR}/DirectFB-${PV}" | ||
21 | |||
22 | LDFLAGS_append =" -lts -lm" | ||
23 | |||
24 | inherit autotools binconfig pkgconfig | ||
25 | |||
26 | EXTRA_OECONF = "\ | ||
27 | --with-gfxdrivers=none \ | ||
28 | --enable-libmpeg3=no \ | ||
29 | --enable-freetype=yes \ | ||
30 | --enable-sdl=no \ | ||
31 | --enable-vnc=no \ | ||
32 | --disable-x11 \ | ||
33 | " | ||
34 | |||
35 | do_install() { | ||
36 | oe_runmake 'DESTDIR=${D}' install | ||
37 | } | ||
38 | |||
39 | |||
40 | #PACKAGES_DYNAMIC = "directfb-inputdrivers-*" | ||
41 | # | ||
42 | #python populate_packages_prepend () { | ||
43 | # import os.path | ||
44 | # inputdrivers_libdir = bb.data.expand('${libdir}/directfb-${RV}/inputdrivers', d) | ||
45 | # do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s') | ||
46 | #} | ||
47 | |||
48 | # NOTE: monolithic packaging for now, should improve that eventually | ||
49 | |||
50 | |||
51 | |||
52 | FILES_${PN}-dbg += "\ | ||
53 | ${libdir}/directfb-${RV}/*/*/.debug/*.so \ | ||
54 | ${libdir}/directfb-${RV}/*/.debug/*.so \ | ||
55 | " | ||
56 | |||
57 | FILES_${PN}-dev += "\ | ||
58 | ${bindir}/directfb-config \ | ||
59 | ${libdir}/directfb-${RV}/systems/*.la \ | ||
60 | ${libdir}/directfb-${RV}/inputdrivers/*.la \ | ||
61 | ${libdir}/directfb-${RV}/interfaces/*/*.la \ | ||
62 | ${libdir}/directfb-${RV}/wm/*.la \ | ||
63 | " | ||
64 | |||
65 | FILES_${PN} += "\ | ||
66 | ${libdir}/directfb-${RV}/systems/*.so \ | ||
67 | ${libdir}/directfb-${RV}/inputdrivers/*.so \ | ||
68 | ${libdir}/directfb-${RV}/interfaces/*/*.so \ | ||
69 | ${libdir}/directfb-${RV}/wm/*.so \ | ||
70 | ${datadir}/directfb-${PV} \ | ||
71 | " | ||