diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2010-07-23 13:24:18 +0200 |
---|---|---|
committer | Nicolas Kaiser <nikai@nikai.net> | 2010-07-23 13:24:18 +0200 |
commit | 1cd7bc74cb04fdc693030e41a26ca93f1bf56e87 (patch) | |
tree | 9e2049a0dbcfe2bf256090f1e2383cf59ec861a4 /games-simulation/vegastrike/vegastrike-9999.ebuild | |
parent | vs: removed USE stencil-buffer and sdl (diff) | |
download | nikai-1cd7bc74cb04fdc693030e41a26ca93f1bf56e87.tar.gz nikai-1cd7bc74cb04fdc693030e41a26ca93f1bf56e87.tar.bz2 nikai-1cd7bc74cb04fdc693030e41a26ca93f1bf56e87.zip |
vs: removed USE no-sound, added USE ffmpeg
Would be fun to be able to completely remove sound support.
However, at the moment it fails to build without sound:
make[1]: *** [src/aldrv/al_sound.o] Error 1
On the other hand, builds without ffmpeg.
Warn if vssetup doesn't get built.
Added USE descriptions to metadata.
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" |