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.
gentoo-overlay/x11-libs/libvdpau/libvdpau-1.4.ebuild

50 lines
1.0 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
VIRTUALX_REQUIRED="test"
inherit flag-o-matic meson-multilib virtualx
DESCRIPTION="VDPAU wrapper and trace libraries"
HOMEPAGE="https://www.freedesktop.org/wiki/Software/VDPAU"
SRC_URI="https://gitlab.freedesktop.org/vdpau/${PN}/-/archive/${PV}/${P}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm64 ~riscv x86"
IUSE="doc dri"
RDEPEND="
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
dri? ( >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] )
"
DEPEND="${RDEPEND}
dri? ( x11-base/xorg-proto )
"
BDEPEND="
virtual/pkgconfig
doc? (
app-doc/doxygen
media-gfx/graphviz
virtual/latex-base
)
"
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=(
$(meson_use dri dri2)
$(meson_native_use_bool doc documentation)
)
meson_src_configure
}
multilib_src_test() {
virtx meson_src_test
}