source: trunk/dports/games/digger/Portfile

Last change on this file was 114119, checked in by jmr@…, 4 years ago

libsdl dependents: use port: depspec - there's now only one port that provides sdl.pc, and most of these never worked with libsdl-devel in the first place

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 114119 2013-11-29 22:31:11Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               app 1.0
5
6name                    digger
7version                 20020314
8revision                2
9categories              games
10platforms               darwin
11maintainers             nomaintainer
12
13description             the Digger game
14long_description        ${description}
15
16homepage                http://www.digger.org/
17master_sites            ${homepage}
18checksums               md5 a16e90a49ed8ea90099b254d3ef5edfa
19patchfiles              patch-def.h.diff \
20                        patch-digger.c.diff \
21                        patch-input.c.diff \
22                        patch-scores.c.diff \
23                        patch-input.h.diff \
24                        patch-main.c.diff
25
26depends_lib             port:libsdl
27
28platform darwin {
29    patchfiles-append   patch-Makefile.sdl.diff
30}
31
32use_configure           no
33
34variant universal {}
35
36build.args              -f Makefile.sdl \
37                        CC="${configure.cc} [get_canonical_archflags]"
38
39destroot {
40    xinstall -d  ${destroot}${prefix}/share/doc/${name}
41    xinstall -m 644 ${worksrcpath}/digger.txt \
42        ${destroot}${prefix}/share/doc/${name}
43    xinstall -m 755 -s ${worksrcpath}/digger ${destroot}${prefix}/bin
44}
45
46app.executable          ${workpath}/${name}
47app.icon                ${filespath}/icon.png
48
49platform macosx {
50    post-extract {
51        xinstall ${filespath}/Digger.darwin ${workpath}/${name}
52    }
53    post-patch {
54        reinplace "s|_PREFIX_|${prefix}|g" ${workpath}/${name}
55    }
56}
57
58livecheck.type          regex
59livecheck.url           ${homepage}download.html
60livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.