blob: 446aaeadb423a9838fce68ccf32699c2c483b5a3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Graphics abstraction library for the Linux Framebuffer Device"
2DESCRIPTION = "DirectFB is a thin library that provides developers \
3with hardware graphics acceleration, input device handling and \
4abstraction, an integrated windowing system with support for \
5translucent windows and multiple display layers on top of the \
6Linux framebuffer device."
7SECTION = "libs"
8LICENSE = "LGPLv2.1"
9LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589"
10
11HOMEPAGE = "http://directfb.org"
12DEPENDS = "jpeg libpng freetype zlib tslib sysfsutils"
13
14SRC_URI = "http://www.directfb.org/downloads/Core/DirectFB-1.7/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 "
20
21S = "${WORKDIR}/DirectFB-${PV}"
22
23LDFLAGS_append =" -lts -lm"
24
25BINCONFIG = "${bindir}/directfb-config"
26
27inherit autotools binconfig-disabled pkgconfig
28
29PACKAGECONFIG ??= ""
30PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
31PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
32PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
33PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
34
35EXTRA_OECONF = "\
36 --with-gfxdrivers=none \
37 --enable-freetype=yes \
38 --enable-zlib \
39 --disable-imlib2 \
40 --disable-mesa \
41 --disable-sdl \
42 --disable-vnc \
43 --disable-x11 \
44"
45
46#Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default
47#this will cause directfb build failure on x86 arch, so filter out it.
48TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer"
49
50#PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*"
51#
52#python populate_packages_prepend () {
53# inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers')
54# do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s')
55#}
56
57# NOTE: monolithic packaging for now, should improve that eventually
58
59
60
61FILES_${PN}-dbg += "\
62 ${libdir}/directfb-${RV}/*/*/.debug/*.so \
63 ${libdir}/directfb-${RV}/*/.debug/*.so \
64"
65
66FILES_${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
74FILES_${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"