# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils 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" KEYWORDS="x86" LICENSE="GPL-2" SLOT="0" IUSE="alsa oggvorbis mad zlib debug" DEPEND=">=media-libs/libsdl-1.2.2 >media-libs/libmpeg2-0.3.1 oggvorbis? ( media-libs/libvorbis ) alsa? ( >=media-libs/alsa-lib-0.9 ) mad? ( media-libs/libmad ) zlib? ( sys-libs/zlib )" src_unpack() { unpack ${A} } src_compile() { confstr="`use_enable alsa` `use_enable zlib` `use_enable mad` `use_enable oggvorbis vorbis`" if [ ! `use debug` ] ; then confstr=${confstr}" --disable-debug" fi ./configure ${confstr} || die "configure failed" emake || die "emake failed" } src_install() { dogamesbin scummvm || die "dobin failed" doman scummvm.6 || die "doman failed" dodoc NEWS README || die "dodoc failed" prepgamesdirs }