summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-03-15 23:40:58 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-03-15 23:45:30 +0100
commit14f9a4f07ec77a04653d0e3dbd183cc3e7da8d55 (patch)
tree7b9eea050985a9577f62453591f94371a9aaa2c1 /games-engines
parentgames-engines/residualvm: Added EXTRA_ECONF (diff)
downloadgentoo-14f9a4f07ec77a04653d0e3dbd183cc3e7da8d55.tar.gz
gentoo-14f9a4f07ec77a04653d0e3dbd183cc3e7da8d55.tar.bz2
gentoo-14f9a4f07ec77a04653d0e3dbd183cc3e7da8d55.zip
games-engines/residualvm: Added lots of USE flags.
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/residualvm/metadata.xml3
-rw-r--r--games-engines/residualvm/residualvm-9999.ebuild45
2 files changed, 30 insertions, 18 deletions
diff --git a/games-engines/residualvm/metadata.xml b/games-engines/residualvm/metadata.xml
index f346e5457981..c5d960e91c76 100644
--- a/games-engines/residualvm/metadata.xml
+++ b/games-engines/residualvm/metadata.xml
@@ -5,6 +5,9 @@
<email>games@gentoo.org</email>
<name>Gentoo Games Project</name>
</maintainer>
+ <use>
+ <flag name="mpeg2">enable mpeg2 codec for cutscenes</flag>
+ </use>
<upstream>
<remote-id type="sourceforge">residualvm</remote-id>
</upstream>
diff --git a/games-engines/residualvm/residualvm-9999.ebuild b/games-engines/residualvm/residualvm-9999.ebuild
index ded84a46d1dd..0f0a4bb4dbc3 100644
--- a/games-engines/residualvm/residualvm-9999.ebuild
+++ b/games-engines/residualvm/residualvm-9999.ebuild
@@ -15,20 +15,24 @@ else
fi
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
-IUSE=""
+IUSE="alsa debug jpeg mpeg2 mp3 opengl png truetype vorbis zlib"
# TODO: fix dynamic plugin support
# games crash without media-libs/libsdl[alsa]
RDEPEND="
- media-libs/alsa-lib
- media-libs/freetype:2
media-libs/glew:0=
- media-libs/libpng:0=
media-libs/libsdl2[X,sound,alsa,joystick,opengl,video]
- sys-libs/zlib:=
virtual/glu
- virtual/jpeg:0
- virtual/opengl"
+ alsa? ( media-libs/alsa-lib )
+ jpeg? ( virtual/jpeg:0 )
+ mp3? ( media-libs/libmad )
+ mpeg2? ( media-libs/libmpeg2 )
+ opengl? ( virtual/opengl )
+ png? ( media-libs/libpng:0= )
+ truetype? ( media-libs/freetype:2 )
+ vorbis? ( media-libs/libvorbis )
+ zlib? ( sys-libs/zlib:= )
+"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
@@ -36,35 +40,40 @@ BDEPEND="
src_configure() {
# not an autotools script
- # most configure options currently do nothing, verify on version bump !!!
+ # some configure options currently do nothing, verify on version bump !!!
# disable explicitly, otherwise we get unneeded linkage (some copy-paste build system)
local myconf=(
--backend=sdl
- --disable-debug
--disable-faad
--disable-flac
--disable-fluidsynth
--disable-libunity
- --disable-mad
--disable-sparkle
- --disable-translation
--disable-tremor
- --disable-vorbis
--docdir="/usr/share/doc/${PF}"
--enable-all-engines
- --enable-release-mode
- --enable-zlib
+ --enable-verbose-build
+ --libdir="${EPREFIX}/usr/$(get_libdir)"
--host="${CHOST}"
--prefix="${EPREFIX}/usr"
+ $(use_enable alsa)
+ $(use_enable debug)
+ $(use_enable !debug release-mode)
+ $(use_enable jpeg)
+ $(use_enable mp3 mad)
+ $(use_enable mpeg2)
+ $(use_enable opengl)
+ $(use_enable opengl opengl-shaders)
+ $(use_enable png)
+ $(use_enable truetype freetype2)
+ $(use_enable vorbis)
+ $(use_enable zlib)
)
./configure "${myconf[@]}" "${EXTRA_ECONF}" || die
}
src_compile() {
- emake \
- VERBOSE_BUILD=1 \
- AR="$(tc-getAR) cru" \
- RANLIB=$(tc-getRANLIB)
+ emake AR="$(tc-getAR) cru" RANLIB=$(tc-getRANLIB)
}
src_install() {