games-emulation/gambatte: unconditionally build sdl frontend

This commit is contained in:
Julian Ospald 2016-05-07 02:26:44 +02:00
parent 231f23d80a
commit 53531e7155
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -12,14 +12,12 @@ LICENCES="GPL-2"
SLOT="0" SLOT="0"
PLATFORMS="~amd64" PLATFORMS="~amd64"
MYOPTIONS=" MYOPTIONS="
( qt4 [[ description = [ build qt4 GUI frontend ] ]]
qt4 [[ description = [ build qt4 frontend with real GUI ] ]]
sdl [[ description = [ build sdl fronted, start via cli ] ]]
) [[ number-selected = at-least-one ]]
" "
DEPENDENCIES=" DEPENDENCIES="
build+run: build+run:
media-libs/SDL:0[X]
sys-libs/zlib sys-libs/zlib
qt4? ( qt4? (
sys-sound/alsa-lib sys-sound/alsa-lib
@ -29,7 +27,6 @@ DEPENDENCIES="
x11-libs/libXv x11-libs/libXv
x11-libs/qt:4[opengl] x11-libs/qt:4[opengl]
) )
sdl? ( media-libs/SDL:0[X] )
" "
REMOTE_IDS+=" sourceforge:${PN}" REMOTE_IDS+=" sourceforge:${PN}"
@ -78,10 +75,8 @@ src_compile() {
escons escons
# build sdl frontend # build sdl frontend
if option sdl; then edo cd "${WORK}"/gambatte_sdl
edo cd "${WORK}"/gambatte_sdl escons
escons
fi
# build qt frontend # build qt frontend
if option qt4; then if option qt4; then
@ -90,7 +85,7 @@ src_compile() {
} }
src_install() { src_install() {
option sdl && dobin gambatte_sdl/gambatte_sdl dobin gambatte_sdl/gambatte_sdl
option qt4 && dobin gambatte_qt/bin/gambatte_qt option qt4 && dobin gambatte_qt/bin/gambatte_qt
nonfatal dodoc README changelog nonfatal dodoc README changelog