blob: fc272bd2855ff008272e5badeaea6b02560984c4 [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001SUMMARY = "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 sysfsutils"
13
14SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/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 file://compar_fn_t.patch \
20 file://union-sigval.patch \
21 file://use-PTHREAD_MUTEX_RECURSIVE.patch \
22 file://fix-client-gfx_state-initialisation.patch \
23 "
24
25S = "${WORKDIR}/DirectFB-${PV}"
26
27LDFLAGS_append = " -lm"
28
29# Workaround for linking issues seen with armv7a + gold
30LDFLAGS_append_arm = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
31
32BINCONFIG = "${bindir}/directfb-config"
33
34inherit autotools binconfig-disabled pkgconfig
35
36PACKAGECONFIG ??= "linuxinput"
37PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
38PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
39PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
40PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
41PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib"
42PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,,"
43PACKAGECONFIG[noinput] = "--with-inputdrivers=none,,"
44
45EXTRA_OECONF = "\
46 --with-gfxdrivers=none \
47 --enable-freetype=yes \
48 --enable-zlib \
49 --disable-imlib2 \
50 --disable-mesa \
51 --disable-sdl \
52 --disable-vnc \
53 --disable-x11 \
54"
55
56#Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default
57#this will cause directfb build failure on x86 arch, so filter out it.
58TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer"
59
60#PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*"
61#
62#python populate_packages_prepend () {
63# inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers')
64# do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s')
65#}
66
67# NOTE: monolithic packaging for now, should improve that eventually
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"