diff options
| -rw-r--r-- | recipes-graphics/directfb/directfb.inc | 79 | ||||
| -rw-r--r-- | recipes-graphics/directfb/directfb_1.7.4.bb | 2 |
2 files changed, 80 insertions, 1 deletions
diff --git a/recipes-graphics/directfb/directfb.inc b/recipes-graphics/directfb/directfb.inc new file mode 100644 index 000000000..9e9094227 --- /dev/null +++ b/recipes-graphics/directfb/directfb.inc | |||
| @@ -0,0 +1,79 @@ | |||
| 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 | " | ||
| 19 | |||
| 20 | S = "${WORKDIR}/DirectFB-${PV}" | ||
| 21 | |||
| 22 | LDFLAGS_append =" -lts -lm" | ||
| 23 | |||
| 24 | BINCONFIG = "${bindir}/directfb-config" | ||
| 25 | |||
| 26 | inherit autotools binconfig-disabled pkgconfig | ||
| 27 | |||
| 28 | PACKAGECONFIG ??= "" | ||
| 29 | PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper" | ||
| 30 | PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" | ||
| 31 | PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" | ||
| 32 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" | ||
| 33 | |||
| 34 | EXTRA_OECONF = "\ | ||
| 35 | --with-gfxdrivers=none \ | ||
| 36 | --enable-freetype=yes \ | ||
| 37 | --enable-zlib \ | ||
| 38 | --disable-imlib2 \ | ||
| 39 | --disable-mesa \ | ||
| 40 | --disable-sdl \ | ||
| 41 | --disable-vnc \ | ||
| 42 | --disable-x11 \ | ||
| 43 | " | ||
| 44 | |||
| 45 | #Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default | ||
| 46 | #this will cause directfb build failure on x86 arch, so filter out it. | ||
| 47 | TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer" | ||
| 48 | |||
| 49 | #PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*" | ||
| 50 | # | ||
| 51 | #python populate_packages_prepend () { | ||
| 52 | # inputdrivers_libdir = d.expand('${libdir}/directfb-${RV}/inputdrivers') | ||
| 53 | # do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s') | ||
| 54 | #} | ||
| 55 | |||
| 56 | # NOTE: monolithic packaging for now, should improve that eventually | ||
| 57 | |||
| 58 | |||
| 59 | |||
| 60 | FILES_${PN}-dbg += "\ | ||
| 61 | ${libdir}/directfb-${RV}/*/*/.debug/*.so \ | ||
| 62 | ${libdir}/directfb-${RV}/*/.debug/*.so \ | ||
| 63 | " | ||
| 64 | |||
| 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 | " | ||
diff --git a/recipes-graphics/directfb/directfb_1.7.4.bb b/recipes-graphics/directfb/directfb_1.7.4.bb index 561b12473..8586f0c37 100644 --- a/recipes-graphics/directfb/directfb_1.7.4.bb +++ b/recipes-graphics/directfb/directfb_1.7.4.bb | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | require recipes-graphics/directfb/directfb.inc | 1 | require directfb.inc |
| 2 | 2 | ||
| 3 | RV = "1.7-4" | 3 | RV = "1.7-4" |
| 4 | 4 | ||
