# $Id: Portfile 154186 2016-10-23 17:53:48Z khindenburg@macports.org $ PortSystem 1.0 PortGroup app 1.0 name blobwars version 2.00 categories games platforms darwin maintainers nomaintainer license GPL-2+ installs_libs no description jump and run game featuring a Blob as main character long_description In Blob Wars : Metal Blob Solid, you take on the role \ of a fearless Blob agent, Bob. Bob's mission is to \ infiltrate the various enemy bases around the Blobs' \ homeworld and rescue as many MIAs as possible. But \ standing in his way are many vicious aliens, other \ Blobs who have been assimilated and the evil alien \ leader, Galdov. homepage http://www.parallelrealities.co.uk/p/blob-wars-metal-blob-solid.html master_sites sourceforge:project/blobwars checksums rmd160 c4a54ce0f64db2fc6038590eb22d1b2241b0917f \ sha256 c406279f6cdf2aed3c6edb8d8be16efeda0217494acd525f39ee2bd3e77e4a99 depends_build-append path:bin/pkg-config:pkgconfig depends_lib-append port:gettext \ port:libsdl2 \ port:libsdl2_image \ port:libsdl2_ttf \ port:libsdl2_mixer \ port:libsdl2_net \ port:zlib post-extract { copy ${filespath}/${name}.in ${workpath}/${name} system -W ${worksrcpath} "find . -type d -exec chmod 755 {} \\;" system -W ${worksrcpath} "find . -type f -exec chmod 666 {} \\;" } patchfiles patch-makefile.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name} } use_configure no variant universal {} use_parallel_build yes build.args PREFIX=${prefix} build.env CXX="${configure.cxx} [get_canonical_archflags cxx]" \ CFLAGS="${configure.cppflags}" \ USEPAK=1 destroot.destdir PREFIX=${destroot}${prefix} post-destroot { file delete -force ${destroot}${prefix}/share/applications \ ${destroot}${prefix}/share/icons copy ${worksrcpath}/blobwars.pak ${destroot}${prefix}/share/games/${name} } app.name Blob Wars app.executable ${workpath}/${name} app.icon gfx/main/alienDevice.png app.identifier uk.co.parallelrealities.BlobWars livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}