summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2020-10-29 13:59:07 -0400
committerCraig Andrews <candrews@gentoo.org>2020-10-29 13:59:27 -0400
commitb69e368c5d6720fed47360ad1e54e4147e783aa9 (patch)
treee70547bd09f6add7ff5541c23cb61e20ad9d4cd0 /media-tv
parentapp-office/libreoffice: Add missing || ( ) (diff)
downloadgentoo-b69e368c5d6720fed47360ad1e54e4147e783aa9.tar.gz
gentoo-b69e368c5d6720fed47360ad1e54e4147e783aa9.tar.bz2
gentoo-b69e368c5d6720fed47360ad1e54e4147e783aa9.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-19.9999.ebuild33
1 files changed, 7 insertions, 26 deletions
diff --git a/media-tv/kodi/kodi-19.9999.ebuild b/media-tv/kodi/kodi-19.9999.ebuild
index 00063a3470d..ad742a28610 100644
--- a/media-tv/kodi/kodi-19.9999.ebuild
+++ b/media-tv/kodi/kodi-19.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
}