Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [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 tslib sysfsutils" |
| 13 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 14 | SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.gz \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | file://configurefix.patch \ |
| 16 | file://fusion.patch \ |
| 17 | file://bashism.patch \ |
| 18 | file://0001-gfx-direct-Aboid-usng-VLAs-and-printf-formats.patch \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 19 | file://compar_fn_t.patch \ |
| 20 | file://union-sigval.patch \ |
| 21 | file://use-PTHREAD_MUTEX_RECURSIVE.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | " |
| 23 | |
| 24 | S = "${WORKDIR}/DirectFB-${PV}" |
| 25 | |
| 26 | LDFLAGS_append =" -lts -lm" |
| 27 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 28 | # Workaround for linking issues seen with armv7a + gold |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 29 | LDFLAGS_append_arm = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 30 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | BINCONFIG = "${bindir}/directfb-config" |
| 32 | |
| 33 | inherit autotools binconfig-disabled pkgconfig |
| 34 | |
| 35 | PACKAGECONFIG ??= "" |
| 36 | PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper" |
| 37 | PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" |
| 38 | PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" |
| 39 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" |
| 40 | |
| 41 | EXTRA_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. |
| 54 | TARGET_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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 65 | FILES_${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 | |
| 73 | FILES_${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 | " |