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

name                    enigma
subport                 enigma-devel {}

if {${subport} eq "enigma"} {
    github.setup            Enigma-Game Enigma 1.30
    github.tarball_from     releases
    conflicts               enigma-devel
    revision                1
    distname                ${github.project}-${version}-src
    worksrcdir              ${name}-${version}
    checksums               rmd160  e6ff23ca7859d468175abd821f89a6434f65c396 \
                            sha256  ae64b91fbc2b10970071d0d78ed5b4ede9ee3868de2e6e9569546fc58437f8af \
                            size    43653520
} elseif {${subport} eq "enigma-devel"} {
    conflicts               enigma

    github.setup            Enigma-Game Enigma 24fb5d6b28acb0fc307598c02b41f7dba04069d9
    # Change github.tarball_from to 'releases' or 'archive' next update
    github.tarball_from     tarball
    version                 20241015
    revision                1
    checksums               rmd160  c327baff77dec63d2b4334e9f68ab92c7d1dba61 \
                            sha256  8aba42c30207e069b9e657ecc1f967d16552625a910d72d57d03ddaeb9f2fc26 \
                            size    79256910

    use_autoconf            yes
    autoconf.cmd            ./autogen.sh
    depends_build-append    port:autoconf port:automake
}

categories              games
maintainers             nomaintainer
license                 GPL-2+
homepage                https://www.nongnu.org/enigma/

description             puzzle game inspired by the games Oxyd and Rock'n'Roll

long_description        Enigma is a puzzle game inspired by Oxyd on the Atari ST and Rock'n'Roll \
                        on the Amiga. The object of the game is to find and uncover pairs of \
                        identically colored Oxyd stones. Simple? Yes. Easy? Certainly not! Hidden \
                        traps, vast mazes, laser beams, and, most of all, countless hairy puzzles \
                        usually block your direct way to the Oxyd stones.

depends_build-append    path:bin/pkg-config:pkgconfig \
                        port:ImageMagick \
                        port:texi2html

depends_lib             port:libsdl2 \
                        port:libsdl2_image \
                        port:libsdl2_mixer \
                        port:libsdl2_ttf \
                        port:gettext \
                        port:libenet \
                        port:libpng \
                        port:xercesc3 \
                        port:curl \
                        port:zlib \
                        port:libiconv

compiler.cxx_standard   2014

configure.args          --with-system-enet
