summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-03-15 23:44:58 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-03-15 23:45:31 +0100
commitb3f5860372b2b084f0e291c94331e75e9f72e63b (patch)
treebe968a41b679911d63cb8ebcae985dc952ef8568
parentgames-engines/residualvm: Added lots of USE flags. (diff)
downloadgentoo-b3f5860372b2b084f0e291c94331e75e9f72e63b.tar.gz
gentoo-b3f5860372b2b084f0e291c94331e75e9f72e63b.tar.bz2
gentoo-b3f5860372b2b084f0e291c94331e75e9f72e63b.zip
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@gentoo.org>
-rw-r--r--games-engines/residualvm/residualvm-0.3.1-r2.ebuild (renamed from games-engines/residualvm/residualvm-0.3.1-r1.ebuild)45
1 files 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
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() {