# -*- 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

name                lpairs2
version             2.3.2
categories          games
maintainers         nomaintainer
license             GPL-2+

description         Classical memory game.

long_description    LPairs is a classical memory game. This means you have \
                    to find pairs of identical cards which will then be \
                    removed. Your time and tries needed will be counted \
                    but there is no highscore chart or limit to this.

homepage            https://lgames.sourceforge.net/index.php?project=LPairs
master_sites        sourceforge:lgames

checksums           rmd160  08bbcf89f697ce26849bd873ad982613ae4fe797 \
                    sha256  cb87912d685f2385cc06d182a9d33f97af697ed18621b563544933fefe72b592 \
                    size    11929671

patchfiles-append   patch-uint.diff

post-patch {
    # Fix "make: .././install-sh: Permission denied"
    file attributes ${worksrcpath}/install-sh -permissions a+x
}
depends_lib-append  \
                    port:gettext-runtime

depends_build-append \
                    port:gettext \
                    port:libsdl2 \
                    port:libsdl2_ttf \
                    port:libsdl2_image \
                    port:libsdl2_mixer

# cc1plus: error: unrecognized command line option "-std=c++11"
compiler.cxx_standard 2011

configure.libs-append \
                    -lintl

app.name            LPairs2
app.icon            lpairs2.png
app.identifier      net.sourceforge.lgames.${app.name}

livecheck.type      sourceforge
livecheck.url       https://sourceforge.net/projects/lgames/files/lpairs/
livecheck.regex     ${name}-(\\d+(\\.\\d+)+)

