# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           love 1.0

github.setup        Stabyourself mari0 f00ca704b1d18bfa740936cfe77113af987acf68
version             1.6.2
revision            1
checksums           rmd160  49ba6872ce6b3cb91995cc3774983f61f250cfba \
                    sha256  ce8e89d1a3a080e8dc0a67e15c0c434dd9a9b474aac13afdf44dc709bf9b0a06 \
                    size    3509174

categories          games
maintainers         {ryandesign @ryandesign} openmaintainer
license             MIT GPL-2+ public-domain

description         a recreation of Super Mario Bros. with puzzle game \
                    mechanics from Portal

long_description    Two genre-defining games from completely different eras: \
                    Nintendo's Super Mario Bros. and Valve's Portal. These two \
                    games managed to give platformers and first-person puzzle \
                    games a solid place in the video game world. But what if \
                    Nintendo teamed up with Valve and recreated the famous \
                    Mario game with Portal gun mechanics?

homepage            https://stabyourself.net/mari0/
github.tarball_from archive

depends_build       port:ImageMagick7 \
                    port:makeicns

love.branch         11

love.exclude        .* \
                    README.md

app.icon            ${workpath}/icon.icns
app.identifier      net.stabyourself.${app.name}

post-build {
    foreach size [list 512 256 128 16] {
        system -W ${workpath} \
            "${prefix}/lib/ImageMagick7/bin/magick [shellescape ${worksrcdir}/graphics/icon.png] -filter box -resize ${size}x${size} ${size}.png"
    }
    system -W ${workpath} \
        "${prefix}/bin/makeicns -512 512.png -256 256.png -128 128.png -32 [shellescape ${worksrcdir}/graphics/icon.png] -16 16.png -out icon.icns"
}
