# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/scummvm-0.5.1.ebuild,v 1.1 2003/09/09 17:34:21 vapier Exp $ inherit games DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures" HOMEPAGE="http://scummvm.sourceforge.net/" SRC_URI="mirror://sourceforge/scummvm/${PN}-${PV}.tar.bz2" KEYWORDS="x86 ppc" LICENSE="GPL-2" SLOT="0" IUSE="alsa oggvorbis mad" DEPEND="media-libs/libsdl >=sys-apps/sed-4 oggvorbis? ( media-libs/libvorbis ) alsa? ( media-libs/alsa-lib ) mad? ( media-sound/mad )" S=${WORKDIR}/${PN}-${PV} src_compile() { egamesconf \ `use_with alsa` \ `use_with oggvorbis vorbis` \ `use_with mad` \ || die if [ `use alsa` ] ; then sed -i \ -e "/^# DEF.*ALSA$/s:# ::" \ -e "/^# LIBS.*asound$/s:# ::" \ Makefile || die "sed Makefile (alsa) failed" fi if [ `use oggvorbis` ] ; then sed -i \ -e "/^# DEF.*VORBIS$/s:# ::" \ -e "/^# LIBS.*vorbis$/s:# ::" \ Makefile || die "sed Makefile (oggvorbis) failed" fi if [ ! `use mad` ] ; then sed -i \ -e "s:^DEF.*MAD$::" \ -e "s:^LIBS.*mad$::" \ Makefile || die "sed Makefile (mad) failed" fi emake || die "emake failed" } src_install() { dogamesbin scummvm doman scummvm.6 dodoc NEWS README prepgamesdirs }