source: trunk/dports/games/atanks/Portfile @ 9247

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

new port games/atanks

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1# $Id: Portfile,v 1.1 2004/11/11 14:00:59 mww Exp $
2
3PortSystem 1.0
4
5name                    atanks
6version                 1.5a
7categories              games
8platforms               darwin
9maintainers             mww@opendarwin.org
10description             atanks is a multi-platform Scorched Earth clone
11long_description        ${description}
12
13homepage                http://atanks.sourceforge.net/
14master_sites    sourceforge
15checksums               md5 eca740f3b99feb9f61e93c6c96d0d25c
16use_bzip2               yes
17
18depends_lib             lib:XXX:allegro
19
20extract.post_args       "| tar -xf - --exclude 'Atanks.exe' --exclude 'dumpImages'"
21
22patchfiles              patch-src-Makefile \
23                                patch-src-parser.cc
24
25configure       {
26        cd ${worksrcpath}/src
27        reinplace "s|definitions|${prefix}/share/atanks/definitions|g" atanks.cc
28        cd ${worksrcpath}/definitions
29        reinplace "s|inGameImages/|${prefix}/share/atanks/inGameImages/|g" \
30                00plain-missiles.txt 10missile-spreads.txt 20mirvs.txt \
31                30cluster-bombs.txt 45shaped-explosives.txt 50burrowers.txt \
32                52multi-burrowers.txt 55earth-clearers.txt 60earth-creators.txt \
33                70single-rollers.txt 85napalm-bombs.txt 90tremors.txt 95lazers.txt \
34                99naturals.txt
35        reinplace "s|stockImages/|${prefix}/share/atanks/stockImages/|g" \
36                00plain-missiles.txt 10missile-spreads.txt 20mirvs.txt \
37                30cluster-bombs.txt 45shaped-explosives.txt 50burrowers.txt \
38                52multi-burrowers.txt 55earth-clearers.txt 60earth-creators.txt \
39                70single-rollers.txt 85napalm-bombs.txt 90tremors.txt 95lazers.txt \
40                99naturals.txt
41}
42
43build.env               CFLAGS=-I${prefix}/include \
44                                LDFLAGS=-L${prefix}/lib
45build.args              PREFIX=${prefix}
46
47destroot        {
48        xinstall -m 755 ${worksrcpath}/atanks ${destroot}${prefix}/bin
49        xinstall -m 755 -d ${destroot}${prefix}/share/atanks
50        xinstall -m 644 -W ${worksrcpath} button.dat misc.dat missile.dat \
51                sound.dat stock.dat tank.dat tankgun.dat title.dat revenge.txt \
52                gloat.txt tanks.txt Help.txt ${destroot}${prefix}/share/atanks
53        file copy ${worksrcpath}/definitions ${destroot}${prefix}/share/atanks
54        file copy ${worksrcpath}/inGameImages ${destroot}${prefix}/share/atanks
55        file copy ${worksrcpath}/stockImages ${destroot}${prefix}/share/atanks
56}
57
58variant darwin  {
59        post-destroot   {
60                xinstall -d -m 755 ${destroot}/Applications/DarwinPorts/ATanks.app/Contents/MacOS
61                system "ln -s ${prefix}/bin/atanks \
62                        ${destroot}/Applications/DarwinPorts/ATanks.app/Contents/MacOS/ATanks"
63        }
64}
Note: See TracBrowser for help on using the repository browser.