commit:     86b56d2c66b0ad21cd449bfefa53c22c49ff4a76
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 23 14:01:46 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Jul 23 15:13:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86b56d2c

gui-libs/egl-gbm: add multilib support

To match NVIDIA that started shipping egl-gbm/wayland 32bit
variant in >=nvidia-drivers-560 to let 32bit applications
work right on wayland.

...albeit this is rather uncommon given most 32bit applications
would be using xwayland at best, but do not want an unexpected
setup that may confuse some things like steam or wine's new
wayland support.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 gui-libs/egl-gbm/egl-gbm-1.1.1-r1.ebuild | 38 ++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gui-libs/egl-gbm/egl-gbm-1.1.1-r1.ebuild 
b/gui-libs/egl-gbm/egl-gbm-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..4ec0bbc9775c
--- /dev/null
+++ b/gui-libs/egl-gbm/egl-gbm-1.1.1-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson-multilib
+
+DESCRIPTION="GBM EGL external platform library"
+HOMEPAGE="https://github.com/NVIDIA/egl-gbm/";
+SRC_URI="
+       https://github.com/NVIDIA/egl-gbm/archive/${PV}.tar.gz
+               -> ${P}.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+RDEPEND="
+       media-libs/mesa[gbm(+),${MULTILIB_USEDEP}]
+       x11-libs/libdrm[${MULTILIB_USEDEP}]
+"
+DEPEND="
+       ${RDEPEND}
+       >=gui-libs/eglexternalplatform-1.1-r1
+       media-libs/libglvnd
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.1.0-werror.patch
+)
+
+src_install() {
+       meson-multilib_src_install
+
+       insinto /usr/share/egl/egl_external_platform.d
+       doins "${FILESDIR}"/15_nvidia_gbm.json
+}

Reply via email to