diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-03-10 15:46:40 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-03-10 19:03:04 -0500 |
commit | 014102ebce0ebc49bde8a5c27a4d0f954a2115be (patch) | |
tree | 0e05029f32cb3cd6466fa03364584f530b98028e /x11-libs/libvdpau/libvdpau-1.5.ebuild | |
parent | x11-libs/libvdpau: drop live 99999 (diff) | |
download | gentoo-014102ebce0ebc49bde8a5c27a4d0f954a2115be.tar.gz gentoo-014102ebce0ebc49bde8a5c27a4d0f954a2115be.tar.bz2 gentoo-014102ebce0ebc49bde8a5c27a4d0f954a2115be.zip |
x11-libs/libvdpau: add 1.5
wrt removed -D_GNU_SOURCE, been unneeded since it started using
meson given it's set as-needed by testing for secure_getenv
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-libs/libvdpau/libvdpau-1.5.ebuild')
-rw-r--r-- | x11-libs/libvdpau/libvdpau-1.5.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/x11-libs/libvdpau/libvdpau-1.5.ebuild b/x11-libs/libvdpau/libvdpau-1.5.ebuild new file mode 100644 index 000000000000..6e035344ce97 --- /dev/null +++ b/x11-libs/libvdpau/libvdpau-1.5.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson-multilib virtualx + +DESCRIPTION="VDPAU wrapper and trace libraries" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/VDPAU" +SRC_URI="https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm64 ~riscv ~x86" +IUSE="doc dri" + +RDEPEND=" + x11-libs/libX11[${MULTILIB_USEDEP}] + dri? ( x11-libs/libXext[${MULTILIB_USEDEP}] )" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto" +BDEPEND=" + virtual/pkgconfig + doc? ( + app-doc/doxygen + media-gfx/graphviz + virtual/latex-base + )" + +src_prepare() { + default + + sed -i "/^docdir/s|${PN}|${PF}|" doc/meson.build || die +} + +multilib_src_configure() { + local emesonargs=( + $(meson_native_use_bool doc documentation) + $(meson_use dri dri2) + ) + + meson_src_configure +} + +multilib_src_test() { + virtx meson_src_test +} |