blob: 4b57c2f2b4fa5aa2b5d4e756da94d208aa247519 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/drm.git"
if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git-r3"
fi
inherit ${GIT_ECLASS} meson multilib-minimal
DESCRIPTION="X.Org libdrm library"
HOMEPAGE="https://dri.freedesktop.org/"
if [[ ${PV} = 9999* ]]; then
SRC_URI=""
else
SRC_URI="https://dri.freedesktop.org/libdrm/${P}.tar.bz2"
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
fi
VIDEO_CARDS="amdgpu exynos freedreno intel nouveau omap radeon tegra vc4 vivante vmware"
for card in ${VIDEO_CARDS}; do
IUSE_VIDEO_CARDS+=" video_cards_${card}"
done
IUSE="${IUSE_VIDEO_CARDS} libkms valgrind"
RESTRICT="test" # see bug #236845
LICENSE="MIT"
SLOT="0"
RDEPEND="elibc_FreeBSD? ( >=dev-libs/libpthread-stubs-0.4:=[${MULTILIB_USEDEP}] )
video_cards_intel? ( >=x11-libs/libpciaccess-0.13.1-r1:=[${MULTILIB_USEDEP}] )"
DEPEND="${RDEPEND}
valgrind? ( dev-util/valgrind )"
src_unpack() {
default
[[ $PV = 9999* ]] && git-r3_src_unpack
}
multilib_src_configure() {
local emesonargs=(
# Udev is only used by tests now.
-Dudev=false
-Dcairo-tests=false
-Damdgpu=$(usex video_cards_amdgpu true false)
-Dexynos=$(usex video_cards_exynos true false)
-Dfreedreno=$(usex video_cards_freedreno true false)
-Dintel=$(usex video_cards_intel true false)
-Dnouveau=$(usex video_cards_nouveau true false)
-Domap=$(usex video_cards_omap true false)
-Dradeon=$(usex video_cards_radeon true false)
-Dtegra=$(usex video_cards_tegra true false)
-Dvc4=$(usex video_cards_vc4 true false)
-Detnaviv=$(usex video_cards_vivante true false)
-Dvmwgfx=$(usex video_cards_vmware true false)
-Dlibkms=$(usex libkms true false)
# valgrind installs its .pc file to the pkgconfig for the primary arch
-Dvalgrind=$(usex valgrind auto false)
)
meson_src_configure
}
multilib_src_compile() {
meson_src_compile
}
multilib_src_test() {
meson_src_test
}
multilib_src_install() {
meson_src_install
}
|