Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name scummvm
version 0.7.1
platforms darwin
categories emulators games
maintainers nomaintainer@macports.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/MacPorts
file copy ${worksrcpath}/ScummVM.app \
${destroot}/Applications/MacPorts
}