source: trunk/dports/games/atanks/Portfile

Last change on this file was 82983, checked in by ryandesign@…, 6 years ago

atanks: use app portgroup, add app icon

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 82983 2011-08-23 03:54:44Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               app 1.0
5
6name                    atanks
7version                 5.1
8revision                1
9categories              games
10platforms               darwin
11# allegro is 32-bit only
12supported_archs         i386 ppc
13maintainers             nomaintainer
14license                 GPL-2+
15
16description             atanks is a multi-platform Scorched Earth clone
17long_description        ${description}
18
19homepage                http://atanks.sourceforge.net/
20master_sites            sourceforge:project/${name}/${name}/${name}-${version}
21
22checksums               sha1    b5c692839015992e55bb9c9eb94d75739dcb4081 \
23                        rmd160  542cc069a850eb2a28cc6df320da62c9d6461f94
24
25depends_lib             port:allegro
26
27patchfiles              patch-Makefile.diff \
28                        patch-src-Makefile.bsd.diff
29
30post-patch {
31    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/src/Makefile.bsd
32    reinplace "s|@CXX@|${configure.cxx}|g" ${worksrcpath}/src/Makefile.bsd
33    reinplace "s|@CPPFLAGS@|${configure.cppflags}|g" ${worksrcpath}/src/Makefile.bsd
34    reinplace "s|@LDFLAGS@|${configure.ldflags}|g" ${worksrcpath}/src/Makefile.bsd
35    reinplace "s|@OPTFLAGS@|${configure.optflags}|g" ${worksrcpath}/src/Makefile.bsd
36    reinplace "s|@ARCHFLAGS@|[get_canonical_archflags]|g" ${worksrcpath}/src/Makefile.bsd
37}
38
39use_configure           no
40
41build.args              PREFIX=${prefix}/
42
43destroot.destdir        PREFIX=${destroot}${prefix}/
44destroot.args           INSTALL=/usr/bin/install
45
46platform darwin {
47    build.target        osx
48}
49
50app.name                ATanks
51app.icon                atanks.png
52
53livecheck.type          regex
54livecheck.url           https://sourceforge.net/projects/atanks/files/
55livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.