1 |
commit: 29386f5cbe7532838f7ed9e50528c899b36b261c |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 16:05:20 2021 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 16:07:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29386f5c |
7 |
|
8 |
media-tv/kodi: use CPU_FLAGS_* flags |
9 |
|
10 |
Compile Kodi according to CPU_FLAGS_* USE expand flags instead of |
11 |
compile-time detected host CPU features |
12 |
|
13 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
14 |
Signed-off-by: Evgeny Grin <k2k <AT> narod.ru> |
15 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
16 |
|
17 |
media-tv/kodi/kodi-9999.ebuild | 9 +++++++++ |
18 |
1 file changed, 9 insertions(+) |
19 |
|
20 |
diff --git a/media-tv/kodi/kodi-9999.ebuild b/media-tv/kodi/kodi-9999.ebuild |
21 |
index 5b80fb84d04..b752b9ffc6e 100644 |
22 |
--- a/media-tv/kodi/kodi-9999.ebuild |
23 |
+++ b/media-tv/kodi/kodi-9999.ebuild |
24 |
@@ -40,6 +40,7 @@ SLOT="0" |
25 |
# it is _required_ for USB support. Otherwise they'll disable udev and |
26 |
# that's going to be worse. |
27 |
IUSE="airplay alsa bluetooth bluray caps cec +css dav1d dbus dvd gbm gles lcms libressl libusb lirc mariadb mysql nfs +opengl power-control pulseaudio raspberry-pi samba systemd +system-ffmpeg test udf udev udisks upnp upower vaapi vdpau wayland webserver +X +xslt zeroconf" |
28 |
+IUSE="${IUSE} cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_arm_neon" |
29 |
REQUIRED_USE=" |
30 |
${PYTHON_REQUIRED_USE} |
31 |
|| ( gles opengl ) |
32 |
@@ -224,6 +225,14 @@ src_configure() { |
33 |
use X && platform+=( x11 ) |
34 |
local core_platform_name="${platform[@]}" |
35 |
local mycmakeargs=( |
36 |
+ -DENABLE_SSE=$(usex cpu_flags_x86_sse) |
37 |
+ -DENABLE_SSE2=$(usex cpu_flags_x86_sse2) |
38 |
+ -DENABLE_SSE3=$(usex cpu_flags_x86_sse3) |
39 |
+ -DENABLE_SSE4_1=$(usex cpu_flags_x86_sse4_1) |
40 |
+ -DENABLE_SSE4_2=$(usex cpu_flags_x86_sse4_2) |
41 |
+ -DENABLE_AVX=$(usex cpu_flags_x86_avx) |
42 |
+ -DENABLE_AVX2=$(usex cpu_flags_x86_avx2) |
43 |
+ -DENABLE_NEON=$(usex cpu_flags_arm_neon) |
44 |
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}" |
45 |
-DVERBOSE=ON |
46 |
-DENABLE_LDGOLD=OFF # https://bugs.gentoo.org/show_bug.cgi?id=606124 |