blob: f7dc668433fa7e33935a129d919a759fa8ac2fbb [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 \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023 file://fix-tslib-version-check.patch \
Brad Bishope42b3e32020-01-15 22:08:42 -050024 file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \
25 "
Patrick Williamsddad1a12017-02-23 20:36:32 -060026
27S = "${WORKDIR}/DirectFB-${PV}"
28
29LDFLAGS_append = " -lm"
30
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050031CXXFLAGS_append_toolchain-clang = " -Wno-error=dtor-typedef"
32
Patrick Williamsddad1a12017-02-23 20:36:32 -060033# Workaround for linking issues seen with armv7a + gold
34LDFLAGS_append_arm = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
35
36BINCONFIG = "${bindir}/directfb-config"
37
38inherit autotools binconfig-disabled pkgconfig
39
40PACKAGECONFIG ??= "linuxinput"
41PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
42PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
43PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
44PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
45PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib"
46PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,,"
47PACKAGECONFIG[noinput] = "--with-inputdrivers=none,,"
Brad Bishop316dfdd2018-06-25 12:45:53 -040048PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa,"
49PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg,"
Patrick Williamsddad1a12017-02-23 20:36:32 -060050
51EXTRA_OECONF = "\
52 --with-gfxdrivers=none \
53 --enable-freetype=yes \
54 --enable-zlib \
55 --disable-imlib2 \
Patrick Williamsddad1a12017-02-23 20:36:32 -060056 --disable-sdl \
57 --disable-vnc \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050058 --disable-x11vdpau \
59 --disable-xine-vdpau \
Patrick Williamsddad1a12017-02-23 20:36:32 -060060"
61
62#Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default
63#this will cause directfb build failure on x86 arch, so filter out it.
64TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer"
65
66#PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*"
67#
68#python populate_packages_prepend () {
69# inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers')
70# do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s')
71#}
72
73# NOTE: monolithic packaging for now, should improve that eventually
74
75FILES_${PN}-dev += "\
76 ${bindir}/directfb-config \
77 ${libdir}/directfb-${RV}/systems/*.la \
78 ${libdir}/directfb-${RV}/inputdrivers/*.la \
79 ${libdir}/directfb-${RV}/interfaces/*/*.la \
80 ${libdir}/directfb-${RV}/wm/*.la \
81"
82
83FILES_${PN} += "\
84 ${libdir}/directfb-${RV}/systems/*.so \
85 ${libdir}/directfb-${RV}/inputdrivers/*.so \
86 ${libdir}/directfb-${RV}/interfaces/*/*.so \
87 ${libdir}/directfb-${RV}/wm/*.so \
88 ${datadir}/directfb-${PV} \
89"