diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /x11-libs/libvdpau/libvdpau-1.4.ebuild | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'x11-libs/libvdpau/libvdpau-1.4.ebuild')
-rw-r--r-- | x11-libs/libvdpau/libvdpau-1.4.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/x11-libs/libvdpau/libvdpau-1.4.ebuild b/x11-libs/libvdpau/libvdpau-1.4.ebuild new file mode 100644 index 000000000000..d971e801f496 --- /dev/null +++ b/x11-libs/libvdpau/libvdpau-1.4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +VIRTUALX_REQUIRED="test" +inherit flag-o-matic meson virtualx multilib-minimal + +DESCRIPTION="VDPAU wrapper and trace libraries" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/VDPAU" +SRC_URI="https://gitlab.freedesktop.org/vdpau/${PN}/-/archive/${P}/${PN}-${P}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm64 ~x86" +IUSE="doc dri" + +RDEPEND=" + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + dri? ( >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + doc? ( + app-doc/doxygen + media-gfx/graphviz + virtual/latex-base + ) + dri? ( x11-base/xorg-proto ) +" +S=${WORKDIR}/${PN}-${P} + +src_prepare() { + sed -i -e "/^docdir/s|${PN}|${PF}|g" doc/meson.build || die + default +} + +multilib_src_configure() { + append-cppflags -D_GNU_SOURCE + local emesonargs=( + -Ddri2=$(usex dri true false) + -Ddocumentation=$(usex doc true false) + ) + meson_src_configure +} + +multilib_src_compile() { + meson_src_compile +} +multilib_src_test() { + virtx meson_src_test +} + +multilib_src_install() { + meson_src_install + find "${ED}" -name '*.la' -delete || die +} |