Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: media-libs/mesa/
Date: Sun, 30 Apr 2017 02:14:51
Message-Id: 1493518448.b63a1b3cc44935e3698f921de9eefd9c939d2bac.lluixhi@gentoo
1 commit: b63a1b3cc44935e3698f921de9eefd9c939d2bac
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Sun Apr 30 02:14:08 2017 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Sun Apr 30 02:14:08 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=b63a1b3c
7
8 media-libs/mesa: version bump to 17.0.5
9
10 cleanup
11
12 media-libs/mesa/Manifest | 12 +-
13 media-libs/mesa/mesa-13.0.5.ebuild | 3 +-
14 media-libs/mesa/mesa-13.0.6.ebuild | 3 +-
15 media-libs/mesa/mesa-17.0.2.ebuild | 517 ---------------------
16 media-libs/mesa/mesa-17.0.4.ebuild | 517 ---------------------
17 .../{mesa-17.0.3.ebuild => mesa-17.0.5.ebuild} | 3 +-
18 6 files changed, 7 insertions(+), 1048 deletions(-)
19
20 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
21 index 9cbd43d..af02d88 100644
22 --- a/media-libs/mesa/Manifest
23 +++ b/media-libs/mesa/Manifest
24 @@ -4,12 +4,8 @@ AUX mesa-13-clover-Work-around-build-failure-with-AltiVec.patch 2317 SHA256 02dd
25 AUX mesa-13-musl_endian.patch 417 SHA256 3686132ef3a57b607c223705a18f32da7fa7f58fecd5b118f3d7f5df3697cd11 SHA512 6b351de61e0d3ed5cc37233df8f915ca3e3d80291944556124c88408da2471c3b65fb5c355f1e78ca24a8ed1e007e3efd7c7fc52d08b509eaa66fc368b751ab2 WHIRLPOOL 7d1c0cfbb6a914df589c9f41939e6e7054aa6bfe8b2bed79e25a2d1bc44cb4d7b01a21b5e39aeeca27d9ebffdf0fb7f9af651a845316a131826521f11197ffc1
26 DIST mesa-13.0.5.tar.xz 9171480 SHA256 bfcea7e2c801525a60895c8aff11aa68457ee9aa35d01a4638e1f310a3f5ef87 SHA512 db5f6a97b40ee6e45ba81280ab4543354e9f274c7112c5a43b8970244f329902a22f68d5eeddad5b64502507f462ffbcc028efc5dff93822adf95d30ba5903c1 WHIRLPOOL 164116608908331d4e8d69c4d2b92dc22e8e6d98725a20e8c2da5cc24b4e9ae9e05ee9c7209d55371b419e0f4e6c1d4752a46d149a968a6b83612aa77f7e480e
27 DIST mesa-13.0.6.tar.xz 9179236 SHA256 29ef104a7fc082d352b1599bd6cb1d040be424ccd22f5e0eb7ee9b0e9acd3597 SHA512 2455e044647f674c2f1dd524143b61b8630713fa929bbf6fe1c981436a9c08dc933553d638a22b32d2799afb77be746355b48b1b20af172141c5b63891e94441 WHIRLPOOL 1fdaaf29de96225cf41a3bdeb559a35cf20fda524f80985b2bfdc52095dcb7f6b320704b7ccf754a6f80555925a6a80dfa2b1115a4bdd9bdc1ebb672f115208a
28 -DIST mesa-17.0.2.tar.xz 9451056 SHA256 f8f191f909e01e65de38d5bdea5fb057f21649a3aed20948be02348e77a689d4 SHA512 df0cb47d01dee16d1d72e0a5fd9d49ab412294761ca647cbb6b411e16892b8be503d87911591339d4630d16b7c948897bfa4321b2c5a8a4219fa58b347015471 WHIRLPOOL 3cb03a48da994202e6a39f4adc97e8b40f2bcc713f5fb859fbbdc0a068f3842a59bc916fa0e36138cf560c4bf25c3b70425d6ed9ea8096acc8bbd9ddebfd1acc
29 -DIST mesa-17.0.3.tar.xz 9485792 SHA256 ca646f5075a002d60ef9123c8a4331cede155c01712ef945a65c59a5e69fe7ed SHA512 0bcf1609b54fdabb30ec0a500b78e039bd50060c2c7f5a2e57fca29e1a311fb785dadc3cd311018ebe8020d1cc6320181ece2d2aa39d2f215b0ebf2cb0a55165 WHIRLPOOL fdb1d155e3c8aa22ccbe1403240d891381871e6b62cbd104bc83fd5cd6c3645ac58ac88ba3ff0878e7795404fde77481c3374beb60f295569fe020a1389fb853
30 -DIST mesa-17.0.4.tar.xz 9454976 SHA256 1269dc8545a193932a0779b2db5bce9be4a5f6813b98c38b93b372be8362a346 SHA512 0b465dc165b55e4b2ae61aca2d2c6694714522885a14fb61272f73e685aef734be4aac3d58b8d2ceb2643db0578c6187da35fe2cbe41b62a89564e60659b201d WHIRLPOOL 388b54eee22863cff945452b9fcf915348bd338b9f0e3c685236879300e44cff2ce2c9480b950f96c42bc4fddc268af076de01b78492dcd407fcaae3b67d5200
31 -EBUILD mesa-13.0.5.ebuild 13682 SHA256 c0941589335d956bff393fbd26114b2017d1f71fae94e06becaae8a1c52f0b0c SHA512 e407f73610a8d6c7e3456a051dac01bb577a4714128568f276c7e8811b9fc7ac050f29e2770861c1addb561a6828006cfb9f3f18a215448df61b6f9f03f9a7df WHIRLPOOL 71ebf88582419ef5175a04a5ea2d286fe8d2946c95ab354bc2a3a52386ba7100010d5bf92dc9c0c1f0ee4d65353636e2482ef911663b55f932547613d0520b48
32 -EBUILD mesa-13.0.6.ebuild 13608 SHA256 1eec6bc2746825886f65b2ea71742a63c6a1c3822da6e380751248e5e869de2b SHA512 562514a18f7c9a0606ca358404abaaab86ed78671f0056480eaae2d70581a4ed3a96daa28316021a026f4bb7c1b35d32d8d3ec7a4b2af378d0e1e16cb08dc67d WHIRLPOOL 8856f1a7a347b517d4ba74af483c086b3fec49c8cdf62edbc161de9d3eef5e1ce805bbbac16d5ff58b8cb2095558f888d2f65562a9c45a21e15e1ff54c3ed9de
33 -EBUILD mesa-17.0.2.ebuild 13635 SHA256 38045d4ddd3751f2446b74330cc416583d6c5e2cc913c2627e679940477fbca9 SHA512 8981e0da8ca573c6a4a7ef3c7fc565b208c236bfaffe9b5557f2795363f93edea9c1a4ee7fcac93e40e4286077604df6b855f934bad5af631615f3d5badd7313 WHIRLPOOL 5feb6d17ccaf72a14ac88b391b8e5996fe27bc7fb548a32258106b525318297271939743b2e619c3d8ba1e389b3a4f8323ec6c2d4ed1e47775da9068599655f8
34 -EBUILD mesa-17.0.3.ebuild 13635 SHA256 38045d4ddd3751f2446b74330cc416583d6c5e2cc913c2627e679940477fbca9 SHA512 8981e0da8ca573c6a4a7ef3c7fc565b208c236bfaffe9b5557f2795363f93edea9c1a4ee7fcac93e40e4286077604df6b855f934bad5af631615f3d5badd7313 WHIRLPOOL 5feb6d17ccaf72a14ac88b391b8e5996fe27bc7fb548a32258106b525318297271939743b2e619c3d8ba1e389b3a4f8323ec6c2d4ed1e47775da9068599655f8
35 -EBUILD mesa-17.0.4.ebuild 13635 SHA256 38045d4ddd3751f2446b74330cc416583d6c5e2cc913c2627e679940477fbca9 SHA512 8981e0da8ca573c6a4a7ef3c7fc565b208c236bfaffe9b5557f2795363f93edea9c1a4ee7fcac93e40e4286077604df6b855f934bad5af631615f3d5badd7313 WHIRLPOOL 5feb6d17ccaf72a14ac88b391b8e5996fe27bc7fb548a32258106b525318297271939743b2e619c3d8ba1e389b3a4f8323ec6c2d4ed1e47775da9068599655f8
36 +DIST mesa-17.0.5.tar.xz 9492760 SHA256 668efa445d2f57a26e5c096b1965a685733a3b57d9c736f9d6460263847f9bfe SHA512 942fa62c9098bcd030856cd622696eae418f292addb912e1d558cf27d396f25c3f2000dae97a12d1ff233f1ea157497259442082005035bb27b9bafb2cfc33c3 WHIRLPOOL 84ed3198a5f36541ebe966d8375b240be6ff815817b8cd8cf136941122b69df2ab2a5cdad93a255e03653e05c1db805693fa2e58082bf575341acbc9e887b862
37 +EBUILD mesa-13.0.5.ebuild 13658 SHA256 c2d8750e43354a05926dd17e7bba27a9c348ea49d723ed3a0045f5b8dd34f639 SHA512 30af415e1448909b0420080edf24b8006cc55d8b0b70d0d9b6f2c5f5d40b710c5ebb463f1203204de5e7e71bcb68564d490bd61be8c52362e0219d62074eb279 WHIRLPOOL de6f514c8d879c41b7f63429d45790f133b1c60412262f0b38bffc5cae69f8621bbbbc988fc851f5c764a7867a5a22885391f80ab342ff4e84cf5b2bf0798a2c
38 +EBUILD mesa-13.0.6.ebuild 13584 SHA256 3bfff928951edec571894f54fada7bb718e95e94f82806764731d09522b5304d SHA512 1fb15e100deeb50f5de436e2ffe3e131ebe3badb820aa1ddef8cfa691426b42bd3fbe66fd55cd848f9c5f6de9b5dd396f6879813730fb0a234a96a818a71b1cc WHIRLPOOL 6a7d6a0c01a847bfdb8bdeb3fa7ff558e4f3ac77b6f3f4334037ab3098f7763fe26de34378a49a57cbbefdec6ab22952cb0c948517b0885d882e0b92626af585
39 +EBUILD mesa-17.0.5.ebuild 13611 SHA256 06e11aa4c7e3a6bec9294c7028c907c5480dce3ee4c95052491712dbdb91a808 SHA512 0fcfdc77728a7ab3d629bee9f399a59c1d63c593a6987d71f2766c2f3aba813ee6e36795f2d518e3309a14147a093b1616ab2fe0dfcdf43a2fcc498d62fbc0a2 WHIRLPOOL 92aca377f74604808a5ea904dde89bc48f26e3607a8bd3acef00e2eac50f6a011f177a224fbcb542f94cbeebc00e4757aec4abe0e501f19f9263c90b26494deb
40 MISC metadata.xml 2440 SHA256 98874315e8480a14f26b8395eb2573b85dbe402a8bb30a72aa2cc884bc0512a2 SHA512 47237a5fd95a9c58b1857b27da2558ecf46266630eeb7514db2f276f0a8c82a0751122d71a27b4949a1a66df75bbe9e5a833b1f12a86214614e6777849d4c5d8 WHIRLPOOL 5742264ad29f82e98a96044efb74fb230e7a8cc4d58ad569676e8ffc9a86873d5148de86e8a101a11ee465e204cae47f1ec8d50ba8a8c0d75070cb705a03eef8
41
42 diff --git a/media-libs/mesa/mesa-13.0.5.ebuild b/media-libs/mesa/mesa-13.0.5.ebuild
43 index b8fca01..7ba314b 100644
44 --- a/media-libs/mesa/mesa-13.0.5.ebuild
45 +++ b/media-libs/mesa/mesa-13.0.5.ebuild
46 @@ -71,7 +71,6 @@ REQUIRED_USE="
47 video_cards_r600? ( gallium )
48 video_cards_radeonsi? ( gallium llvm )
49 video_cards_vmware? ( gallium )
50 - ${PYTHON_REQUIRED_USE}
51 "
52
53 LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.72"
54 @@ -145,6 +144,7 @@ RDEPEND="${RDEPEND}
55 # FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
56 # LLVM < 3.9 is out of the game
57 DEPEND="${RDEPEND}
58 + ${PYTHON_DEPS}
59 llvm? (
60 video_cards_radeonsi? ( || (
61 sys-devel/llvm[llvm_targets_AMDGPU]
62 @@ -172,7 +172,6 @@ DEPEND="${RDEPEND}
63 [[ ${PV} == 9999 ]] && DEPEND+="
64 sys-devel/bison
65 sys-devel/flex
66 - ${PYTHON_DEPS}
67 $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
68 "
69
70
71 diff --git a/media-libs/mesa/mesa-13.0.6.ebuild b/media-libs/mesa/mesa-13.0.6.ebuild
72 index c24d7d5..1ee7b8b 100644
73 --- a/media-libs/mesa/mesa-13.0.6.ebuild
74 +++ b/media-libs/mesa/mesa-13.0.6.ebuild
75 @@ -71,7 +71,6 @@ REQUIRED_USE="
76 video_cards_r600? ( gallium )
77 video_cards_radeonsi? ( gallium llvm )
78 video_cards_vmware? ( gallium )
79 - ${PYTHON_REQUIRED_USE}
80 "
81
82 LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.72"
83 @@ -145,6 +144,7 @@ RDEPEND="${RDEPEND}
84 # FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
85 # LLVM < 3.9 is out of the game
86 DEPEND="${RDEPEND}
87 + ${PYTHON_DEPS}
88 llvm? (
89 video_cards_radeonsi? ( || (
90 sys-devel/llvm[llvm_targets_AMDGPU]
91 @@ -172,7 +172,6 @@ DEPEND="${RDEPEND}
92 [[ ${PV} == 9999 ]] && DEPEND+="
93 sys-devel/bison
94 sys-devel/flex
95 - ${PYTHON_DEPS}
96 $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
97 "
98
99
100 diff --git a/media-libs/mesa/mesa-17.0.2.ebuild b/media-libs/mesa/mesa-17.0.2.ebuild
101 deleted file mode 100644
102 index 69263ea..0000000
103 --- a/media-libs/mesa/mesa-17.0.2.ebuild
104 +++ /dev/null
105 @@ -1,517 +0,0 @@
106 -# Copyright 1999-2017 Gentoo Foundation
107 -# Distributed under the terms of the GNU General Public License v2
108 -
109 -EAPI=6
110 -
111 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/mesa.git"
112 -
113 -if [[ ${PV} = 9999 ]]; then
114 - GIT_ECLASS="git-r3"
115 - EXPERIMENTAL="true"
116 -fi
117 -
118 -PYTHON_COMPAT=( python2_7 )
119 -
120 -inherit autotools llvm multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS}
121 -
122 -OPENGL_DIR="xorg-x11"
123 -
124 -MY_P="${P/_/-}"
125 -
126 -DESCRIPTION="OpenGL-like graphic library for Linux"
127 -HOMEPAGE="https://www.mesa3d.org/"
128 -
129 -if [[ $PV == 9999 ]]; then
130 - SRC_URI=""
131 -else
132 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
133 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
134 -fi
135 -
136 -LICENSE="MIT"
137 -SLOT="0"
138 -RESTRICT="!bindist? ( bindist )"
139 -
140 -INTEL_CARDS="i915 i965 intel"
141 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
142 -VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno imx nouveau vc4 vivante vmware"
143 -for card in ${VIDEO_CARDS}; do
144 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
145 -done
146 -
147 -IUSE="${IUSE_VIDEO_CARDS}
148 - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm
149 - +nptl opencl osmesa pax_kernel openmax pic selinux vaapi valgrind vdpau
150 - vulkan wayland xvmc xa"
151 -
152 -REQUIRED_USE="
153 - d3d9? ( dri3 gallium )
154 - llvm? ( gallium )
155 - opencl? ( gallium llvm )
156 - openmax? ( gallium )
157 - gles1? ( egl )
158 - gles2? ( egl )
159 - vaapi? ( gallium )
160 - vdpau? ( gallium )
161 - vulkan? ( || ( video_cards_i965 video_cards_radeonsi )
162 - video_cards_radeonsi? ( llvm ) )
163 - wayland? ( egl gbm )
164 - xa? ( gallium )
165 - video_cards_freedreno? ( gallium )
166 - video_cards_intel? ( classic )
167 - video_cards_i915? ( || ( classic gallium ) )
168 - video_cards_i965? ( classic )
169 - video_cards_imx? ( gallium )
170 - video_cards_nouveau? ( || ( classic gallium ) )
171 - video_cards_radeon? ( || ( classic gallium )
172 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
173 - video_cards_r100? ( classic )
174 - video_cards_r200? ( classic )
175 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
176 - video_cards_r600? ( gallium )
177 - video_cards_radeonsi? ( gallium llvm )
178 - video_cards_vivante? ( gallium gbm )
179 - video_cards_vmware? ( gallium )
180 - ${PYTHON_REQUIRED_USE}
181 -"
182 -
183 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.74"
184 -# keep correct libdrm and dri2proto dep
185 -# keep blocks in rdepend for binpkg
186 -RDEPEND="
187 - !<x11-base/xorg-server-1.7
188 - !<=x11-proto/xf86driproto-2.0.3
189 - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )
190 - classic? ( app-eselect/eselect-mesa )
191 - gallium? ( app-eselect/eselect-mesa )
192 - >=app-eselect/eselect-opengl-1.3.0
193 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
194 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
195 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
196 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
197 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
198 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
199 - >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}]
200 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
201 - llvm? (
202 - video_cards_radeonsi? (
203 - virtual/libelf:0=[${MULTILIB_USEDEP}]
204 - vulkan? (
205 - || (
206 - sys-devel/llvm:4[${MULTILIB_USEDEP}]
207 - >=sys-devel/llvm-3.9.0:0[${MULTILIB_USEDEP}] ) )
208 - )
209 - video_cards_r600? (
210 - virtual/libelf:0=[${MULTILIB_USEDEP}]
211 - )
212 - video_cards_radeon? (
213 - virtual/libelf:0=[${MULTILIB_USEDEP}]
214 - )
215 - || (
216 - sys-devel/llvm:4[${MULTILIB_USEDEP}]
217 - >=sys-devel/llvm-3.6.0:0[${MULTILIB_USEDEP}]
218 - )
219 - <sys-devel/llvm-5:=[${MULTILIB_USEDEP}]
220 - )
221 - opencl? (
222 - app-eselect/eselect-opencl
223 - dev-libs/libclc
224 - virtual/libelf:0=[${MULTILIB_USEDEP}]
225 - )
226 - openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] )
227 - vaapi? (
228 - >=x11-libs/libva-1.6.0:=[${MULTILIB_USEDEP}]
229 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
230 - )
231 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
232 - wayland? ( >=dev-libs/wayland-1.11.0:=[${MULTILIB_USEDEP}] )
233 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
234 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
235 -"
236 -for card in ${INTEL_CARDS}; do
237 - RDEPEND="${RDEPEND}
238 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
239 - "
240 -done
241 -
242 -for card in ${RADEON_CARDS}; do
243 - RDEPEND="${RDEPEND}
244 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
245 - "
246 -done
247 -RDEPEND="${RDEPEND}
248 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
249 -"
250 -
251 -# FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
252 -# LLVM < 3.9 is out of the game
253 -DEPEND="${RDEPEND}
254 - llvm? (
255 - video_cards_radeonsi? ( || (
256 - sys-devel/llvm[llvm_targets_AMDGPU]
257 - sys-devel/llvm[video_cards_radeon]
258 - ) )
259 - )
260 - opencl? (
261 - || (
262 - sys-devel/llvm:4[${MULTILIB_USEDEP}]
263 - >=sys-devel/llvm-3.6.0:0[${MULTILIB_USEDEP}]
264 - )
265 - || (
266 - sys-devel/clang:4[${MULTILIB_USEDEP}]
267 - >=sys-devel/clang-3.6.0:0[${MULTILIB_USEDEP}]
268 - )
269 - >=sys-devel/gcc-4.6
270 - )
271 - sys-devel/gettext
272 - virtual/pkgconfig
273 - valgrind? ( dev-util/valgrind )
274 - >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
275 - dri3? (
276 - >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
277 - >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}]
278 - )
279 - >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}]
280 - >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}]
281 - >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}]
282 - >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}]
283 -"
284 -[[ ${PV} == 9999 ]] && DEPEND+="
285 - sys-devel/bison
286 - sys-devel/flex
287 - ${PYTHON_DEPS}
288 - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
289 -"
290 -
291 -S="${WORKDIR}/${MY_P}"
292 -EGIT_CHECKOUT_DIR=${S}
293 -
294 -QA_WX_LOAD="
295 -x86? (
296 - !pic? (
297 - usr/lib*/libglapi.so.0.0.0
298 - usr/lib*/libGLESv1_CM.so.1.1.0
299 - usr/lib*/libGLESv2.so.2.0.0
300 - usr/lib*/libGL.so.1.2.0
301 - usr/lib*/libOSMesa.so.8.0.0
302 - )
303 -)"
304 -
305 -pkg_setup() {
306 - # warning message for bug 459306
307 - if use llvm && has_version sys-devel/llvm[!debug=]; then
308 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
309 - ewarn "detected! This can cause problems. For details, see bug 459306."
310 - fi
311 -
312 - if use llvm || use opencl; then
313 - LLVM_MAX_SLOT=4 llvm_pkg_setup
314 - fi
315 - python-any-r1_pkg_setup
316 -}
317 -
318 -src_prepare() {
319 - eapply "${FILESDIR}"/${PN}-11-execinfo.patch
320 - eapply "${FILESDIR}"/${PN}-13-musl_endian.patch
321 -
322 - eautoreconf
323 -
324 - eapply_user
325 -}
326 -
327 -multilib_src_configure() {
328 - local myconf
329 -
330 - if use classic; then
331 - # Configurable DRI drivers
332 - driver_enable swrast
333 -
334 - # Intel code
335 - driver_enable video_cards_i915 i915
336 - driver_enable video_cards_i965 i965
337 - if ! use video_cards_i915 && \
338 - ! use video_cards_i965; then
339 - driver_enable video_cards_intel i915 i965
340 - fi
341 -
342 - # Nouveau code
343 - driver_enable video_cards_nouveau nouveau
344 -
345 - # ATI code
346 - driver_enable video_cards_r100 radeon
347 - driver_enable video_cards_r200 r200
348 - if ! use video_cards_r100 && \
349 - ! use video_cards_r200; then
350 - driver_enable video_cards_radeon radeon r200
351 - fi
352 - fi
353 -
354 - if use egl; then
355 - myconf+=" --with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm")"
356 - fi
357 -
358 - if use gallium; then
359 - myconf+="
360 - $(use_enable d3d9 nine)
361 - $(use_enable llvm gallium-llvm)
362 - $(use_enable openmax omx)
363 - $(use_enable vaapi va)
364 - $(use_enable vdpau)
365 - $(use_enable xa)
366 - $(use_enable xvmc)
367 - "
368 - use vaapi && myconf+=" --with-va-libdir=/usr/$(get_libdir)/va/drivers"
369 -
370 - gallium_enable swrast
371 - gallium_enable video_cards_vc4 vc4
372 - gallium_enable video_cards_vivante etnaviv
373 - gallium_enable video_cards_vmware svga
374 - gallium_enable video_cards_nouveau nouveau
375 - gallium_enable video_cards_i915 i915
376 - gallium_enable video_cards_imx imx
377 - if ! use video_cards_i915 && \
378 - ! use video_cards_i965; then
379 - gallium_enable video_cards_intel i915
380 - fi
381 -
382 - gallium_enable video_cards_r300 r300
383 - gallium_enable video_cards_r600 r600
384 - gallium_enable video_cards_radeonsi radeonsi
385 - if ! use video_cards_r300 && \
386 - ! use video_cards_r600; then
387 - gallium_enable video_cards_radeon r300 r600
388 - fi
389 -
390 - gallium_enable video_cards_freedreno freedreno
391 - # opencl stuff
392 - if use opencl; then
393 - myconf+="
394 - $(use_enable opencl)
395 - --with-clang-libdir="${EPREFIX}/usr/lib"
396 - "
397 - fi
398 - fi
399 -
400 - if use vulkan; then
401 - vulkan_enable video_cards_i965 intel
402 - vulkan_enable video_cards_radeonsi radeon
403 - fi
404 -
405 - # x86 hardened pax_kernel needs glx-rts, bug 240956
406 - if [[ ${ABI} == x86 ]]; then
407 - myconf+=" $(use_enable pax_kernel glx-read-only-text)"
408 - fi
409 -
410 - # on abi_x86_32 hardened we need to have asm disable
411 - if [[ ${ABI} == x86* ]] && use pic; then
412 - myconf+=" --disable-asm"
413 - fi
414 -
415 - if use gallium; then
416 - myconf+=" $(use_enable osmesa gallium-osmesa)"
417 - else
418 - myconf+=" $(use_enable osmesa)"
419 - fi
420 -
421 - # build fails with BSD indent, bug #428112
422 - use userland_GNU || export INDENT=cat
423 -
424 - ECONF_SOURCE="${S}" \
425 - econf \
426 - --enable-dri \
427 - --enable-glx \
428 - --enable-shared-glapi \
429 - $(use_enable !bindist texture-float) \
430 - $(use_enable d3d9 nine) \
431 - $(use_enable debug) \
432 - $(use_enable dri3) \
433 - $(use_enable egl) \
434 - $(use_enable gbm) \
435 - $(use_enable gles1) \
436 - $(use_enable gles2) \
437 - $(use_enable nptl glx-tls) \
438 - --enable-valgrind=$(usex valgrind auto no) \
439 - --enable-llvm-shared-libs \
440 - --with-dri-drivers=${DRI_DRIVERS} \
441 - --with-gallium-drivers=${GALLIUM_DRIVERS} \
442 - --with-vulkan-drivers=${VULKAN_DRIVERS} \
443 - PYTHON2="${PYTHON}" \
444 - ${myconf}
445 -}
446 -
447 -multilib_src_install() {
448 - emake install DESTDIR="${D}"
449 -
450 - if use classic || use gallium; then
451 - ebegin "Moving DRI/Gallium drivers for dynamic switching"
452 - local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
453 - keepdir /usr/$(get_libdir)/dri
454 - dodir /usr/$(get_libdir)/mesa
455 - for x in ${gallium_drivers[@]}; do
456 - if [ -f "$(get_libdir)/gallium/${x}" ]; then
457 - mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
458 - || die "Failed to move ${x}"
459 - fi
460 - done
461 - if use classic; then
462 - emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install
463 - fi
464 - for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
465 - if [ -f ${x} -o -L ${x} ]; then
466 - mv -f "${x}" "${x/dri/mesa}" \
467 - || die "Failed to move ${x}"
468 - fi
469 - done
470 - pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
471 - ln -s ../mesa/*.so . || die "Creating symlink failed"
472 - # remove symlinks to drivers known to eselect
473 - for x in ${gallium_drivers[@]}; do
474 - if [ -f ${x} -o -L ${x} ]; then
475 - rm "${x}" || die "Failed to remove ${x}"
476 - fi
477 - done
478 - popd
479 - eend $?
480 - fi
481 - if use opencl; then
482 - ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
483 - local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
484 - dodir ${cl_dir}/{lib,include}
485 - if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
486 - mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
487 - "${ED}"${cl_dir}
488 - fi
489 - if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
490 - mv -f "${ED}"/usr/include/CL \
491 - "${ED}"${cl_dir}/include
492 - fi
493 - eend $?
494 - fi
495 -
496 - if use openmax; then
497 - echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx"
498 - doenvd "${T}"/99mesaxdgomx
499 - keepdir /usr/share/mesa/xdg
500 - fi
501 -}
502 -
503 -multilib_src_install_all() {
504 - find "${ED}" -name '*.la' -delete
505 - einstalldocs
506 -
507 - if use !bindist; then
508 - dodoc docs/patents.txt
509 - fi
510 -
511 - # Install config file for eselect mesa
512 - insinto /usr/share/mesa
513 - newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
514 -}
515 -
516 -multilib_src_test() {
517 - if use llvm; then
518 - local llvm_tests='lp_test_arit lp_test_arit lp_test_blend lp_test_blend lp_test_conv lp_test_conv lp_test_format lp_test_format lp_test_printf lp_test_printf'
519 - pushd src/gallium/drivers/llvmpipe >/dev/null || die
520 - emake ${llvm_tests}
521 - pax-mark m ${llvm_tests}
522 - popd >/dev/null || die
523 - fi
524 - emake check
525 -}
526 -
527 -pkg_postinst() {
528 - # Switch to the xorg implementation.
529 - echo
530 - eselect opengl set --use-old ${OPENGL_DIR}
531 -
532 - # Select classic/gallium drivers
533 - if use classic || use gallium; then
534 - eselect mesa set --auto
535 - fi
536 -
537 - # Switch to mesa opencl
538 - if use opencl; then
539 - eselect opencl set --use-old ${PN}
540 - fi
541 -
542 - # run omxregister-bellagio to make the OpenMAX drivers known system-wide
543 - if use openmax; then
544 - ebegin "Registering OpenMAX drivers"
545 - BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \
546 - OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \
547 - omxregister-bellagio
548 - eend $?
549 - fi
550 -
551 - # warn about patent encumbered texture-float
552 - if use !bindist; then
553 - elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
554 - elog "enabled. Please see patents.txt for an explanation."
555 - fi
556 -
557 - if ! has_version media-libs/libtxc_dxtn; then
558 - elog "Note that in order to have full S3TC support, it is necessary to install"
559 - elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
560 - elog "textures in some apps, and some others even require this to run."
561 - fi
562 -}
563 -
564 -pkg_prerm() {
565 - if use openmax; then
566 - rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister
567 - fi
568 -}
569 -
570 -# $1 - VIDEO_CARDS flag
571 -# other args - names of DRI drivers to enable
572 -# TODO: avoid code duplication for a more elegant implementation
573 -driver_enable() {
574 - case $# in
575 - # for enabling unconditionally
576 - 1)
577 - DRI_DRIVERS+=",$1"
578 - ;;
579 - *)
580 - if use $1; then
581 - shift
582 - for i in $@; do
583 - DRI_DRIVERS+=",${i}"
584 - done
585 - fi
586 - ;;
587 - esac
588 -}
589 -
590 -gallium_enable() {
591 - case $# in
592 - # for enabling unconditionally
593 - 1)
594 - GALLIUM_DRIVERS+=",$1"
595 - ;;
596 - *)
597 - if use $1; then
598 - shift
599 - for i in $@; do
600 - GALLIUM_DRIVERS+=",${i}"
601 - done
602 - fi
603 - ;;
604 - esac
605 -}
606 -
607 -vulkan_enable() {
608 - case $# in
609 - # for enabling unconditionally
610 - 1)
611 - VULKAN_DRIVERS+=",$1"
612 - ;;
613 - *)
614 - if use $1; then
615 - shift
616 - for i in $@; do
617 - VULKAN_DRIVERS+=",${i}"
618 - done
619 - fi
620 - ;;
621 - esac
622 -}
623
624 diff --git a/media-libs/mesa/mesa-17.0.4.ebuild b/media-libs/mesa/mesa-17.0.4.ebuild
625 deleted file mode 100644
626 index 69263ea..0000000
627 --- a/media-libs/mesa/mesa-17.0.4.ebuild
628 +++ /dev/null
629 @@ -1,517 +0,0 @@
630 -# Copyright 1999-2017 Gentoo Foundation
631 -# Distributed under the terms of the GNU General Public License v2
632 -
633 -EAPI=6
634 -
635 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/mesa.git"
636 -
637 -if [[ ${PV} = 9999 ]]; then
638 - GIT_ECLASS="git-r3"
639 - EXPERIMENTAL="true"
640 -fi
641 -
642 -PYTHON_COMPAT=( python2_7 )
643 -
644 -inherit autotools llvm multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS}
645 -
646 -OPENGL_DIR="xorg-x11"
647 -
648 -MY_P="${P/_/-}"
649 -
650 -DESCRIPTION="OpenGL-like graphic library for Linux"
651 -HOMEPAGE="https://www.mesa3d.org/"
652 -
653 -if [[ $PV == 9999 ]]; then
654 - SRC_URI=""
655 -else
656 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
657 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
658 -fi
659 -
660 -LICENSE="MIT"
661 -SLOT="0"
662 -RESTRICT="!bindist? ( bindist )"
663 -
664 -INTEL_CARDS="i915 i965 intel"
665 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
666 -VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno imx nouveau vc4 vivante vmware"
667 -for card in ${VIDEO_CARDS}; do
668 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
669 -done
670 -
671 -IUSE="${IUSE_VIDEO_CARDS}
672 - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm
673 - +nptl opencl osmesa pax_kernel openmax pic selinux vaapi valgrind vdpau
674 - vulkan wayland xvmc xa"
675 -
676 -REQUIRED_USE="
677 - d3d9? ( dri3 gallium )
678 - llvm? ( gallium )
679 - opencl? ( gallium llvm )
680 - openmax? ( gallium )
681 - gles1? ( egl )
682 - gles2? ( egl )
683 - vaapi? ( gallium )
684 - vdpau? ( gallium )
685 - vulkan? ( || ( video_cards_i965 video_cards_radeonsi )
686 - video_cards_radeonsi? ( llvm ) )
687 - wayland? ( egl gbm )
688 - xa? ( gallium )
689 - video_cards_freedreno? ( gallium )
690 - video_cards_intel? ( classic )
691 - video_cards_i915? ( || ( classic gallium ) )
692 - video_cards_i965? ( classic )
693 - video_cards_imx? ( gallium )
694 - video_cards_nouveau? ( || ( classic gallium ) )
695 - video_cards_radeon? ( || ( classic gallium )
696 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
697 - video_cards_r100? ( classic )
698 - video_cards_r200? ( classic )
699 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
700 - video_cards_r600? ( gallium )
701 - video_cards_radeonsi? ( gallium llvm )
702 - video_cards_vivante? ( gallium gbm )
703 - video_cards_vmware? ( gallium )
704 - ${PYTHON_REQUIRED_USE}
705 -"
706 -
707 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.74"
708 -# keep correct libdrm and dri2proto dep
709 -# keep blocks in rdepend for binpkg
710 -RDEPEND="
711 - !<x11-base/xorg-server-1.7
712 - !<=x11-proto/xf86driproto-2.0.3
713 - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )
714 - classic? ( app-eselect/eselect-mesa )
715 - gallium? ( app-eselect/eselect-mesa )
716 - >=app-eselect/eselect-opengl-1.3.0
717 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
718 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
719 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
720 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
721 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
722 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
723 - >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}]
724 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
725 - llvm? (
726 - video_cards_radeonsi? (
727 - virtual/libelf:0=[${MULTILIB_USEDEP}]
728 - vulkan? (
729 - || (
730 - sys-devel/llvm:4[${MULTILIB_USEDEP}]
731 - >=sys-devel/llvm-3.9.0:0[${MULTILIB_USEDEP}] ) )
732 - )
733 - video_cards_r600? (
734 - virtual/libelf:0=[${MULTILIB_USEDEP}]
735 - )
736 - video_cards_radeon? (
737 - virtual/libelf:0=[${MULTILIB_USEDEP}]
738 - )
739 - || (
740 - sys-devel/llvm:4[${MULTILIB_USEDEP}]
741 - >=sys-devel/llvm-3.6.0:0[${MULTILIB_USEDEP}]
742 - )
743 - <sys-devel/llvm-5:=[${MULTILIB_USEDEP}]
744 - )
745 - opencl? (
746 - app-eselect/eselect-opencl
747 - dev-libs/libclc
748 - virtual/libelf:0=[${MULTILIB_USEDEP}]
749 - )
750 - openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] )
751 - vaapi? (
752 - >=x11-libs/libva-1.6.0:=[${MULTILIB_USEDEP}]
753 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
754 - )
755 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
756 - wayland? ( >=dev-libs/wayland-1.11.0:=[${MULTILIB_USEDEP}] )
757 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
758 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
759 -"
760 -for card in ${INTEL_CARDS}; do
761 - RDEPEND="${RDEPEND}
762 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
763 - "
764 -done
765 -
766 -for card in ${RADEON_CARDS}; do
767 - RDEPEND="${RDEPEND}
768 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
769 - "
770 -done
771 -RDEPEND="${RDEPEND}
772 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
773 -"
774 -
775 -# FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
776 -# LLVM < 3.9 is out of the game
777 -DEPEND="${RDEPEND}
778 - llvm? (
779 - video_cards_radeonsi? ( || (
780 - sys-devel/llvm[llvm_targets_AMDGPU]
781 - sys-devel/llvm[video_cards_radeon]
782 - ) )
783 - )
784 - opencl? (
785 - || (
786 - sys-devel/llvm:4[${MULTILIB_USEDEP}]
787 - >=sys-devel/llvm-3.6.0:0[${MULTILIB_USEDEP}]
788 - )
789 - || (
790 - sys-devel/clang:4[${MULTILIB_USEDEP}]
791 - >=sys-devel/clang-3.6.0:0[${MULTILIB_USEDEP}]
792 - )
793 - >=sys-devel/gcc-4.6
794 - )
795 - sys-devel/gettext
796 - virtual/pkgconfig
797 - valgrind? ( dev-util/valgrind )
798 - >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
799 - dri3? (
800 - >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
801 - >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}]
802 - )
803 - >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}]
804 - >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}]
805 - >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}]
806 - >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}]
807 -"
808 -[[ ${PV} == 9999 ]] && DEPEND+="
809 - sys-devel/bison
810 - sys-devel/flex
811 - ${PYTHON_DEPS}
812 - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
813 -"
814 -
815 -S="${WORKDIR}/${MY_P}"
816 -EGIT_CHECKOUT_DIR=${S}
817 -
818 -QA_WX_LOAD="
819 -x86? (
820 - !pic? (
821 - usr/lib*/libglapi.so.0.0.0
822 - usr/lib*/libGLESv1_CM.so.1.1.0
823 - usr/lib*/libGLESv2.so.2.0.0
824 - usr/lib*/libGL.so.1.2.0
825 - usr/lib*/libOSMesa.so.8.0.0
826 - )
827 -)"
828 -
829 -pkg_setup() {
830 - # warning message for bug 459306
831 - if use llvm && has_version sys-devel/llvm[!debug=]; then
832 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
833 - ewarn "detected! This can cause problems. For details, see bug 459306."
834 - fi
835 -
836 - if use llvm || use opencl; then
837 - LLVM_MAX_SLOT=4 llvm_pkg_setup
838 - fi
839 - python-any-r1_pkg_setup
840 -}
841 -
842 -src_prepare() {
843 - eapply "${FILESDIR}"/${PN}-11-execinfo.patch
844 - eapply "${FILESDIR}"/${PN}-13-musl_endian.patch
845 -
846 - eautoreconf
847 -
848 - eapply_user
849 -}
850 -
851 -multilib_src_configure() {
852 - local myconf
853 -
854 - if use classic; then
855 - # Configurable DRI drivers
856 - driver_enable swrast
857 -
858 - # Intel code
859 - driver_enable video_cards_i915 i915
860 - driver_enable video_cards_i965 i965
861 - if ! use video_cards_i915 && \
862 - ! use video_cards_i965; then
863 - driver_enable video_cards_intel i915 i965
864 - fi
865 -
866 - # Nouveau code
867 - driver_enable video_cards_nouveau nouveau
868 -
869 - # ATI code
870 - driver_enable video_cards_r100 radeon
871 - driver_enable video_cards_r200 r200
872 - if ! use video_cards_r100 && \
873 - ! use video_cards_r200; then
874 - driver_enable video_cards_radeon radeon r200
875 - fi
876 - fi
877 -
878 - if use egl; then
879 - myconf+=" --with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm")"
880 - fi
881 -
882 - if use gallium; then
883 - myconf+="
884 - $(use_enable d3d9 nine)
885 - $(use_enable llvm gallium-llvm)
886 - $(use_enable openmax omx)
887 - $(use_enable vaapi va)
888 - $(use_enable vdpau)
889 - $(use_enable xa)
890 - $(use_enable xvmc)
891 - "
892 - use vaapi && myconf+=" --with-va-libdir=/usr/$(get_libdir)/va/drivers"
893 -
894 - gallium_enable swrast
895 - gallium_enable video_cards_vc4 vc4
896 - gallium_enable video_cards_vivante etnaviv
897 - gallium_enable video_cards_vmware svga
898 - gallium_enable video_cards_nouveau nouveau
899 - gallium_enable video_cards_i915 i915
900 - gallium_enable video_cards_imx imx
901 - if ! use video_cards_i915 && \
902 - ! use video_cards_i965; then
903 - gallium_enable video_cards_intel i915
904 - fi
905 -
906 - gallium_enable video_cards_r300 r300
907 - gallium_enable video_cards_r600 r600
908 - gallium_enable video_cards_radeonsi radeonsi
909 - if ! use video_cards_r300 && \
910 - ! use video_cards_r600; then
911 - gallium_enable video_cards_radeon r300 r600
912 - fi
913 -
914 - gallium_enable video_cards_freedreno freedreno
915 - # opencl stuff
916 - if use opencl; then
917 - myconf+="
918 - $(use_enable opencl)
919 - --with-clang-libdir="${EPREFIX}/usr/lib"
920 - "
921 - fi
922 - fi
923 -
924 - if use vulkan; then
925 - vulkan_enable video_cards_i965 intel
926 - vulkan_enable video_cards_radeonsi radeon
927 - fi
928 -
929 - # x86 hardened pax_kernel needs glx-rts, bug 240956
930 - if [[ ${ABI} == x86 ]]; then
931 - myconf+=" $(use_enable pax_kernel glx-read-only-text)"
932 - fi
933 -
934 - # on abi_x86_32 hardened we need to have asm disable
935 - if [[ ${ABI} == x86* ]] && use pic; then
936 - myconf+=" --disable-asm"
937 - fi
938 -
939 - if use gallium; then
940 - myconf+=" $(use_enable osmesa gallium-osmesa)"
941 - else
942 - myconf+=" $(use_enable osmesa)"
943 - fi
944 -
945 - # build fails with BSD indent, bug #428112
946 - use userland_GNU || export INDENT=cat
947 -
948 - ECONF_SOURCE="${S}" \
949 - econf \
950 - --enable-dri \
951 - --enable-glx \
952 - --enable-shared-glapi \
953 - $(use_enable !bindist texture-float) \
954 - $(use_enable d3d9 nine) \
955 - $(use_enable debug) \
956 - $(use_enable dri3) \
957 - $(use_enable egl) \
958 - $(use_enable gbm) \
959 - $(use_enable gles1) \
960 - $(use_enable gles2) \
961 - $(use_enable nptl glx-tls) \
962 - --enable-valgrind=$(usex valgrind auto no) \
963 - --enable-llvm-shared-libs \
964 - --with-dri-drivers=${DRI_DRIVERS} \
965 - --with-gallium-drivers=${GALLIUM_DRIVERS} \
966 - --with-vulkan-drivers=${VULKAN_DRIVERS} \
967 - PYTHON2="${PYTHON}" \
968 - ${myconf}
969 -}
970 -
971 -multilib_src_install() {
972 - emake install DESTDIR="${D}"
973 -
974 - if use classic || use gallium; then
975 - ebegin "Moving DRI/Gallium drivers for dynamic switching"
976 - local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
977 - keepdir /usr/$(get_libdir)/dri
978 - dodir /usr/$(get_libdir)/mesa
979 - for x in ${gallium_drivers[@]}; do
980 - if [ -f "$(get_libdir)/gallium/${x}" ]; then
981 - mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
982 - || die "Failed to move ${x}"
983 - fi
984 - done
985 - if use classic; then
986 - emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install
987 - fi
988 - for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
989 - if [ -f ${x} -o -L ${x} ]; then
990 - mv -f "${x}" "${x/dri/mesa}" \
991 - || die "Failed to move ${x}"
992 - fi
993 - done
994 - pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
995 - ln -s ../mesa/*.so . || die "Creating symlink failed"
996 - # remove symlinks to drivers known to eselect
997 - for x in ${gallium_drivers[@]}; do
998 - if [ -f ${x} -o -L ${x} ]; then
999 - rm "${x}" || die "Failed to remove ${x}"
1000 - fi
1001 - done
1002 - popd
1003 - eend $?
1004 - fi
1005 - if use opencl; then
1006 - ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
1007 - local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
1008 - dodir ${cl_dir}/{lib,include}
1009 - if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
1010 - mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
1011 - "${ED}"${cl_dir}
1012 - fi
1013 - if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
1014 - mv -f "${ED}"/usr/include/CL \
1015 - "${ED}"${cl_dir}/include
1016 - fi
1017 - eend $?
1018 - fi
1019 -
1020 - if use openmax; then
1021 - echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx"
1022 - doenvd "${T}"/99mesaxdgomx
1023 - keepdir /usr/share/mesa/xdg
1024 - fi
1025 -}
1026 -
1027 -multilib_src_install_all() {
1028 - find "${ED}" -name '*.la' -delete
1029 - einstalldocs
1030 -
1031 - if use !bindist; then
1032 - dodoc docs/patents.txt
1033 - fi
1034 -
1035 - # Install config file for eselect mesa
1036 - insinto /usr/share/mesa
1037 - newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
1038 -}
1039 -
1040 -multilib_src_test() {
1041 - if use llvm; then
1042 - local llvm_tests='lp_test_arit lp_test_arit lp_test_blend lp_test_blend lp_test_conv lp_test_conv lp_test_format lp_test_format lp_test_printf lp_test_printf'
1043 - pushd src/gallium/drivers/llvmpipe >/dev/null || die
1044 - emake ${llvm_tests}
1045 - pax-mark m ${llvm_tests}
1046 - popd >/dev/null || die
1047 - fi
1048 - emake check
1049 -}
1050 -
1051 -pkg_postinst() {
1052 - # Switch to the xorg implementation.
1053 - echo
1054 - eselect opengl set --use-old ${OPENGL_DIR}
1055 -
1056 - # Select classic/gallium drivers
1057 - if use classic || use gallium; then
1058 - eselect mesa set --auto
1059 - fi
1060 -
1061 - # Switch to mesa opencl
1062 - if use opencl; then
1063 - eselect opencl set --use-old ${PN}
1064 - fi
1065 -
1066 - # run omxregister-bellagio to make the OpenMAX drivers known system-wide
1067 - if use openmax; then
1068 - ebegin "Registering OpenMAX drivers"
1069 - BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \
1070 - OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \
1071 - omxregister-bellagio
1072 - eend $?
1073 - fi
1074 -
1075 - # warn about patent encumbered texture-float
1076 - if use !bindist; then
1077 - elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
1078 - elog "enabled. Please see patents.txt for an explanation."
1079 - fi
1080 -
1081 - if ! has_version media-libs/libtxc_dxtn; then
1082 - elog "Note that in order to have full S3TC support, it is necessary to install"
1083 - elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
1084 - elog "textures in some apps, and some others even require this to run."
1085 - fi
1086 -}
1087 -
1088 -pkg_prerm() {
1089 - if use openmax; then
1090 - rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister
1091 - fi
1092 -}
1093 -
1094 -# $1 - VIDEO_CARDS flag
1095 -# other args - names of DRI drivers to enable
1096 -# TODO: avoid code duplication for a more elegant implementation
1097 -driver_enable() {
1098 - case $# in
1099 - # for enabling unconditionally
1100 - 1)
1101 - DRI_DRIVERS+=",$1"
1102 - ;;
1103 - *)
1104 - if use $1; then
1105 - shift
1106 - for i in $@; do
1107 - DRI_DRIVERS+=",${i}"
1108 - done
1109 - fi
1110 - ;;
1111 - esac
1112 -}
1113 -
1114 -gallium_enable() {
1115 - case $# in
1116 - # for enabling unconditionally
1117 - 1)
1118 - GALLIUM_DRIVERS+=",$1"
1119 - ;;
1120 - *)
1121 - if use $1; then
1122 - shift
1123 - for i in $@; do
1124 - GALLIUM_DRIVERS+=",${i}"
1125 - done
1126 - fi
1127 - ;;
1128 - esac
1129 -}
1130 -
1131 -vulkan_enable() {
1132 - case $# in
1133 - # for enabling unconditionally
1134 - 1)
1135 - VULKAN_DRIVERS+=",$1"
1136 - ;;
1137 - *)
1138 - if use $1; then
1139 - shift
1140 - for i in $@; do
1141 - VULKAN_DRIVERS+=",${i}"
1142 - done
1143 - fi
1144 - ;;
1145 - esac
1146 -}
1147
1148 diff --git a/media-libs/mesa/mesa-17.0.3.ebuild b/media-libs/mesa/mesa-17.0.5.ebuild
1149 similarity index 99%
1150 rename from media-libs/mesa/mesa-17.0.3.ebuild
1151 rename to media-libs/mesa/mesa-17.0.5.ebuild
1152 index 69263ea..2754679 100644
1153 --- a/media-libs/mesa/mesa-17.0.3.ebuild
1154 +++ b/media-libs/mesa/mesa-17.0.5.ebuild
1155 @@ -72,7 +72,6 @@ REQUIRED_USE="
1156 video_cards_radeonsi? ( gallium llvm )
1157 video_cards_vivante? ( gallium gbm )
1158 video_cards_vmware? ( gallium )
1159 - ${PYTHON_REQUIRED_USE}
1160 "
1161
1162 LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.74"
1163 @@ -146,6 +145,7 @@ RDEPEND="${RDEPEND}
1164 # FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
1165 # LLVM < 3.9 is out of the game
1166 DEPEND="${RDEPEND}
1167 + ${PYTHON_DEPS}
1168 llvm? (
1169 video_cards_radeonsi? ( || (
1170 sys-devel/llvm[llvm_targets_AMDGPU]
1171 @@ -179,7 +179,6 @@ DEPEND="${RDEPEND}
1172 [[ ${PV} == 9999 ]] && DEPEND+="
1173 sys-devel/bison
1174 sys-devel/flex
1175 - ${PYTHON_DEPS}
1176 $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
1177 "