diff options
Diffstat (limited to 'meta-oe/recipes-graphics/directfb')
5 files changed, 93 insertions, 16 deletions
diff --git a/meta-oe/recipes-graphics/directfb/directfb-examples_1.7.0.bb b/meta-oe/recipes-graphics/directfb/directfb-examples_1.7.0.bb index 398e339482..f4a257ce89 100644 --- a/meta-oe/recipes-graphics/directfb/directfb-examples_1.7.0.bb +++ b/meta-oe/recipes-graphics/directfb/directfb-examples_1.7.0.bb | |||
@@ -14,9 +14,8 @@ SRC_URI = " \ | |||
14 | 14 | ||
15 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecf6fd2b19915afc4da56043926ca18f" | 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecf6fd2b19915afc4da56043926ca18f" |
16 | 16 | ||
17 | S = "${WORKDIR}/DirectFB-examples-${PV}" | 17 | S = "${UNPACKDIR}/DirectFB-examples-${PV}" |
18 | 18 | ||
19 | inherit autotools pkgconfig | 19 | inherit autotools pkgconfig |
20 | 20 | ||
21 | SRC_URI[md5sum] = "8b60c867af295481c32a8c7fc5802307" | ||
22 | SRC_URI[sha256sum] = "9a2104cc4da8123c8371813551b66b943198979f745cbebc034bb5e10844122a" | 21 | SRC_URI[sha256sum] = "9a2104cc4da8123c8371813551b66b943198979f745cbebc034bb5e10844122a" |
diff --git a/meta-oe/recipes-graphics/directfb/directfb.inc b/meta-oe/recipes-graphics/directfb/directfb.inc index 4d38632e25..0dc410b2cb 100644 --- a/meta-oe/recipes-graphics/directfb/directfb.inc +++ b/meta-oe/recipes-graphics/directfb/directfb.inc | |||
@@ -9,7 +9,7 @@ LICENSE = "LGPL-2.1-only" | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" |
10 | 10 | ||
11 | HOMEPAGE = "http://directfb.org" | 11 | HOMEPAGE = "http://directfb.org" |
12 | DEPENDS = "jpeg libpng freetype zlib sysfsutils" | 12 | DEPENDS = "jpeg libpng" |
13 | 13 | ||
14 | SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.gz \ | 14 | SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.gz \ |
15 | file://configurefix.patch \ | 15 | file://configurefix.patch \ |
@@ -24,36 +24,35 @@ SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.g | |||
24 | file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ | 24 | file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ |
25 | file://0001-os-linux-Fix-build-when-__NR_futex-is-not-available.patch \ | 25 | file://0001-os-linux-Fix-build-when-__NR_futex-is-not-available.patch \ |
26 | file://0001-include-libgen.h-for-basename.patch \ | 26 | file://0001-include-libgen.h-for-basename.patch \ |
27 | file://0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch \ | ||
28 | file://0001-libdirect-remove-use-of-keyword-register.patch \ | ||
27 | " | 29 | " |
28 | 30 | ||
29 | S = "${WORKDIR}/DirectFB-${PV}" | 31 | S = "${UNPACKDIR}/DirectFB-${PV}" |
30 | 32 | ||
31 | LDFLAGS:append = " -lm" | 33 | LDFLAGS:append = " -lm" |
32 | 34 | ||
33 | CXXFLAGS:append:toolchain-clang = " -Wno-error=dtor-typedef" | 35 | CXXFLAGS:append:toolchain-clang = " -Wno-error=dtor-typedef" |
34 | 36 | ||
35 | # Workaround for linking issues seen with armv7a + gold | ||
36 | LDFLAGS:append:arm = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
37 | |||
38 | BINCONFIG = "${bindir}/directfb-config" | 37 | BINCONFIG = "${bindir}/directfb-config" |
39 | 38 | ||
40 | inherit autotools binconfig-disabled pkgconfig | 39 | inherit autotools binconfig-disabled pkgconfig |
41 | 40 | ||
42 | PACKAGECONFIG ??= "linuxinput" | 41 | PACKAGECONFIG ??= "freetype linuxinput zlib" |
43 | PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper" | ||
44 | PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" | 42 | PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" |
45 | PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" | 43 | PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype,freetype" |
46 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" | 44 | PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper" |
47 | PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib" | 45 | PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa," |
48 | PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,," | 46 | PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,," |
49 | PACKAGECONFIG[noinput] = "--with-inputdrivers=none,," | 47 | PACKAGECONFIG[noinput] = "--with-inputdrivers=none,," |
50 | PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa," | 48 | PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" |
49 | PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib" | ||
50 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" | ||
51 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg," | 51 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg," |
52 | PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib" | ||
52 | 53 | ||
53 | EXTRA_OECONF = "\ | 54 | EXTRA_OECONF = "\ |
54 | --with-gfxdrivers=none \ | 55 | --with-gfxdrivers=none \ |
55 | --enable-freetype=yes \ | ||
56 | --enable-zlib \ | ||
57 | --disable-imlib2 \ | 56 | --disable-imlib2 \ |
58 | --disable-sdl \ | 57 | --disable-sdl \ |
59 | --disable-vnc \ | 58 | --disable-vnc \ |
diff --git a/meta-oe/recipes-graphics/directfb/directfb/0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch b/meta-oe/recipes-graphics/directfb/directfb/0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch new file mode 100644 index 0000000000..574bba0bc7 --- /dev/null +++ b/meta-oe/recipes-graphics/directfb/directfb/0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 18f4eca291cabf93d87e7c9051268d9c385b8f37 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 20 May 2024 18:23:06 -0700 | ||
4 | Subject: [PATCH] inputdrivers: Correct the signature of bind() call on musl | ||
5 | systems | ||
6 | |||
7 | Its flagged with GCC14 | ||
8 | |||
9 | ../../../DirectFB-1.7.7/inputdrivers/linux_input/linux_input.c:1551:27: error: passing argument 2 of 'bind' from incompatible pointer type [-Wincompatible-pointer-types] | ||
10 | 1551 | rt = bind(socket_fd, &sock_addr, | ||
11 | | ^~~~~~~~~~ | ||
12 | | | | ||
13 | | struct sockaddr_un * | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | inputdrivers/linux_input/linux_input.c | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/inputdrivers/linux_input/linux_input.c b/inputdrivers/linux_input/linux_input.c | ||
22 | index 03deebc..207f5a5 100644 | ||
23 | --- a/inputdrivers/linux_input/linux_input.c | ||
24 | +++ b/inputdrivers/linux_input/linux_input.c | ||
25 | @@ -1548,7 +1548,7 @@ udev_hotplug_EventThread(DirectThread *thread, void * hotplug_data) | ||
26 | "/org/kernel/udev/monitor", | ||
27 | sizeof(sock_addr.sun_path) - 1); | ||
28 | |||
29 | - rt = bind(socket_fd, &sock_addr, | ||
30 | + rt = bind(socket_fd, (struct sockaddr *)&sock_addr, | ||
31 | sizeof(sock_addr.sun_family)+1+strlen(&sock_addr.sun_path[1])); | ||
32 | if (rt < 0) { | ||
33 | D_PERROR( "DirectFB/linux_input: bind() failed: %s\n", | ||
34 | -- | ||
35 | 2.45.1 | ||
36 | |||
diff --git a/meta-oe/recipes-graphics/directfb/directfb/0001-libdirect-remove-use-of-keyword-register.patch b/meta-oe/recipes-graphics/directfb/directfb/0001-libdirect-remove-use-of-keyword-register.patch new file mode 100644 index 0000000000..24d977f4dc --- /dev/null +++ b/meta-oe/recipes-graphics/directfb/directfb/0001-libdirect-remove-use-of-keyword-register.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From f6cdb9f1c3dbef8ef695703a2a5fb4e92b2dd8a0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Simon Barth <simon.barth@gmx.de> | ||
3 | Date: Mon, 5 Aug 2024 19:35:16 +0200 | ||
4 | Subject: [PATCH] libdirect: remove use of keyword 'register' | ||
5 | |||
6 | The 'register' keyword was removed in C++17 and is now unused and | ||
7 | reserved. When compiling code that uses DirecthFB with C++17, | ||
8 | compilation fails. | ||
9 | |||
10 | Since modern compilers likely don't produce different code whether the | ||
11 | 'register' keyword is used or not, there shouldn't be any performance | ||
12 | impact introduced by this change. | ||
13 | |||
14 | Signed-off-by: Simon Barth <simon.barth@gmx.de> | ||
15 | |||
16 | Upstream-Status: Submitted [https://github.com/deniskropp/DirectFB/pull/25] | ||
17 | --- | ||
18 | lib/direct/util.h | 4 ++-- | ||
19 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
20 | |||
21 | diff --git a/lib/direct/util.h b/lib/direct/util.h | ||
22 | index 2109b6ca1..734645796 100644 | ||
23 | --- a/lib/direct/util.h | ||
24 | +++ b/lib/direct/util.h | ||
25 | @@ -220,7 +220,7 @@ void DIRECT_API direct_md5_sum( void *dst, const void *src, const int len ); | ||
26 | static __inline__ int | ||
27 | direct_util_count_bits( unsigned int mask ) | ||
28 | { | ||
29 | - register int ret = 0; | ||
30 | + int ret = 0; | ||
31 | |||
32 | while (mask) { | ||
33 | ret += mask & 1; | ||
34 | @@ -325,7 +325,7 @@ D_ICEIL(float f) | ||
35 | static __inline__ int | ||
36 | direct_log2( int val ) | ||
37 | { | ||
38 | - register int ret = 0; | ||
39 | + int ret = 0; | ||
40 | |||
41 | while (val >> ++ret); | ||
42 | |||
43 | -- | ||
44 | 2.25.1 | ||
diff --git a/meta-oe/recipes-graphics/directfb/directfb_1.7.7.bb b/meta-oe/recipes-graphics/directfb/directfb_1.7.7.bb index c6c070eda6..15f22697cd 100644 --- a/meta-oe/recipes-graphics/directfb/directfb_1.7.7.bb +++ b/meta-oe/recipes-graphics/directfb/directfb_1.7.7.bb | |||
@@ -4,5 +4,4 @@ RV = "1.7-7" | |||
4 | 4 | ||
5 | LEAD_SONAME = "libdirectfb-1.7.so.0" | 5 | LEAD_SONAME = "libdirectfb-1.7.so.0" |
6 | 6 | ||
7 | SRC_URI[md5sum] = "152cf1863b1a3a28aa1370e9053440bf" | ||
8 | SRC_URI[sha256sum] = "b785c638dc31b8fe3a7c81be1475c89b2255ab3d67b777c747d3fbc52f8027a3" | 7 | SRC_URI[sha256sum] = "b785c638dc31b8fe3a7c81be1475c89b2255ab3d67b777c747d3fbc52f8027a3" |