mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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() {
|
||||
Reference in New Issue
Block a user