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

Last change on this file since 11715 was 11715, checked in by mww, 15 years ago

Bug: #2879
Submitted by: mww@
Reviewed by: kevin@…

fix location of app

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