commit:     b3f5860372b2b084f0e291c94331e75e9f72e63b
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 15 22:44:58 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 22:45:31 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3f58603

games-engines/residualvm: Revbump to add USE flags to release.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 ...-0.3.1-r1.ebuild => residualvm-0.3.1-r2.ebuild} | 45 +++++++++++++---------
 1 file changed, 27 insertions(+), 18 deletions(-)

diff --git a/games-engines/residualvm/residualvm-0.3.1-r1.ebuild 
b/games-engines/residualvm/residualvm-0.3.1-r2.ebuild
similarity index 63%
rename from games-engines/residualvm/residualvm-0.3.1-r1.ebuild
rename to games-engines/residualvm/residualvm-0.3.1-r2.ebuild
index 97f1d29ed54..fd5eba9a277 100644
--- a/games-engines/residualvm/residualvm-0.3.1-r1.ebuild
+++ b/games-engines/residualvm/residualvm-0.3.1-r2.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
@@ -40,35 +44,40 @@ PATCHES=(
 
 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() {

Reply via email to