# $Id: Portfile,v 1.6 2005/03/29 08:54:45 mww Exp $

PortSystem 1.0

name		scummvm
version		0.7.1
platforms       darwin
categories	emulators games
maintainers	phw@opendarwin.org
description	cross-platform interpreter for several adventure engines
long_description	ScummVM is a cross-platform interpreter for several \
			point-and-click adventure engines. This includes all \
			SCUMM-based adventures by LucasArts, Simon the \
			Sorcerer by AdventureSoft, and Beneath a Steel Sky and \
			Broken Sword 2 by Revolution

homepage	http://scummvm.org/
master_sites	sourceforge
use_bzip2	yes
checksums	md5 a935499011c59441fcce8322ea1c4f1d
depends_lib	bin:sdl-config:libsdl \
		lib:libmad:libmad \
		lib:libogg:libogg \
		lib:libvorbis:libvorbis \
		lib:libvorbisfile:libvorbis \
		lib:libmpeg2:libmpeg2 \
		lib:libFLAC:flac

configure.env	LDFLAGS="-L${prefix}/lib" \
		CPPFLAGS="-I${prefix}/include"
configure.pre_args
post-configure	{ reinplace "s|/sw|${prefix}|g" ${worksrcpath}/Makefile }
build.env	${configure.env}
build.target	bundle
destroot	{ 
		xinstall -m 755 -d ${destroot}/Applications/DarwinPorts
		file copy ${worksrcpath}/ScummVM.app \
				${destroot}/Applications/DarwinPorts
		 }
