source: trunk/dports/games/blobwars/Portfile

Last change on this file was 154186, checked in by khindenburg@…, 9 months ago

blobwars: update to 2.00

  • update depends to sdl2
  • build/install pak file
  • verified plays fine on 10.12
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 154186 2016-10-23 17:53:48Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               app 1.0
5
6name                    blobwars
7version                 2.00
8categories              games
9platforms               darwin
10maintainers             nomaintainer
11license                 GPL-2+
12installs_libs           no
13
14description             jump and run game featuring a Blob as main character
15long_description        In Blob Wars : Metal Blob Solid, you take on the role \
16                        of a fearless Blob agent, Bob. Bob's mission is to \
17                        infiltrate the various enemy bases around the Blobs' \
18                        homeworld and rescue as many MIAs as possible. But \
19                        standing in his way are many vicious aliens, other \
20                        Blobs who have been assimilated and the evil alien \
21                        leader, Galdov.
22
23homepage                http://www.parallelrealities.co.uk/p/blob-wars-metal-blob-solid.html
24master_sites            sourceforge:project/blobwars
25
26checksums               rmd160  c4a54ce0f64db2fc6038590eb22d1b2241b0917f \
27                        sha256  c406279f6cdf2aed3c6edb8d8be16efeda0217494acd525f39ee2bd3e77e4a99
28
29depends_build-append    path:bin/pkg-config:pkgconfig
30
31depends_lib-append      port:gettext \
32                        port:libsdl2 \
33                        port:libsdl2_image \
34                        port:libsdl2_ttf \
35                        port:libsdl2_mixer \
36                        port:libsdl2_net \
37                        port:zlib
38
39post-extract {
40    copy ${filespath}/${name}.in ${workpath}/${name}
41    system -W ${worksrcpath} "find . -type d -exec chmod 755 {} \\;"
42    system -W ${worksrcpath} "find . -type f -exec chmod 666 {} \\;"
43}
44
45patchfiles              patch-makefile.diff
46
47post-patch {
48    reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name}
49}
50
51use_configure           no
52
53variant universal {}
54
55use_parallel_build      yes
56build.args              PREFIX=${prefix}
57build.env               CXX="${configure.cxx} [get_canonical_archflags cxx]" \
58                        CFLAGS="${configure.cppflags}" \
59                        USEPAK=1
60
61destroot.destdir        PREFIX=${destroot}${prefix}
62
63post-destroot {
64    file delete -force ${destroot}${prefix}/share/applications \
65        ${destroot}${prefix}/share/icons
66
67    copy ${worksrcpath}/blobwars.pak ${destroot}${prefix}/share/games/${name}
68}
69
70app.name                Blob Wars
71app.executable          ${workpath}/${name}
72app.icon                gfx/main/alienDevice.png
73app.identifier          uk.co.parallelrealities.BlobWars
74
75livecheck.regex         /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.