source: trunk/dports/games/ship84/Portfile @ 6232

Last change on this file since 6232 was 6232, checked in by mww, 16 years ago

new port games/ship84

a rather 'retro' space invaders clone

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1# $Id: Portfile,v 1.1 2004/04/06 16:48:26 mww Exp $
2
3PortSystem 1.0
4
5name            ship84
6version         1.3.3.7
7categories      games
8platforms       darwin
9maintainers     mww@opendarwin.org
10description     space invaders clone using SDL
11long_description        The Angryfez Army and their minions have pointed the \
12                        ultimate battle at earth! Only Happyfez can save the \
13                        day!
14
15homepage        http://ship84.sourceforge.net/
16master_sites    sourceforge
17distname        shipv${version}UNIX
18use_zip         yes
19checksums       md5 06df2ae060fe4a076d7fa17a57205348
20patchfiles      patch-GNUmakefile.diff \
21                patch-shipsdl.c.diff \
22                patch-shippy.c.diff
23
24depends_lib     bin:sdl-config:libsdl \
25                lib:libSDL_mixer:libsdl_mixer
26
27set worksrcpath ${workpath}
28
29configure       {
30        reinplace "s|data/|${prefix}/share/games/${name}/|g" \
31                ${worksrcpath}/shipall.c \
32                ${worksrcpath}/shippy.c \
33                ${worksrcpath}/shipsdl.c
34}
35build.dir       ${workpath}
36build.type      gnu
37build.args      -f GNUmakefile
38
39destroot        {
40        xinstall -m 755 -d ${destroot}${prefix}/bin \
41                ${destroot}${prefix}/share/games
42        xinstall -m 755 -s ${worksrcpath}/shippy ${destroot}${prefix}/bin
43        file copy ${worksrcpath}/data ${destroot}${prefix}/share/games/${name}
44}
45variant darwin  {
46        post-destroot   {
47                xinstall -d -m 755 ${destroot}/Applications/Ship84.app/Contents/MacOS
48                system "ln -s ${prefix}/bin/shippy \
49                        ${destroot}/Applications/Ship84.app/Contents/MacOS/Ship84"
50        }
51}
Note: See TracBrowser for help on using the repository browser.