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

github.setup        realnc qtads 3.4.0 v
revision            0
github.tarball_from releases

categories          games
platforms           darwin
license             GPL-3+
maintainers         nomaintainer

distname            ${github.project}-${github.version}-source
worksrcdir          ${name}-${version}

description         A multimedia TADS interactive fiction player.
long_description    QTads is a so called \"interpreter\" for games created with the Text \
                    Adventure Development System, or \"TADS\" for short, a C-like object \
                    oriented programming language for authoring Interactive Fiction \
                    (similar to the Infocom or Legend Entertainment games, like \"Zork\").

homepage            https://realnc.github.io/qtads/

checksums           rmd160  9647ec92b0a68d95a05d60c8416e15161278b623 \
                    sha256  3c8f1b47ee42d89753d68e7c804ca3677b0c89a5d765d1fd4f80f9cdc29d3473 \
                    size    6059316

use_xz              yes

# QTads does not use or link to OpenSSL directly. It merely uses Qt, for which OpenSSL is
# optional and can be toggled off through a variant.
license_noconflict  openssl

# Minimum requirements taken from qtads.pro :

compiler.c_standard 2011
compiler.cxx_standard \
                    2017

qt5.min_version     5.5

qt5.depends_component \
                    qtsvg

depends_lib-append  port:libsdl2 \
                    port:libsndfile \
                    port:mpg123 \
                    port:fluidsynth \
                    port:libvorbis

destroot {
    move ${worksrcpath}/QTads.app ${destroot}${applications_dir}
}
