source: trunk/dports/games/alienblaster/Portfile @ 32665

Last change on this file since 32665 was 32665, checked in by ryandesign@…, 12 years ago

alienblaster: we don't need to use 'system' just to create a symlink

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 32665 2008-01-10 13:33:13Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    alienblaster
6version                 1.1.0
7categories              games
8platforms               darwin
9maintainers             nomaintainer
10description             action loaded 2D arcade shooter for up to two players
11long_description        ${description}
12
13homepage                http://www.schwardtnet.de/alienblaster/
14master_sites    ${homepage}archives/
15extract.suffix  .tgz
16checksums               md5 27412a868f7d4ae0949036aeb29a6691
17
18depends_lib             bin:sdl-config:libsdl \
19                                lib:libSDL_mixer:libsdl_mixer
20
21worksrcdir              ${name}
22
23configure       {
24        reinplace "s|./images|${prefix}/share/${name}/images|g" \
25                ${worksrcpath}/src/global.h \
26                ${worksrcpath}/src/global.cc \
27                ${worksrcpath}/cfg/level1.cfg \
28                ${worksrcpath}/cfg/level2.cfg \
29                ${worksrcpath}/cfg/levelArcade.cfg
30        reinplace "s|=images/|=${prefix}/share/${name}/images/|g" \
31                ${worksrcpath}/cfg/level1.cfg \
32                ${worksrcpath}/cfg/level2.cfg \
33                ${worksrcpath}/cfg/levelArcade.cfg
34        reinplace "s|./cfg|${prefix}/etc/${name}|g" \
35                ${worksrcpath}/src/global.h \
36                ${worksrcpath}/src/global.cc
37        reinplace "s|./sound|${prefix}/share/${name}/sound|g" \
38                ${worksrcpath}/src/global.h \
39                ${worksrcpath}/src/global.cc
40}
41
42destroot        {
43        xinstall -m 755 -s ${worksrcpath}/alienblaster ${destroot}${prefix}/bin
44        xinstall -m 755 -d ${destroot}${prefix}/share/${name}
45        file copy ${worksrcpath}/sound ${destroot}${prefix}/share/${name}
46        file copy ${worksrcpath}/images ${destroot}${prefix}/share/${name}
47        file copy ${worksrcpath}/cfg ${destroot}${prefix}/etc/${name}
48}
49
50platform darwin {
51        post-destroot   {
52                xinstall -m 755 -d ${destroot}/Applications/MacPorts/AlienBlaster.app/Contents/MacOS
53                ln -s ${prefix}/bin/alienblaster ${destroot}/Applications/MacPorts/AlienBlaster.app/Contents/MacOS/AlienBlaster
54        }
55}
Note: See TracBrowser for help on using the repository browser.