diff options
Diffstat (limited to 'games-engines/scummvm/scummvm-0.6.0.ebuild')
-rw-r--r-- | games-engines/scummvm/scummvm-0.6.0.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/games-engines/scummvm/scummvm-0.6.0.ebuild b/games-engines/scummvm/scummvm-0.6.0.ebuild new file mode 100644 index 000000000000..c9967450d730 --- /dev/null +++ b/games-engines/scummvm/scummvm-0.6.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/scummvm-0.6.0.ebuild,v 1.1 2004/03/16 09:54:43 mr_bones_ Exp $ + +inherit games + +DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures" +HOMEPAGE="http://scummvm.sourceforge.net/" +SRC_URI="mirror://sourceforge/scummvm/${P}.tar.bz2" + +use debug && RESTRICT="nostrip" +KEYWORDS="x86" +LICENSE="GPL-2" +SLOT="0" +IUSE="alsa debug mad oggvorbis sdl zlib" + +DEPEND="virtual/glibc + virtual/x11 + >media-libs/libmpeg2-0.3.1 + sdl? ( >=media-libs/libsdl-1.2.2 ) + oggvorbis? ( + media-libs/libogg + media-libs/libvorbis + ) + alsa? ( >=media-libs/alsa-lib-0.9 ) + mad? ( media-libs/libmad ) + zlib? ( sys-libs/zlib )" + +src_compile() { + local myconf= + + use sdl \ + && myconf="${myconf} --backend=sdl" \ + || myconf="${myconf} --backend=x11" + use debug \ + || myconf="${myconf} --disable-debug" + + # not an autoconf script. + ./configure \ + `use_enable alsa` \ + `use_enable mad` \ + `use_enable oggvorbis vorbis` \ + `use_enable zlib` \ + ${myconf} \ + || die "configure failed" + emake || die "emake failed" +} + +src_install() { + dogamesbin scummvm || die "dobin failed" + doman scummvm.6 || die "doman failed" + dodoc NEWS README TODO || die "dodoc failed" + insinto /usr/share/pixmaps + doins scummvm.xpm || die "doins failed" + make_desktop_entry scummvm ScummVM + prepgamesdirs +} |