diff options
5 files changed, 178 insertions, 0 deletions
diff --git a/meta/recipes-graphics/directfb/directfb-1.4.6/mkdfiff.patch b/meta/recipes-graphics/directfb/directfb-1.4.6/mkdfiff.patch new file mode 100644 index 0000000000..28bd534f37 --- /dev/null +++ b/meta/recipes-graphics/directfb/directfb-1.4.6/mkdfiff.patch | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | diff -uNr DirectFB-1.4.6.orig/tools/mkdfiff.c DirectFB-1.4.6/tools/mkdfiff.c | ||
| 2 | --- DirectFB-1.4.6.orig/tools/mkdfiff.c 2010-10-15 10:54:57.000000000 +0200 | ||
| 3 | +++ DirectFB-1.4.6/tools/mkdfiff.c 2010-10-15 10:54:15.000000000 +0200 | ||
| 4 | @@ -50,6 +50,8 @@ | ||
| 5 | |||
| 6 | #include <dfiff.h> | ||
| 7 | |||
| 8 | +#include <unistd.h> | ||
| 9 | + | ||
| 10 | static DirectFBPixelFormatNames( format_names ); | ||
| 11 | |||
| 12 | static const char *filename; | ||
| 13 | diff -uNr DirectFB-1.4.6.orig/tools/mkdgifft.cpp DirectFB-1.4.6/tools/mkdgifft.cpp | ||
| 14 | --- DirectFB-1.4.6.orig/tools/mkdgifft.cpp 2010-10-08 14:02:57.000000000 +0200 | ||
| 15 | +++ DirectFB-1.4.6/tools/mkdgifft.cpp 2010-10-15 10:56:06.000000000 +0200 | ||
| 16 | @@ -40,6 +40,8 @@ | ||
| 17 | #include <errno.h> | ||
| 18 | #include <stdio.h> | ||
| 19 | #include <stdlib.h> | ||
| 20 | +#include <sys/stat.h> | ||
| 21 | +#include <sys/types.h> | ||
| 22 | #include <unistd.h> | ||
| 23 | #include <fcntl.h> | ||
| 24 | #include <sys/mman.h> | ||
diff --git a/meta/recipes-graphics/directfb/directfb.inc b/meta/recipes-graphics/directfb/directfb.inc new file mode 100644 index 0000000000..2fe8b1c509 --- /dev/null +++ b/meta/recipes-graphics/directfb/directfb.inc | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | DESCRIPTION = "DirectFB is a thin library that provides developers \ | ||
| 2 | with hardware graphics acceleration, input device handling and \ | ||
| 3 | abstraction, an integrated windowing system with support for \ | ||
| 4 | translucent windows and multiple display layers on top of the \ | ||
| 5 | Linux framebuffer device." | ||
| 6 | SECTION = "libs" | ||
| 7 | LICENSE = "LGPLv2.1" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" | ||
| 9 | |||
| 10 | HOMEPAGE = "http://directfb.org" | ||
| 11 | DEPENDS = "jpeg libpng freetype zlib tslib" | ||
| 12 | |||
| 13 | SRC_URI = " \ | ||
| 14 | http://www.directfb.org/downloads/Old/DirectFB-${PV}.tar.gz \ | ||
| 15 | file://fix-pkgconfig-cflags.patch \ | ||
| 16 | file://fix-font-missing-char.patch \ | ||
| 17 | file://getpagesize.patch \ | ||
| 18 | file://mkdfiff.patch \ | ||
| 19 | file://dont-use-linux-config.patch \ | ||
| 20 | file://ts_lib_autotools.patch \ | ||
| 21 | " | ||
| 22 | S = "${WORKDIR}/DirectFB-${PV}" | ||
| 23 | |||
| 24 | LDFLAGS_append =" -lts -lm" | ||
| 25 | |||
| 26 | inherit autotools binconfig pkgconfig | ||
| 27 | |||
| 28 | EXTRA_OECONF = "\ | ||
| 29 | --with-gfxdrivers=none \ | ||
| 30 | --enable-libmpeg3=no \ | ||
| 31 | --enable-freetype=yes \ | ||
| 32 | --enable-sdl=no \ | ||
| 33 | --enable-vnc=no \ | ||
| 34 | --disable-x11 \ | ||
| 35 | " | ||
| 36 | |||
| 37 | #PACKAGES_DYNAMIC = "directfb-inputdrivers-*" | ||
| 38 | # | ||
| 39 | #python populate_packages_prepend () { | ||
| 40 | # import os.path | ||
| 41 | # inputdrivers_libdir = bb.data.expand('${libdir}/directfb-${RV}/inputdrivers', d) | ||
| 42 | # do_split_packages(d, inputdrivers_libdir, '*.so$', 'directfb-inputdrivers-%s', 'Directfb plugin for %s') | ||
| 43 | #} | ||
| 44 | |||
| 45 | # NOTE: monolithic packaging for now, should improve that eventually | ||
| 46 | |||
| 47 | |||
| 48 | |||
| 49 | FILES_${PN}-dbg += "\ | ||
| 50 | ${libdir}/directfb-${RV}/*/*/.debug/*.so \ | ||
| 51 | ${libdir}/directfb-${RV}/*/.debug/*.so \ | ||
| 52 | " | ||
| 53 | |||
| 54 | FILES_${PN}-dev += "\ | ||
| 55 | ${bindir}/directfb-config \ | ||
| 56 | ${libdir}/directfb-${RV}/systems/*.la \ | ||
| 57 | ${libdir}/directfb-${RV}/inputdrivers/*.la \ | ||
| 58 | ${libdir}/directfb-${RV}/interfaces/*/*.la \ | ||
| 59 | ${libdir}/directfb-${RV}/wm/*.la \ | ||
| 60 | " | ||
| 61 | |||
| 62 | FILES_${PN} += "\ | ||
| 63 | ${libdir}/directfb-${RV}/systems/*.so \ | ||
| 64 | ${libdir}/directfb-${RV}/inputdrivers/*.so \ | ||
| 65 | ${libdir}/directfb-${RV}/interfaces/*/*.so \ | ||
| 66 | ${libdir}/directfb-${RV}/wm/*.so \ | ||
| 67 | ${datadir}/directfb-${PV} \ | ||
| 68 | " | ||
diff --git a/meta/recipes-graphics/directfb/directfb_1.4.6.bb b/meta/recipes-graphics/directfb/directfb_1.4.6.bb new file mode 100644 index 0000000000..70c0225bf7 --- /dev/null +++ b/meta/recipes-graphics/directfb/directfb_1.4.6.bb | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | require directfb.inc | ||
| 2 | |||
| 3 | RV = "1.4-5" | ||
| 4 | PR = "r2" | ||
| 5 | |||
| 6 | DEPENDS += "sysfsutils" | ||
| 7 | |||
| 8 | SRC_URI = " \ | ||
| 9 | http://directfb.org/downloads/Core/DirectFB-1.4/DirectFB-${PV}.tar.gz \ | ||
| 10 | file://directfb-1.2.x-fix-pkgconfig-cflags.patch \ | ||
| 11 | file://mkdfiff.patch \ | ||
| 12 | file://dont-use-linux-config.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_OECONF = "\ | ||
| 16 | --enable-freetype=yes \ | ||
| 17 | --enable-zlib \ | ||
| 18 | --with-gfxdrivers=none \ | ||
| 19 | --disable-sdl \ | ||
| 20 | --disable-vnc \ | ||
| 21 | --disable-x11 \ | ||
| 22 | " | ||
| 23 | |||
| 24 | LEAD_SONAME = "libdirectfb-1.4.so.5" | ||
| 25 | |||
| 26 | SRC_URI[md5sum] = "dbe1957932f81790742b58b94c1c7b84" | ||
| 27 | SRC_URI[sha256sum] = "b18121e60e9a084ee347037a53a46cfaea1c09505bd99d673c2e65eca285e69b" | ||
diff --git a/meta/recipes-graphics/directfb/files/directfb-1.2.x-fix-pkgconfig-cflags.patch b/meta/recipes-graphics/directfb/files/directfb-1.2.x-fix-pkgconfig-cflags.patch new file mode 100644 index 0000000000..745c561cc0 --- /dev/null +++ b/meta/recipes-graphics/directfb/files/directfb-1.2.x-fix-pkgconfig-cflags.patch | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | Index: DirectFB-1.1.1/directfb-internal.pc.in | ||
| 2 | =================================================================== | ||
| 3 | --- DirectFB-1.1.1.orig/directfb-internal.pc.in 2007-08-07 21:43:00.000000000 +0200 | ||
| 4 | +++ DirectFB-1.1.1/directfb-internal.pc.in 2008-07-17 21:00:47.424654304 +0200 | ||
| 5 | @@ -2,10 +2,10 @@ | ||
| 6 | exec_prefix=@exec_prefix@ | ||
| 7 | moduledir=@MODULEDIR@ | ||
| 8 | moduledirname=@MODULEDIRNAME@ | ||
| 9 | -includedir=@INTERNALINCLUDEDIR@ | ||
| 10 | +includedir=@includedir@ | ||
| 11 | |||
| 12 | Name: DirectFB-Internal | ||
| 13 | Description: Third party module support package for DirectFB. | ||
| 14 | Version: @VERSION@ | ||
| 15 | Requires: directfb = @VERSION@ | ||
| 16 | -Cflags: @DFB_INTERNAL_CFLAGS@ -I@INTERNALINCLUDEDIR@ | ||
| 17 | +Cflags: @DFB_INTERNAL_CFLAGS@ -I${includedir}/directfb -I${includedir} | ||
| 18 | Index: DirectFB-1.1.1/directfb.pc.in | ||
| 19 | =================================================================== | ||
| 20 | --- DirectFB-1.1.1.orig/directfb.pc.in 2007-12-15 16:23:16.000000000 +0100 | ||
| 21 | +++ DirectFB-1.1.1/directfb.pc.in 2008-07-17 20:59:58.044985193 +0200 | ||
| 22 | @@ -9,4 +9,4 @@ | ||
| 23 | Requires: fusion direct | ||
| 24 | Libs: -L${libdir} -ldirectfb @THREADLIB@ @OSX_LIBS@ | ||
| 25 | Libs.private: -L${libdir} @DYNLIB@ @ZLIB_LIBS@ | ||
| 26 | -Cflags: @THREADFLAGS@ -I@INCLUDEDIR@ | ||
| 27 | +Cflags: @THREADFLAGS@ -I${includedir}/directfb | ||
| 28 | Index: DirectFB-1.1.1/lib/fusion/fusion.pc.in | ||
| 29 | =================================================================== | ||
| 30 | --- DirectFB-1.1.1.orig/lib/fusion/fusion.pc.in 2007-08-07 21:43:00.000000000 +0200 | ||
| 31 | +++ DirectFB-1.1.1/lib/fusion/fusion.pc.in 2008-07-17 20:58:07.051338866 +0200 | ||
| 32 | @@ -8,4 +8,4 @@ | ||
| 33 | Version: @VERSION@ | ||
| 34 | Requires: direct | ||
| 35 | Libs: -L${libdir} -lfusion | ||
| 36 | -Cflags: -I@INCLUDEDIR@ | ||
| 37 | +Cflags: -I${includedir}/directfb -I${includedir} | ||
| 38 | Index: DirectFB-1.1.1/lib/voodoo/voodoo.pc.in | ||
| 39 | =================================================================== | ||
| 40 | --- DirectFB-1.1.1.orig/lib/voodoo/voodoo.pc.in 2007-08-07 21:43:00.000000000 +0200 | ||
| 41 | +++ DirectFB-1.1.1/lib/voodoo/voodoo.pc.in 2008-07-17 20:58:07.054671842 +0200 | ||
| 42 | @@ -8,4 +8,4 @@ | ||
| 43 | Version: @VERSION@ | ||
| 44 | Requires: direct | ||
| 45 | Libs: -L${libdir} -lvoodoo | ||
| 46 | -Cflags: -I@INCLUDEDIR@ | ||
| 47 | +Cflags: -I${includedir}/directfb -I${includedir} | ||
diff --git a/meta/recipes-graphics/directfb/files/dont-use-linux-config.patch b/meta/recipes-graphics/directfb/files/dont-use-linux-config.patch new file mode 100644 index 0000000000..f971660954 --- /dev/null +++ b/meta/recipes-graphics/directfb/files/dont-use-linux-config.patch | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | diff -urN DirectFB-1.1.0.orig/lib/direct/ppcasm_memcpy_cachable.S DirectFB-1.1.0/lib/direct/ppcasm_memcpy_cachable.S | ||
| 2 | --- DirectFB-1.1.0.orig/lib/direct/ppcasm_memcpy_cachable.S 2007-08-07 21:43:00.000000000 +0200 | ||
| 3 | +++ DirectFB-1.1.0/lib/direct/ppcasm_memcpy_cachable.S 2008-06-07 04:14:26.000000000 +0200 | ||
| 4 | @@ -34,8 +34,6 @@ | ||
| 5 | |||
| 6 | #define __ASSEMBLY__ | ||
| 7 | |||
| 8 | -#include <linux/config.h> | ||
| 9 | - | ||
| 10 | #if defined(CONFIG_8xx) || defined(CONFIG_403GCX) | ||
| 11 | #define L1_CACHE_LINE_SIZE 16 | ||
| 12 | #define LG_L1_CACHE_LINE_SIZE 4 | ||
