a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
PortSystem 1.0
name ship84
version 1.3.3.7
revision 1
categories games
platforms darwin
maintainers nomaintainer@macports.org
description space invaders clone using SDL
long_description The Angryfez Army and their minions have pointed the \
ultimate battle at earth! Only Happyfez can save the \
day!
homepage http://ship84.sourceforge.net/
master_sites sourceforge
distname shipv${version}UNIX
use_zip yes
checksums md5 06df2ae060fe4a076d7fa17a57205348
patchfiles patch-GNUmakefile.diff \
patch-shipsdl.c.diff \
patch-shippy.c.diff
depends_lib bin:sdl-config:libsdl \
lib:libSDL_mixer:libsdl_mixer
set worksrcpath ${workpath}
configure {
reinplace "s|data/|${prefix}/share/games/${name}/|g" \
${worksrcpath}/shipall.c \
${worksrcpath}/shippy.c \
${worksrcpath}/shipsdl.c
}
build.dir ${workpath}
build.type gnu
build.args -f GNUmakefile
destroot {
xinstall -m 755 -d ${destroot}${prefix}/bin \
${destroot}${prefix}/share/games
xinstall -m 755 -s ${worksrcpath}/shippy ${destroot}${prefix}/bin
file copy ${worksrcpath}/data ${destroot}${prefix}/share/games/${name}
}
variant darwin {
post-destroot {
xinstall -d -m 755 ${destroot}/Applications/MacPorts/Ship84.app/Contents/MacOS
system "ln -sf ${prefix}/bin/shippy \
${destroot}/Applications/MacPorts/Ship84.app/Contents/MacOS/Ship84"
}
}