diff options
Diffstat (limited to 'games-simulation/vegastrike/vegastrike-9999.ebuild')
-rw-r--r-- | games-simulation/vegastrike/vegastrike-9999.ebuild | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/games-simulation/vegastrike/vegastrike-9999.ebuild b/games-simulation/vegastrike/vegastrike-9999.ebuild index b8836a1..f0ac9ea 100644 --- a/games-simulation/vegastrike/vegastrike-9999.ebuild +++ b/games-simulation/vegastrike/vegastrike-9999.ebuild @@ -16,7 +16,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" # FIXME: check configure options -IUSE="gtk no-sound debug" +IUSE="ffmpeg gtk debug" # FIXME: check dependencies RDEPEND=" @@ -26,9 +26,10 @@ RDEPEND=" dev-libs/expat media-libs/openal media-libs/libsdl - !no-sound? ( media-libs/libvorbis - media-libs/libogg - media-libs/sdl-mixer ) + media-libs/libvorbis + media-libs/libogg + media-libs/sdl-mixer + ffmpeg? ( media-video/ffmpeg ) virtual/glut virtual/glu gtk? ( x11-libs/gtk+ ) @@ -109,8 +110,11 @@ src_compile() { conf_opts="${conf_opts} --disable-gtk" fi + if ! use ffmpeg; then + conf_opts="${conf_opts} --disable-ffmpeg" + fi + CONFIGURE_OPTIONS=" - $(use_enable !no-sound sound) ${conf_opts}" egamesconf $CONFIGURE_OPTIONS \ @@ -152,9 +156,8 @@ EOF dogamesbin vegastrike/mesher \ || die "Creation of mesher failed" - if use gtk; then - newgamesbin vegastrike/vssetup vssetup || die "newgamesbin failed" - fi + newgamesbin vegastrike/vssetup vssetup \ + || ewarn "vssetup was not built. You will have to manually edit ~/.vegastrike/vegastrike.config." make_desktop_entry "vegastrike" "Vegastrike" "${GAMES_DATADIR}/${PN}/data/vegastrike.xpm" |