Skip to content

Commit

Permalink
games-emulation/mgba: Added "gles2" and "gles3" USE flags
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/735918
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Lars Wendler committed Aug 4, 2020
1 parent e43a1c8 commit 8e0592d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 2 additions & 0 deletions games-emulation/mgba/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
11 changes: 8 additions & 3 deletions games-emulation/mgba/mgba-0.8.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 )"

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)"
Expand Down
11 changes: 8 additions & 3 deletions games-emulation/mgba/mgba-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 )"

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)"
Expand Down

0 comments on commit 8e0592d

Please sign in to comment.