diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
commit | b49088575eb777ced2551f484da86317332d6087 (patch) | |
tree | bf9a151cf2d61956340d555659ffc098ee1da466 /gui-libs/egl-wayland/egl-wayland-1.1.7-r1.ebuild | |
parent | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (diff) |
gentoo resync : 24.07.2021
Diffstat (limited to 'gui-libs/egl-wayland/egl-wayland-1.1.7-r1.ebuild')
-rw-r--r-- | gui-libs/egl-wayland/egl-wayland-1.1.7-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gui-libs/egl-wayland/egl-wayland-1.1.7-r1.ebuild b/gui-libs/egl-wayland/egl-wayland-1.1.7-r1.ebuild new file mode 100644 index 000000000000..088724525cf1 --- /dev/null +++ b/gui-libs/egl-wayland/egl-wayland-1.1.7-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic meson + +DESCRIPTION="EGLStream-based Wayland external platform" +HOMEPAGE="https://github.com/NVIDIA/egl-wayland" +SRC_URI="https://github.com/NVIDIA/egl-wayland/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64" + +RDEPEND=" + dev-libs/wayland + !<x11-drivers/nvidia-drivers-470.57.02[wayland(-)]" +DEPEND=" + ${RDEPEND} + gui-libs/eglexternalplatform + media-libs/libglvnd" +BDEPEND="dev-util/wayland-scanner" + +PATCHES=( + "${FILESDIR}"/${PN}-1.1.6-remove-werror.patch +) + +src_configure() { + # EGLStream is not intended for X11, always build without (bug #777558) + append-cppflags -DEGL_NO_X11 + + meson_src_configure +} + +src_install() { + meson_src_install + + insinto /usr/share/egl/egl_external_platform.d + doins "${FILESDIR}"/10_nvidia_wayland.json +} + +pkg_postinst() { + if has_version "<x11-drivers/nvidia-drivers-391"; then + ewarn "<=nvidia-drivers-390.xx may not work properly with this version of" + ewarn "egl-wayland, it is recommended to use nouveau drivers for wayland." + fi +} |