summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2018-08-22 22:11:23 +0100
committerCraig Andrews <candrews@gentoo.org>2018-08-22 19:35:25 -0400
commit6005cea2e275a6fae4ae896aba9b12b11f9b8b0f (patch)
tree07a7ef3cf97b40067f07b30d3cec0e9c3ec99820 /media-tv/kodi
parentsys-kernel/gentoo-sources: Linux patch 4.18.4 (diff)
downloadgentoo-6005cea2e275a6fae4ae896aba9b12b11f9b8b0f.tar.gz
gentoo-6005cea2e275a6fae4ae896aba9b12b11f9b8b0f.tar.bz2
gentoo-6005cea2e275a6fae4ae896aba9b12b11f9b8b0f.zip
media-tv/kodi: Latest git now requires GBM_RENDER_SYSTEM set
usex is simpler and shorter than if/else. Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'media-tv/kodi')
-rw-r--r--media-tv/kodi/kodi-9999.ebuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/media-tv/kodi/kodi-9999.ebuild b/media-tv/kodi/kodi-9999.ebuild
index a7b9f962f7d9..1fe5998a2b01 100644
--- a/media-tv/kodi/kodi-9999.ebuild
+++ b/media-tv/kodi/kodi-9999.ebuild
@@ -31,7 +31,6 @@ SLOT="0"
IUSE="airplay alsa bluetooth bluray caps cec +css dbus debug dvd gbm gles lcms libressl libusb lirc mysql nfs +opengl pulseaudio samba systemd +system-ffmpeg test +udev udisks upnp upower vaapi vdpau wayland webserver +X +xslt zeroconf"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
- gbm? ( gles )
|| ( gles opengl )
^^ ( gbm wayland X )
udev? ( !libusb )
@@ -266,16 +265,17 @@ src_configure() {
fi
if use gbm; then
- mycmakeargs+=( -DCORE_PLATFORM_NAME="gbm" )
+ mycmakeargs+=(
+ -DCORE_PLATFORM_NAME="gbm"
+ -DGBM_RENDER_SYSTEM="$(usex opengl gl gles)"
+ )
fi
if use wayland; then
- mycmakeargs+=( -DCORE_PLATFORM_NAME="wayland" )
- if use opengl; then
- mycmakeargs+=( -DWAYLAND_RENDER_SYSTEM="gl" )
- else
- mycmakeargs+=( -DWAYLAND_RENDER_SYSTEM="gles" )
- fi
+ mycmakeargs+=(
+ -DCORE_PLATFORM_NAME="wayland"
+ -DWAYLAND_RENDER_SYSTEM="$(usex opengl gl gles)"
+ )
fi
if use X; then