I made an ebuild for Gentoo-Linux which uses the latest svn sources. Maybe there is someone else in the forum interested in that. It is based on the latest ebuild for scummvm-0.10.0 from portage. It may not be perfect, but i works fine for me.
1. Put the ebuild into your local overlay (e.g. /usr/local/portage/games-engines/scummvm-svn/).
2. Run "ebuild scummvm-svn-9999.ebuild digest".
3. Put "games-engines/scummvm-svn ~<YOUR-ARCH>" into your /etc/portage/package.keywords.
4. Run "emerge scummvm-svn" to download the latest sources, compile and install them.
I added three additional use-flags for the lure, cruise and drascula engines. To use them you can put "games-engines/scummvm-svn cruise lure drascula" to your /etc/portage/package.use.
scummvm-svn-9999.ebuild:
Code: Select all
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header
inherit eutils games subversion
DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures"
HOMEPAGE="http://scummvm.sourceforge.net/"
ESVN_REPO_URI="https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk"
ESVN_PROJECT="scummvm"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="alsa debug flac fluidsynth mp3 ogg vorbis zlib lure cruise drascula"
RESTRICT="test" # it only looks like there's a test there #77507
RDEPEND=">=media-libs/libsdl-1.2.2
>media-libs/libmpeg2-0.3.1
ogg? ( media-libs/libogg media-libs/libvorbis )
vorbis? ( media-libs/libogg media-libs/libvorbis )
alsa? ( >=media-libs/alsa-lib-0.9 )
mp3? ( media-libs/libmad )
flac? ( media-libs/flac )
fluidsynth? ( media-sound/fluidsynth )
zlib? ( sys-libs/zlib )"
DEPEND="${RDEPEND}
x86? ( dev-lang/nasm )"
pkg_setup() {
games_pkg_setup
ewarn
ewarn "This is a Subversion snapshot of ScummVM,"
ewarn "so no functionality is guaranteed!"
ewarn
if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
eerror ""
eerror "To be able to build ${CATEGORY}/${PN} with ALSA support you"
eerror "need to have built media-libs/alsa-lib with midi USE flag."
die "Missing midi USE flag on media-libs/alsa-lib"
fi
}
src_compile() {
local myconf="--backend=sdl" # x11 backend no worky (bug #83502)
# let the engine find its data files in the right place (bug #178116)
myconf="${myconf} --datadir=${GAMES_DATADIR}"
( use vorbis || use ogg ) \
&& myconf="${myconf} --enable-vorbis" \
|| myconf="${myconf} --disable-vorbis --disable-mpeg2"
# bug #137547
use fluidsynth || myconf="${myconf} --disable-fluidsynth"
use lure
myconf="${myconf} --enable-lure"
use cruise
myconf="${myconf} --enable-cruise"
use drascula
myconf="${myconf} --enable-drascula"
# NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF
# mpeg2 support needs vorbis (bug #79149) so turn it off if -oggvorbis
./configure \
$(use_enable debug) \
$(use_enable alsa) \
$(use_enable mp3 mad) \
$(use_enable flac) \
$(use_enable zlib) \
$(use_enable x86 nasm) \
${myconf} \
|| die "configure failed"
emake || die "emake failed"
}
src_install() {
dogamesbin scummvm || die "dobin failed"
doman dists/scummvm.6
dodoc AUTHORS NEWS README TODO
insinto "${GAMES_DATADIR}"/scummvm/engines
doins gui/themes/modern.*
doicon icons/scummvm.xpm
make_desktop_entry scummvm ScummVM scummvm.xpm "Game;AdventureGame"
prepgamesdirs
}
pkg_postinst() {
ewarn
ewarn "DO NOT report bugs to Gentoo's bugzilla"
ewarn
}