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 | |
| 14 | SRC_URI = "http://www.directfb.org/downloads/Core/DirectFB-1.7/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 | " |
| 20 | |
| 21 | S = "${WORKDIR}/DirectFB-${PV}" |
| 22 | |
| 23 | LDFLAGS_append =" -lts -lm" |
| 24 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame^] | 25 | # Workaround for linking issues seen with armv7a + gold |
| 26 | LDFLAGS_append_armv7a = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
| 27 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | BINCONFIG = "${bindir}/directfb-config" |
| 29 | |
| 30 | inherit autotools binconfig-disabled pkgconfig |
| 31 | |
| 32 | PACKAGECONFIG ??= "" |
| 33 | PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper" |
| 34 | PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" |
| 35 | PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" |
| 36 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" |
| 37 | |
| 38 | EXTRA_OECONF = "\ |
| 39 | --with-gfxdrivers=none \ |
| 40 | --enable-freetype=yes \ |
| 41 | --enable-zlib \ |
| 42 | --disable-imlib2 \ |
| 43 | --disable-mesa \ |
| 44 | --disable-sdl \ |
| 45 | --disable-vnc \ |
| 46 | --disable-x11 \ |
| 47 | " |
| 48 | |
| 49 | #Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default |
| 50 | #this will cause directfb build failure on x86 arch, so filter out it. |
| 51 | TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer" |
| 52 | |
| 53 | #PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*" |
| 54 | # |
| 55 | #python populate_packages_prepend () { |
| 56 | # inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers') |
| 57 | # do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s') |
| 58 | #} |
| 59 | |
| 60 | # NOTE: monolithic packaging for now, should improve that eventually |
| 61 | |
| 62 | |
| 63 | |
| 64 | FILES_${PN}-dbg += "\ |
| 65 | ${libdir}/directfb-${RV}/*/*/.debug/*.so \ |
| 66 | ${libdir}/directfb-${RV}/*/.debug/*.so \ |
| 67 | " |
| 68 | |
| 69 | FILES_${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 | |
| 77 | FILES_${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 | " |