summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2020-10-27 17:58:35 -0400
committerCraig Andrews <candrews@gentoo.org>2020-10-27 17:59:07 -0400
commit3168191358f85e35ae5bb01a7f192419a0875f4f (patch)
tree3e382c46058f49c8303091e2aa371e7aa8b12cc4 /media-tv
parentapp-admin/ansible: add python3_9 to PYTHON_COMPAT (diff)
downloadgentoo-3168191358f85e35ae5bb01a7f192419a0875f4f.tar.gz
gentoo-3168191358f85e35ae5bb01a7f192419a0875f4f.tar.bz2
gentoo-3168191358f85e35ae5bb01a7f192419a0875f4f.zip
media-tv/kodi: Allow multiple windowing systems
See: https://github.com/xbmc/xbmc/pull/18534 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/kodi/kodi-9999.ebuild33
1 files changed, 7 insertions, 26 deletions
diff --git a/media-tv/kodi/kodi-9999.ebuild b/media-tv/kodi/kodi-9999.ebuild
index 00063a3470d..ad742a28610 100644
--- a/media-tv/kodi/kodi-9999.ebuild
+++ b/media-tv/kodi/kodi-9999.ebuild
@@ -43,7 +43,7 @@ IUSE="airplay alsa bluetooth bluray caps cec +css dbus dvd gbm gles lcms libress
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
|| ( gles opengl )
- ^^ ( gbm raspberry-pi wayland X )
+ || ( gbm wayland X )
?? ( mariadb mysql )
bluray? ( udf )
udev? ( !libusb )
@@ -216,6 +216,10 @@ src_prepare() {
}
src_configure() {
+ local platform=()
+ use gbm && platform+=( gbm )
+ use wayland && platform+=( wayland )
+ use X && platform+=( x11 )
local mycmakeargs=(
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
-DENABLE_LDGOLD=OFF # https://bugs.gentoo.org/show_bug.cgi?id=606124
@@ -258,6 +262,8 @@ src_configure() {
-Dlibdvdcss_URL="${DISTDIR}/libdvdcss-${LIBDVDCSS_VERSION}.tar.gz"
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DAPP_RENDER_SYSTEM="$(usex opengl gl gles)"
+ -DCORE_PLATFORM_NAME="${platform[@]}"
)
use libusb && mycmakeargs+=( -DENABLE_LIBUSB=$(usex libusb) )
@@ -268,31 +274,6 @@ src_configure() {
mycmakeargs+=( -DFFMPEG_URL="${DISTDIR}/ffmpeg-${PN}-${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz" )
fi
- if use gbm; then
- mycmakeargs+=(
- -DCORE_PLATFORM_NAME="gbm"
- -DGBM_RENDER_SYSTEM="$(usex opengl gl gles)"
- )
- fi
-
- if use wayland; then
- mycmakeargs+=(
- -DCORE_PLATFORM_NAME="wayland"
- -DWAYLAND_RENDER_SYSTEM="$(usex opengl gl gles)"
- )
- fi
-
- if use raspberry-pi; then
- mycmakeargs+=( -DCORE_PLATFORM_NAME="rbpi" )
- fi
-
- if use X; then
- mycmakeargs+=(
- -DCORE_PLATFORM_NAME="x11"
- -DX11_RENDER_SYSTEM="$(usex opengl gl gles)"
- )
- fi
-
cmake_src_configure
}