diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /gui-libs/egl-wayland/egl-wayland-1.1.6.ebuild | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'gui-libs/egl-wayland/egl-wayland-1.1.6.ebuild')
-rw-r--r-- | gui-libs/egl-wayland/egl-wayland-1.1.6.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/gui-libs/egl-wayland/egl-wayland-1.1.6.ebuild b/gui-libs/egl-wayland/egl-wayland-1.1.6.ebuild new file mode 100644 index 000000000000..931329d094c9 --- /dev/null +++ b/gui-libs/egl-wayland/egl-wayland-1.1.6.ebuild @@ -0,0 +1,52 @@ +# 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 (for NVIDIA)" +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 ~x86" + +RDEPEND=" + dev-libs/wayland + !x11-drivers/nvidia-drivers[wayland(-)]" +DEPEND=" + ${RDEPEND} + gui-libs/eglexternalplatform + media-libs/libglvnd" +BDEPEND="dev-util/wayland-scanner" + +PATCHES=( + "${FILESDIR}"/${P}-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 [[ ! ${REPLACING_VERSIONS} ]]; then + elog "To use EGLStream with x11-drivers/nvidia-drivers, it is necessary to" + elog "load the nvidia-drm module with experimental nvidia-drm.modeset=1." + elog + elog "Can be accomplished by:" + elog " echo 'options nvidia-drm modeset=1' > ${EROOT}/etc/modprobe.d/nvidia-drm.conf" + elog "...then reloading the module." + fi +} |