blob: 2817d03b96386da6e31831922ad055733b79c398 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# 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 git-r3 meson-multilib virtualx
DESCRIPTION="VDPAU wrapper and trace libraries"
HOMEPAGE="https://www.freedesktop.org/wiki/Software/VDPAU"
EGIT_REPO_URI="https://gitlab.freedesktop.org/vdpau/${PN}/"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
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
}
|