From patchwork Thu May 19 06:43:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Volk X-Patchwork-Id: 8255 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21CD7C433F5 for ; Thu, 19 May 2022 06:43:27 +0000 (UTC) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by mx.groups.io with SMTP id smtpd.web08.4507.1652942605438551325 for ; Wed, 18 May 2022 23:43:26 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: t-online.de, ip: 194.25.134.84, mailfrom: f_l_k@t-online.de) Received: from fwd78.dcpf.telekom.de (fwd78.aul.t-online.de [10.223.144.104]) by mailout09.t-online.de (Postfix) with SMTP id 9E21037DF for ; Thu, 19 May 2022 08:43:23 +0200 (CEST) Received: from flk-MS-7C91.fritz.box ([84.154.174.3]) by fwd78.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1nrZsY-1Vrj4j0; Thu, 19 May 2022 08:43:22 +0200 From: Markus Volk To: openembedded-core@lists.openembedded.org Cc: Markus Volk Subject: [meta-oe][RFC PATCH 1/2] libdecor: initial add recipe Date: Thu, 19 May 2022 08:43:11 +0200 Message-Id: <20220519064312.391164-1-f_l_k@t-online.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-TOI-EXPURGATEID: 150726::1652942602-0000AD4E-0385091D/0/0 CLEAN NORMAL X-TOI-MSGID: 1bc05ac8-6c16-4b83-9cf2-1432b4fbcd65 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 19 May 2022 06:43:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/165865 libdecor is a client-side decoration library for Wayland clients. It is used by libsdl2 for window decoration and is required to provide decoration for shells that use client-side decoration such as gnome-shell or weston. Signed-off-by: Markus Volk --- .../libdecor/libdecor_0.1.0.bb | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta/recipes-graphics/libdecor/libdecor_0.1.0.bb diff --git a/meta/recipes-graphics/libdecor/libdecor_0.1.0.bb b/meta/recipes-graphics/libdecor/libdecor_0.1.0.bb new file mode 100644 index 0000000000..3223d914ad --- /dev/null +++ b/meta/recipes-graphics/libdecor/libdecor_0.1.0.bb @@ -0,0 +1,30 @@ +SUMMARY = "libdecor - A client-side decorations library for Wayland clients" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7ae2be7fb1637141840314b51970a9f7" + +SRC_URI = "git://gitlab.gnome.org/jadahl/libdecor.git;protocol=https;branch=master" + +DEPENDS = " \ + cairo \ + libxkbcommon \ + pango \ + wayland \ + wayland-native \ + wayland-protocols \ +" + +S = "${WORKDIR}/git" +SRCREV = "3ec3fadd59a21835079fbb3046d2bec6c649d6fa" + +PACKAGECONFIG ?= "dbus" + +PACKAGECONFIG[dbus] = "-Ddbus=enabled,-Ddbus=disabled,dbus" +PACKAGECONFIG[demo] = "-Ddemo=true,-Ddemo=false,virtual/libgl" + +inherit meson pkgconfig + +EXTRA_OEMESON += "--buildtype release" + + +BBCLASSEXTEND = "native nativesdk" + From patchwork Thu May 19 06:43:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Volk X-Patchwork-Id: 8256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11DEBC433EF for ; Thu, 19 May 2022 06:43:37 +0000 (UTC) Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) by mx.groups.io with SMTP id smtpd.web08.4508.1652942610947179060 for ; Wed, 18 May 2022 23:43:31 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: t-online.de, ip: 194.25.134.21, mailfrom: f_l_k@t-online.de) Received: from fwd78.dcpf.telekom.de (fwd78.aul.t-online.de [10.223.144.104]) by mailout10.t-online.de (Postfix) with SMTP id 1EC145565 for ; Thu, 19 May 2022 08:43:29 +0200 (CEST) Received: from flk-MS-7C91.fritz.box ([84.154.174.3]) by fwd78.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1nrZsd-1Vrj4k0; Thu, 19 May 2022 08:43:27 +0200 From: Markus Volk To: openembedded-core@lists.openembedded.org Cc: Markus Volk Subject: [meta-oe][RFC PATCH 2/2] libsdl2: rework and cleanup Date: Thu, 19 May 2022 08:43:12 +0200 Message-Id: <20220519064312.391164-2-f_l_k@t-online.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519064312.391164-1-f_l_k@t-online.de> References: <20220519064312.391164-1-f_l_k@t-online.de> MIME-Version: 1.0 X-TOI-EXPURGATEID: 150726::1652942607-0000AD4E-8ED9F5E3/0/0 CLEAN NORMAL X-TOI-MSGID: 86aa04a5-02c2-433d-9a35-036d7c68781f List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 19 May 2022 06:43:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/165866 - add libusb dependency because libsdl2 is looking for it - remove xvm and xinerama since support has been dropped in sdl code - allow native build for libxkbcommon and xkeyboard-config to allow alignment of native/target build - align native and target build - add PACKAGECONFIG options for pipewire and libdecor Signed-off-by: Markus Volk --- meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb | 17 ++++++++--------- .../xorg-lib/libxkbcommon_1.4.0.bb | 2 ++ .../xorg-lib/xkeyboard-config_2.35.1.bb | 2 ++ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb index 7678319770..a6550c3175 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb @@ -21,6 +21,8 @@ LIC_FILES_CHKSUM:append = " ${@bb.utils.contains('PACKAGECONFIG', 'arm-neon', 'f PROVIDES = "virtual/libsdl2" +DEPENDS = "libusb" + SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ file://0001-video-restore-ability-to-disable-fb-accel-via-hint.patch \ " @@ -43,9 +45,7 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \ -DSDL_PTHREADS=ON \ -DSDL_RPATH=OFF \ -DSDL_SNDIO=OFF \ - -DSDL_X11_XVM=OFF \ -DSDL_X11_XCURSOR=OFF \ - -DSDL_X11_XINERAMA=OFF \ -DSDL_X11_XDBE=OFF \ -DSDL_X11_XFIXES=OFF \ -DSDL_X11_XINPUT=OFF \ @@ -55,24 +55,23 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \ " # opengl packageconfig factored out to make it easy for distros -# and BSP layers to pick either (desktop) opengl, gles2, or no GL -PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" +# and BSP layers to pick either (desktop) opengl, gles, or no GL +PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl gles', d)}" -PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}" -PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}" PACKAGECONFIG ??= " \ ${PACKAGECONFIG_GL} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ - ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio pipewire x11 wayland', d)} \ ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ " PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib," PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF" PACKAGECONFIG[directfb] = "-DSDL_DIRECTFB=ON,-DSDL_DIRECTFB=OFF,directfb,directfb" -PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2" +PACKAGECONFIG[gles] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2" PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack" PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm" +PACKAGECONFIG[libdecor] = "-DSDL_WAYLAND_LIBDECOR=ON,-DSDL_WAYLAND_LIBDECOR=OFF,libdecor,libdecor" PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl" +PACKAGECONFIG[pipewire] = "-DSDL_PIPEWIRE=ON,-DSDL_PIPEWIRE=OFF,pipewire" PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio" PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon" PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender" diff --git a/meta/recipes-graphics/xorg-lib/libxkbcommon_1.4.0.bb b/meta/recipes-graphics/xorg-lib/libxkbcommon_1.4.0.bb index 34652e9c4e..9840b0797b 100644 --- a/meta/recipes-graphics/xorg-lib/libxkbcommon_1.4.0.bb +++ b/meta/recipes-graphics/xorg-lib/libxkbcommon_1.4.0.bb @@ -34,3 +34,5 @@ python populate_packages:prepend () { # Fix a following runtime error: # xkbcommon: ERROR: couldn't find a Compose file for locale "C" RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', 'libx11-compose-data', d)}" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.35.1.bb b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.35.1.bb index 5215131e3e..46c73879e6 100644 --- a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.35.1.bb +++ b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.35.1.bb @@ -28,3 +28,5 @@ do_install:append () { install -d ${D}${datadir}/X11/xkb/compiled cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg } + +BBCLASSEXTEND = "native nativesdk"