Skip to content

Commit

Permalink
games-engines/residualvm: Revbump to add USE flags to release.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Lars Wendler committed Mar 15, 2019
1 parent 14f9a4f commit b3f5860
Showing 1 changed file with 27 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() {
Expand Down

0 comments on commit b3f5860

Please sign in to comment.