source: trunk/dports/games/alienblaster/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: 2.0 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                    alienblaster
7version                 1.1.0
8revision                1
9categories              games
10platforms               darwin
11maintainers             nomaintainer
12license                 GPL-2+
13installs_libs           no
14
15description             action loaded 2D arcade shooter for up to two players
16long_description        ${description}
17
18homepage                http://www.schwardtnet.de/alienblaster/
19master_sites            ${homepage}archives/
20extract.suffix          .tgz
21
22checksums               md5 27412a868f7d4ae0949036aeb29a6691
23
24depends_lib             port:libsdl \
25                        port:libsdl_mixer
26
27worksrcdir              ${name}
28
29post-patch {
30    reinplace "s|./images|${prefix}/share/${name}/images|g" \
31        ${worksrcpath}/src/global.h \
32        ${worksrcpath}/src/global.cc \
33        ${worksrcpath}/cfg/level1.cfg \
34        ${worksrcpath}/cfg/level2.cfg \
35        ${worksrcpath}/cfg/levelArcade.cfg
36    reinplace "s|=images/|=${prefix}/share/${name}/images/|g" \
37        ${worksrcpath}/cfg/level1.cfg \
38        ${worksrcpath}/cfg/level2.cfg \
39        ${worksrcpath}/cfg/levelArcade.cfg
40    reinplace "s|./cfg|${prefix}/etc/${name}|g" \
41        ${worksrcpath}/src/global.h \
42        ${worksrcpath}/src/global.cc
43    reinplace "s|./sound|${prefix}/share/${name}/sound|g" \
44        ${worksrcpath}/src/global.h \
45        ${worksrcpath}/src/global.cc
46}
47
48use_configure           no
49
50variant universal {}
51
52build.args              COMPILER="${configure.cxx} [get_canonical_archflags]"
53
54destroot {
55    xinstall -m 755 -s ${worksrcpath}/alienBlaster ${destroot}${prefix}/bin
56    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
57    file copy ${worksrcpath}/sound ${destroot}${prefix}/share/${name}
58    file copy ${worksrcpath}/images ${destroot}${prefix}/share/${name}
59    file copy ${worksrcpath}/cfg ${destroot}${prefix}/etc/${name}
60}
61
62app.name                AlienBlaster
63app.executable          alienBlaster
64app.icon                images/alienblastericon.bmp
Note: See TracBrowser for help on using the repository browser.