# -*- 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           app 1.0
PortGroup           bitbucket 1.0

bitbucket.setup     czirkoszoltan gdash c8390151fb1181a7d8c81df8eab67ab2cbf018e0
version             20210813unstable
revision            0
checksums           rmd160  855bc17f41809a0c60c1dcbf7bc4d08137884376 \
                    sha256  730369b26e5234675891b901107b6dbf0ab0158773c7d943a9b8dc5e382fbff5 \
                    size    6169261

categories          games
maintainers         {ryandesign @ryandesign} openmaintainer
license             MIT

description         Emerald Mine-like game for GTK+ and SDL

long_description    ${name} is an ${description}.

depends_build       port:gettext \
                    port:pkgconfig

depends_lib         path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:libpng \
                    port:libsdl2 \
                    port:libsdl2_image \
                    port:libsdl2_mixer \
                    port:mesa

patchfiles          implicit.patch \
                    version.patch

post-patch {
    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/configure.ac
}

# We are patching configure.ac and m4/ax_check_gl.m4.
use_autoreconf      yes
autoreconf.args     -fvi

compiler.cxx_standard 2014

configure.args      --disable-sdltest \
                    --disable-silent-rules

app.name            GDash
app.executable      gdash
app.icon            gdash.png

bitbucket.livecheck master