blob: f6b7cbe1add21cfe2d7a593dcf01c5e2753bbfa3 [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
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.gz \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015 file://configurefix.patch \
16 file://fusion.patch \
17 file://bashism.patch \
18 file://0001-gfx-direct-Aboid-usng-VLAs-and-printf-formats.patch \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019 file://compar_fn_t.patch \
20 file://union-sigval.patch \
21 file://use-PTHREAD_MUTEX_RECURSIVE.patch \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022 "
23
24S = "${WORKDIR}/DirectFB-${PV}"
25
26LDFLAGS_append =" -lts -lm"
27
Patrick Williamsf1e5d692016-03-30 15:21:19 -050028# Workaround for linking issues seen with armv7a + gold
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029LDFLAGS_append_arm = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
Patrick Williamsf1e5d692016-03-30 15:21:19 -050030
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031BINCONFIG = "${bindir}/directfb-config"
32
33inherit autotools binconfig-disabled pkgconfig
34
35PACKAGECONFIG ??= ""
36PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
37PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
38PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
39PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
40
41EXTRA_OECONF = "\
42 --with-gfxdrivers=none \
43 --enable-freetype=yes \
44 --enable-zlib \
45 --disable-imlib2 \
46 --disable-mesa \
47 --disable-sdl \
48 --disable-vnc \
49 --disable-x11 \
50"
51
52#Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default
53#this will cause directfb build failure on x86 arch, so filter out it.
54TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer"
55
56#PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*"
57#
58#python populate_packages_prepend () {
59# inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers')
60# do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s')
61#}
62
63# NOTE: monolithic packaging for now, should improve that eventually
64
Patrick Williamsc124f4f2015-09-15 14:41:29 -050065FILES_${PN}-dev += "\
66 ${bindir}/directfb-config \
67 ${libdir}/directfb-${RV}/systems/*.la \
68 ${libdir}/directfb-${RV}/inputdrivers/*.la \
69 ${libdir}/directfb-${RV}/interfaces/*/*.la \
70 ${libdir}/directfb-${RV}/wm/*.la \
71"
72
73FILES_${PN} += "\
74 ${libdir}/directfb-${RV}/systems/*.so \
75 ${libdir}/directfb-${RV}/inputdrivers/*.so \
76 ${libdir}/directfb-${RV}/interfaces/*/*.so \
77 ${libdir}/directfb-${RV}/wm/*.so \
78 ${datadir}/directfb-${PV} \
79"