You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit flag-o-matic meson
|
||
|
|
||
3 years ago
|
DESCRIPTION="EGLStream-based Wayland external platform"
|
||
3 years ago
|
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"
|
||
3 years ago
|
KEYWORDS="amd64"
|
||
3 years ago
|
|
||
|
RDEPEND="
|
||
|
dev-libs/wayland
|
||
3 years ago
|
!<x11-drivers/nvidia-drivers-470.57.02[wayland(-)]"
|
||
3 years ago
|
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
|
||
|
}
|