blob: cbd401483246ec5555e01948fc78d2bf2839c18e [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
Patrick Williamsf1e5d692016-03-30 15:21:19 -050025# Workaround for linking issues seen with armv7a + gold
26LDFLAGS_append_armv7a = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
27
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028BINCONFIG = "${bindir}/directfb-config"
29
30inherit autotools binconfig-disabled pkgconfig
31
32PACKAGECONFIG ??= ""
33PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
34PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
35PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
36PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
37
38EXTRA_OECONF = "\
39 --with-gfxdrivers=none \
40 --enable-freetype=yes \
41 --enable-zlib \
42 --disable-imlib2 \
43 --disable-mesa \
44 --disable-sdl \
45 --disable-vnc \
46 --disable-x11 \
47"
48
49#Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default
50#this will cause directfb build failure on x86 arch, so filter out it.
51TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer"
52
53#PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*"
54#
55#python populate_packages_prepend () {
56# inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers')
57# do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s')
58#}
59
60# NOTE: monolithic packaging for now, should improve that eventually
61
62
63
64FILES_${PN}-dbg += "\
65 ${libdir}/directfb-${RV}/*/*/.debug/*.so \
66 ${libdir}/directfb-${RV}/*/.debug/*.so \
67"
68
69FILES_${PN}-dev += "\
70 ${bindir}/directfb-config \
71 ${libdir}/directfb-${RV}/systems/*.la \
72 ${libdir}/directfb-${RV}/inputdrivers/*.la \
73 ${libdir}/directfb-${RV}/interfaces/*/*.la \
74 ${libdir}/directfb-${RV}/wm/*.la \
75"
76
77FILES_${PN} += "\
78 ${libdir}/directfb-${RV}/systems/*.so \
79 ${libdir}/directfb-${RV}/inputdrivers/*.so \
80 ${libdir}/directfb-${RV}/interfaces/*/*.so \
81 ${libdir}/directfb-${RV}/wm/*.so \
82 ${datadir}/directfb-${PV} \
83"