commit: 29386f5cbe7532838f7ed9e50528c899b36b261c
Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 1 16:05:20 2021 +0000
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Mon Feb 1 16:07:30 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29386f5c
media-tv/kodi: use CPU_FLAGS_* flags
Compile Kodi according to CPU_FLAGS_* USE expand flags instead of
compile-time detected host CPU features
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Evgeny Grin <k2k <AT> narod.ru>
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
media-tv/kodi/kodi-9999.ebuild | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/media-tv/kodi/kodi-9999.ebuild b/media-tv/kodi/kodi-9999.ebuild
index 5b80fb84d04..b752b9ffc6e 100644
--- a/media-tv/kodi/kodi-9999.ebuild
+++ b/media-tv/kodi/kodi-9999.ebuild
@@ -40,6 +40,7 @@ SLOT="0"
# it is _required_ for USB support. Otherwise they'll disable udev and
# that's going to be worse.
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"
+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"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
|| ( gles opengl )
@@ -224,6 +225,14 @@ src_configure() {
use X && platform+=( x11 )
local core_platform_name="${platform[@]}"
local mycmakeargs=(
+ -DENABLE_SSE=$(usex cpu_flags_x86_sse)
+ -DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
+ -DENABLE_SSE3=$(usex cpu_flags_x86_sse3)
+ -DENABLE_SSE4_1=$(usex cpu_flags_x86_sse4_1)
+ -DENABLE_SSE4_2=$(usex cpu_flags_x86_sse4_2)
+ -DENABLE_AVX=$(usex cpu_flags_x86_avx)
+ -DENABLE_AVX2=$(usex cpu_flags_x86_avx2)
+ -DENABLE_NEON=$(usex cpu_flags_arm_neon)
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
-DVERBOSE=ON
-DENABLE_LDGOLD=OFF #
https://bugs.gentoo.org/show_bug.cgi?id=606124