summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/directfb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/directfb')
-rw-r--r--meta-oe/recipes-graphics/directfb/directfb-examples_1.7.0.bb3
-rw-r--r--meta-oe/recipes-graphics/directfb/directfb.inc25
-rw-r--r--meta-oe/recipes-graphics/directfb/directfb/0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch36
-rw-r--r--meta-oe/recipes-graphics/directfb/directfb/0001-libdirect-remove-use-of-keyword-register.patch44
-rw-r--r--meta-oe/recipes-graphics/directfb/directfb_1.7.7.bb1
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
15LIC_FILES_CHKSUM = "file://COPYING;md5=ecf6fd2b19915afc4da56043926ca18f" 15LIC_FILES_CHKSUM = "file://COPYING;md5=ecf6fd2b19915afc4da56043926ca18f"
16 16
17S = "${WORKDIR}/DirectFB-examples-${PV}" 17S = "${UNPACKDIR}/DirectFB-examples-${PV}"
18 18
19inherit autotools pkgconfig 19inherit autotools pkgconfig
20 20
21SRC_URI[md5sum] = "8b60c867af295481c32a8c7fc5802307"
22SRC_URI[sha256sum] = "9a2104cc4da8123c8371813551b66b943198979f745cbebc034bb5e10844122a" 21SRC_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"
9LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" 9LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589"
10 10
11HOMEPAGE = "http://directfb.org" 11HOMEPAGE = "http://directfb.org"
12DEPENDS = "jpeg libpng freetype zlib sysfsutils" 12DEPENDS = "jpeg libpng"
13 13
14SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.gz \ 14SRC_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
29S = "${WORKDIR}/DirectFB-${PV}" 31S = "${UNPACKDIR}/DirectFB-${PV}"
30 32
31LDFLAGS:append = " -lm" 33LDFLAGS:append = " -lm"
32 34
33CXXFLAGS:append:toolchain-clang = " -Wno-error=dtor-typedef" 35CXXFLAGS:append:toolchain-clang = " -Wno-error=dtor-typedef"
34 36
35# Workaround for linking issues seen with armv7a + gold
36LDFLAGS:append:arm = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
37
38BINCONFIG = "${bindir}/directfb-config" 37BINCONFIG = "${bindir}/directfb-config"
39 38
40inherit autotools binconfig-disabled pkgconfig 39inherit autotools binconfig-disabled pkgconfig
41 40
42PACKAGECONFIG ??= "linuxinput" 41PACKAGECONFIG ??= "freetype linuxinput zlib"
43PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
44PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm" 42PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
45PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff" 43PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype,freetype"
46PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" 44PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
47PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib" 45PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa,"
48PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,," 46PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,,"
49PACKAGECONFIG[noinput] = "--with-inputdrivers=none,," 47PACKAGECONFIG[noinput] = "--with-inputdrivers=none,,"
50PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa," 48PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
49PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib"
50PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
51PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg," 51PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg,"
52PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib"
52 53
53EXTRA_OECONF = "\ 54EXTRA_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 @@
1From 18f4eca291cabf93d87e7c9051268d9c385b8f37 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 20 May 2024 18:23:06 -0700
4Subject: [PATCH] inputdrivers: Correct the signature of bind() call on musl
5 systems
6
7Its 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
15Upstream-Status: Pending
16Signed-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
21diff --git a/inputdrivers/linux_input/linux_input.c b/inputdrivers/linux_input/linux_input.c
22index 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--
352.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 @@
1From f6cdb9f1c3dbef8ef695703a2a5fb4e92b2dd8a0 Mon Sep 17 00:00:00 2001
2From: Simon Barth <simon.barth@gmx.de>
3Date: Mon, 5 Aug 2024 19:35:16 +0200
4Subject: [PATCH] libdirect: remove use of keyword 'register'
5
6The 'register' keyword was removed in C++17 and is now unused and
7reserved. When compiling code that uses DirecthFB with C++17,
8compilation fails.
9
10Since modern compilers likely don't produce different code whether the
11'register' keyword is used or not, there shouldn't be any performance
12impact introduced by this change.
13
14Signed-off-by: Simon Barth <simon.barth@gmx.de>
15
16Upstream-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
21diff --git a/lib/direct/util.h b/lib/direct/util.h
22index 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--
442.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
5LEAD_SONAME = "libdirectfb-1.7.so.0" 5LEAD_SONAME = "libdirectfb-1.7.so.0"
6 6
7SRC_URI[md5sum] = "152cf1863b1a3a28aa1370e9053440bf"
8SRC_URI[sha256sum] = "b785c638dc31b8fe3a7c81be1475c89b2255ab3d67b777c747d3fbc52f8027a3" 7SRC_URI[sha256sum] = "b785c638dc31b8fe3a7c81be1475c89b2255ab3d67b777c747d3fbc52f8027a3"