1af76d3e5d6203e8ca84c62c44bf55d0cb19b067
[vuplus_openembedded] / recipes / directfb / directfb.inc
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;patch=1 \
14     file://fix-font-missing-char.patch;patch=1 \
15     file://getpagesize.patch;patch=1 \
16     file://mkdfiff.patch;patch=1 \
17     file://dont-use-linux-config.patch;patch=1 \
18     file://ts_lib_autotools.patch;patch=1 \
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_stage() {
36         autotools_stage_all
37 }
38
39 do_install() {
40         oe_runmake 'DESTDIR=${D}' install
41         install -d ${D}${sysconfdir}
42         install -m 755 ${WORKDIR}/directfbrc ${D}${sysconfdir}
43 }
44
45
46 #PACKAGES_DYNAMIC = "directfb-inputdrivers-*"
47 #
48 #python populate_packages_prepend () {
49 #    import os.path
50 #    inputdrivers_libdir = bb.data.expand('${libdir}/directfb-${RV}/inputdrivers', d)
51 #    do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s')
52 #}
53
54 # NOTE: monolithic packaging for now, should improve that eventually
55
56
57
58 FILES_${PN}-dbg += "\
59   ${libdir}/directfb-${RV}/*/*/.debug/*.so \
60   ${libdir}/directfb-${RV}/*/.debug/*.so \
61 "
62
63 FILES_${PN}-dev += "\
64   ${bindir}/directfb-config \
65   ${libdir}/directfb-${RV}/systems/*.la \
66   ${libdir}/directfb-${RV}/inputdrivers/*.la \
67   ${libdir}/directfb-${RV}/interfaces/*/*.la \
68   ${libdir}/directfb-${RV}/wm/*.la \
69 "
70
71 FILES_${PN} += "\
72   ${libdir}/directfb-${RV}/systems/*.so \
73   ${libdir}/directfb-${RV}/inputdrivers/*.so \
74   ${libdir}/directfb-${RV}/interfaces/*/*.so \
75   ${libdir}/directfb-${RV}/wm/*.so \
76   ${datadir}/directfb-${PV} \
77 "