Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | SUMMARY = "Graphics abstraction library for the Linux Framebuffer Device" |
| 2 | DESCRIPTION = "DirectFB is a thin library that provides developers \ |
| 3 | with hardware graphics acceleration, input device handling and \ |
| 4 | abstraction, an integrated windowing system with support for \ |
| 5 | translucent windows and multiple display layers on top of the \ |
| 6 | Linux framebuffer device." |
| 7 | SECTION = "libs" |
| 8 | LICENSE = "LGPLv2.1" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" |
| 10 | |
| 11 | HOMEPAGE = "http://directfb.org" |
| 12 | DEPENDS = "jpeg libpng freetype zlib sysfsutils" |
| 13 | |
| 14 | SRC_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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | file://fix-tslib-version-check.patch \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 24 | file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ |
| 25 | " |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 26 | |
| 27 | S = "${WORKDIR}/DirectFB-${PV}" |
| 28 | |
| 29 | LDFLAGS_append = " -lm" |
| 30 | |
| 31 | # Workaround for linking issues seen with armv7a + gold |
| 32 | LDFLAGS_append_arm = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
| 33 | |
| 34 | BINCONFIG = "${bindir}/directfb-config" |
| 35 | |
| 36 | inherit autotools binconfig-disabled pkgconfig |
| 37 | |
| 38 | PACKAGECONFIG ??= "linuxinput" |
| 39 | PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper" |
| 40 | PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" |
| 41 | PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" |
| 42 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" |
| 43 | PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib" |
| 44 | PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,," |
| 45 | PACKAGECONFIG[noinput] = "--with-inputdrivers=none,," |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 46 | PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa," |
| 47 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg," |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 48 | |
| 49 | EXTRA_OECONF = "\ |
| 50 | --with-gfxdrivers=none \ |
| 51 | --enable-freetype=yes \ |
| 52 | --enable-zlib \ |
| 53 | --disable-imlib2 \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 54 | --disable-sdl \ |
| 55 | --disable-vnc \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 56 | --disable-x11vdpau \ |
| 57 | --disable-xine-vdpau \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 58 | " |
| 59 | |
| 60 | #Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default |
| 61 | #this will cause directfb build failure on x86 arch, so filter out it. |
| 62 | TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer" |
| 63 | |
| 64 | #PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*" |
| 65 | # |
| 66 | #python populate_packages_prepend () { |
| 67 | # inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers') |
| 68 | # do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s') |
| 69 | #} |
| 70 | |
| 71 | # NOTE: monolithic packaging for now, should improve that eventually |
| 72 | |
| 73 | FILES_${PN}-dev += "\ |
| 74 | ${bindir}/directfb-config \ |
| 75 | ${libdir}/directfb-${RV}/systems/*.la \ |
| 76 | ${libdir}/directfb-${RV}/inputdrivers/*.la \ |
| 77 | ${libdir}/directfb-${RV}/interfaces/*/*.la \ |
| 78 | ${libdir}/directfb-${RV}/wm/*.la \ |
| 79 | " |
| 80 | |
| 81 | FILES_${PN} += "\ |
| 82 | ${libdir}/directfb-${RV}/systems/*.so \ |
| 83 | ${libdir}/directfb-${RV}/inputdrivers/*.so \ |
| 84 | ${libdir}/directfb-${RV}/interfaces/*/*.so \ |
| 85 | ${libdir}/directfb-${RV}/wm/*.so \ |
| 86 | ${datadir}/directfb-${PV} \ |
| 87 | " |