summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-12-24 08:18:52 -0500
committerIonen Wolkens <ionen@gentoo.org>2021-12-24 09:26:38 -0500
commit3276a1eae562654e998dc39a9d2f0f85ca2eb6bb (patch)
tree16b09e2551e2c7a2b2487e7d228b386508fd0367 /gui-libs
parentgui-libs/eglexternalplatform: EAPI7->8, adjust prefix sed (diff)
downloadgentoo-3276a1eae562654e998dc39a9d2f0f85ca2eb6bb.tar.gz
gentoo-3276a1eae562654e998dc39a9d2f0f85ca2eb6bb.tar.bz2
gentoo-3276a1eae562654e998dc39a9d2f0f85ca2eb6bb.zip
gui-libs/egl-gbm: initial import, version 1.1.0
This is libnvidia-egl-gbm.so previously provided only as a prebuilt by nvidia-drivers-495+, NVIDIA made the source available. Like egl-wayland this uses its own versioning and doesn't necessarily need to be in sync with drivers' version (albeit pinning may happen if there's major changes), so a separate package is more fitting. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'gui-libs')
-rw-r--r--gui-libs/egl-gbm/Manifest1
-rw-r--r--gui-libs/egl-gbm/egl-gbm-1.1.0.ebuild34
-rw-r--r--gui-libs/egl-gbm/files/15_nvidia_gbm.json6
-rw-r--r--gui-libs/egl-gbm/files/egl-gbm-1.1.0-werror.patch6
-rw-r--r--gui-libs/egl-gbm/metadata.xml11
5 files changed, 58 insertions, 0 deletions
diff --git a/gui-libs/egl-gbm/Manifest b/gui-libs/egl-gbm/Manifest
new file mode 100644
index 000000000000..89e67167b684
--- /dev/null
+++ b/gui-libs/egl-gbm/Manifest
@@ -0,0 +1 @@
+DIST egl-gbm-1.1.0.tar.gz 17165 BLAKE2B c83702635c7621d93968ed6813d3641bcc785b7e6fb0474d1e6edebf46942c799af52d22127865ff9484ef6b398a02cb6081dfc00a6e1ec8ce1882c0c980b116 SHA512 4b7856f496bd045d1ef56881ac793c9e5994bb6cfaa911de51f83bfd4adcf596c204a75cd9f1aef0418289dcef4812ace8cba23b44445e18e004bf6ad2b18421
diff --git a/gui-libs/egl-gbm/egl-gbm-1.1.0.ebuild b/gui-libs/egl-gbm/egl-gbm-1.1.0.ebuild
new file mode 100644
index 000000000000..4d1b664b6bb7
--- /dev/null
+++ b/gui-libs/egl-gbm/egl-gbm-1.1.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+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"
+
+RDEPEND="
+ >=media-libs/mesa-21.2[gbm(+)]
+ x11-libs/libdrm
+ !<x11-drivers/nvidia-drivers-495.46-r20[wayland(-)]"
+DEPEND="
+ ${RDEPEND}
+ >=media-libs/libglvnd-1.3.4
+ gui-libs/eglexternalplatform"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.0-werror.patch
+)
+
+src_install() {
+ meson_src_install
+
+ insinto /usr/share/egl/egl_external_platform.d
+ doins "${FILESDIR}"/15_nvidia_gbm.json
+}
diff --git a/gui-libs/egl-gbm/files/15_nvidia_gbm.json b/gui-libs/egl-gbm/files/15_nvidia_gbm.json
new file mode 100644
index 000000000000..2654bebddcca
--- /dev/null
+++ b/gui-libs/egl-gbm/files/15_nvidia_gbm.json
@@ -0,0 +1,6 @@
+{
+ "file_format_version" : "1.0.0",
+ "ICD" : {
+ "library_path" : "libnvidia-egl-gbm.so.1"
+ }
+}
diff --git a/gui-libs/egl-gbm/files/egl-gbm-1.1.0-werror.patch b/gui-libs/egl-gbm/files/egl-gbm-1.1.0-werror.patch
new file mode 100644
index 000000000000..d48d98015e59
--- /dev/null
+++ b/gui-libs/egl-gbm/files/egl-gbm-1.1.0-werror.patch
@@ -0,0 +1,6 @@
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -7,3 +7,2 @@
+ add_project_arguments('-Wall', language : 'c')
+-add_project_arguments('-Werror', language : 'c')
+ add_project_arguments('-fvisibility=hidden', language : 'c')
diff --git a/gui-libs/egl-gbm/metadata.xml b/gui-libs/egl-gbm/metadata.xml
new file mode 100644
index 000000000000..b852c8d8c8d0
--- /dev/null
+++ b/gui-libs/egl-gbm/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ionen@gentoo.org</email>
+ <name>Ionen Wolkens</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">NVIDIA/egl-gbm</remote-id>
+ </upstream>
+</pkgmetadata>