mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
48 lines
1.0 KiB
Bash
48 lines
1.0 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson-multilib
|
|
|
|
DESCRIPTION="NVIDIA wayland EGL external platform library"
|
|
HOMEPAGE="https://github.com/NVIDIA/egl-wayland/"
|
|
|
|
if [[ ${PV} == *_pre* ]]; then
|
|
# happens often that nvidia-drivers ships with a (yet) unreleased
|
|
# version and we need to ship a snapshot to provide the same fixes
|
|
HASH_EGLWAYLAND=
|
|
SRC_URI="
|
|
https://github.com/NVIDIA/egl-wayland/archive/${HASH_EGLWAYLAND}.tar.gz
|
|
-> ${P}.tar.gz
|
|
"
|
|
S=${WORKDIR}/${PN}-${HASH_EGLWAYLAND}
|
|
else
|
|
SRC_URI="
|
|
https://github.com/NVIDIA/egl-wayland/archive/refs/tags/${PV}.tar.gz
|
|
-> ${P}.tar.gz
|
|
"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64"
|
|
|
|
RDEPEND="
|
|
dev-libs/wayland[${MULTILIB_USEDEP}]
|
|
x11-libs/libdrm[${MULTILIB_USEDEP}]
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
>=dev-libs/wayland-protocols-1.34
|
|
>=gui-libs/eglexternalplatform-1.1-r1
|
|
media-libs/libglvnd
|
|
"
|
|
BDEPEND="
|
|
dev-util/wayland-scanner
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-1.1.6-remove-werror.patch
|
|
)
|