summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-08-04 16:47:19 +0200
committerLars Wendler <polynomial-c@gentoo.org>2020-08-04 16:47:56 +0200
commit8e0592dac97dfb1c7cc794e02a81d499e0fa205b (patch)
treef15f01908e9571845502d9828a6b3a646fd137aa
parentsys-auth/pambase: Version bump (v20200804) (diff)
downloadgentoo-8e0592dac97dfb1c7cc794e02a81d499e0fa205b.tar.gz
gentoo-8e0592dac97dfb1c7cc794e02a81d499e0fa205b.tar.bz2
gentoo-8e0592dac97dfb1c7cc794e02a81d499e0fa205b.zip
games-emulation/mgba: Added "gles2" and "gles3" USE flags
Bug: https://bugs.gentoo.org/735918 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r--games-emulation/mgba/metadata.xml2
-rw-r--r--games-emulation/mgba/mgba-0.8.3.ebuild11
-rw-r--r--games-emulation/mgba/mgba-9999.ebuild11
3 files changed, 18 insertions, 6 deletions
diff --git a/games-emulation/mgba/metadata.xml b/games-emulation/mgba/metadata.xml
index d65ffa04f67..3a30f098b0d 100644
--- a/games-emulation/mgba/metadata.xml
+++ b/games-emulation/mgba/metadata.xml
@@ -8,6 +8,8 @@
<use>
<flag name="discord">Enable Discord RPC support</flag>
<flag name="elf">Enable the use of elf utils via <pkg>dev-libs/elfutils</pkg></flag>
+ <flag name="gles2">Build OpenGL ES 2.x RenderSystem</flag>
+ <flag name="gles3">Build OpenGL ES 3.x RenderSystem</flag>
</use>
<upstream>
<remote-id type="github">mgba-emu/mgba</remote-id>
diff --git a/games-emulation/mgba/mgba-0.8.3.ebuild b/games-emulation/mgba/mgba-0.8.3.ebuild
index b94cca7aa9c..d1d5df90464 100644
--- a/games-emulation/mgba/mgba-0.8.3.ebuild
+++ b/games-emulation/mgba/mgba-0.8.3.ebuild
@@ -19,7 +19,7 @@ else
fi
LICENSE="MPL-2.0"
SLOT="0"
-IUSE="debug discord elf ffmpeg opengl qt5 +sdl sqlite"
+IUSE="debug discord elf ffmpeg gles2 gles3 opengl qt5 +sdl sqlite"
REQUIRED_USE="|| ( qt5 sdl )
qt5? ( opengl )"
@@ -28,7 +28,7 @@ RDEPEND="
sys-libs/zlib[minizip]
elf? ( dev-libs/elfutils )
ffmpeg? ( media-video/ffmpeg:= )
- opengl? ( virtual/opengl )
+ opengl? ( media-libs/libglvnd )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
@@ -39,7 +39,10 @@ RDEPEND="
sdl? ( media-libs/libsdl2[X,sound,joystick,video,opengl?] )
sqlite? ( dev-db/sqlite:3 )
"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ gles2? ( media-libs/libglvnd )
+ gles3? ( media-libs/libglvnd )
+"
src_prepare() {
xdg_environment_reset
@@ -55,6 +58,8 @@ src_configure() {
local mycmakeargs=(
-DCMAKE_SKIP_RPATH=ON
-DBUILD_GL="$(usex opengl)"
+ -DBUILD_GLES2="$(usex gles2)"
+ -DBUILD_GLES3="$(usex gles3)"
-DBUILD_PYTHON=OFF
-DBUILD_QT="$(usex qt5)"
-DBUILD_SDL="$(usex sdl)"
diff --git a/games-emulation/mgba/mgba-9999.ebuild b/games-emulation/mgba/mgba-9999.ebuild
index b94cca7aa9c..d1d5df90464 100644
--- a/games-emulation/mgba/mgba-9999.ebuild
+++ b/games-emulation/mgba/mgba-9999.ebuild
@@ -19,7 +19,7 @@ else
fi
LICENSE="MPL-2.0"
SLOT="0"
-IUSE="debug discord elf ffmpeg opengl qt5 +sdl sqlite"
+IUSE="debug discord elf ffmpeg gles2 gles3 opengl qt5 +sdl sqlite"
REQUIRED_USE="|| ( qt5 sdl )
qt5? ( opengl )"
@@ -28,7 +28,7 @@ RDEPEND="
sys-libs/zlib[minizip]
elf? ( dev-libs/elfutils )
ffmpeg? ( media-video/ffmpeg:= )
- opengl? ( virtual/opengl )
+ opengl? ( media-libs/libglvnd )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
@@ -39,7 +39,10 @@ RDEPEND="
sdl? ( media-libs/libsdl2[X,sound,joystick,video,opengl?] )
sqlite? ( dev-db/sqlite:3 )
"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ gles2? ( media-libs/libglvnd )
+ gles3? ( media-libs/libglvnd )
+"
src_prepare() {
xdg_environment_reset
@@ -55,6 +58,8 @@ src_configure() {
local mycmakeargs=(
-DCMAKE_SKIP_RPATH=ON
-DBUILD_GL="$(usex opengl)"
+ -DBUILD_GLES2="$(usex gles2)"
+ -DBUILD_GLES3="$(usex gles3)"
-DBUILD_PYTHON=OFF
-DBUILD_QT="$(usex qt5)"
-DBUILD_SDL="$(usex sdl)"