source: trunk/dports/games/digger/Portfile @ 4853

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

correct hard-coded prefix in .app hook

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1# $Id: Portfile,v 1.3 2004/01/18 19:25:41 mww Exp $
2
3PortSystem 1.0
4
5name            digger
6version         20020314
7categories      games
8platforms       darwin
9maintainers     mww@opendarwin.org
10description     the Digger game
11long_description        ${description}
12
13homepage        http://www.digger.org
14master_sites    ${homepage}
15checksums       md5 76c1e8ae3c4566dad65e91adbfe29570
16patchfiles      patch-alpha.c.diff \
17                patch-def.h.diff \
18                patch-digger.c.diff \
19                patch-input.c.diff \
20                patch-scores.c.diff \
21                patch-input.h.diff \
22                patch-main.c.diff
23
24depends_lib     bin:sdl-config:libsdl
25
26post-extract    {
27        file copy ${filespath}/Makefile.darwin ${worksrcpath}/Makefile
28}
29
30use_configure   no
31
32destroot        {
33        xinstall -d  ${destroot}${prefix}/share/doc/${name}
34        xinstall -m 644 ${worksrcpath}/digger.txt \
35                ${destroot}${prefix}/share/doc/${name}
36        xinstall -mode 755 -s ${worksrcpath}/digger \
37                ${destroot}${prefix}/bin
38}
39
40variant darwin  {
41        post-destroot   {
42                file mkdir ${destroot}/Applications/DarwinPorts/Digger.app/Contents/MacOS
43                xinstall -mode 755 ${filespath}/Digger.darwin \
44                        ${destroot}/Applications/DarwinPorts/Digger.app/Contents/MacOS/Digger
45                reinplace "s|_PREFIX_|${prefix}|g" ${destroot}/Applications/DarwinPorts/Digger.app/Contents/MacOS/Digger
46        }
47}
Note: See TracBrowser for help on using the repository browser.