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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.1
PortGroup           qt5 1.0
PortGroup           active_variants 1.1
PortGroup           app 1.0

github.setup        thliebig AppCSXCAD 379ede4b8e00c11e8d0fb724c35547991b30c423
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20230106-[string range ${github.version} 0 7]
checksums           rmd160  fa4359e0d7b6f77ae2162720a47dfe7d2586083c \
                    sha256  53b107889de36ef7655829988575c69342c52d164edf76f76ca76f0b04fd68aa \
                    size    18807
revision            4

platforms           darwin macosx
categories          science
license             GPL-3
maintainers         {ra1nb0w @ra1nb0w} openmaintainer

description         Minimal GUI Application using the QCSXCAD library
long_description    {*}${description}

compiler.cxx_standard 2011

depends_lib-append \
    port:glew \
    port:vtk \
    port:hdf5 \
    port:CSXCAD \
    port:QCSXCAD \
    port:openEMS

require_active_variants vtk qt5

app.create yes
app.name AppCSXCAD
app.executable AppCSXCAD
app.icon  ${filespath}/logo.icns
app.retina yes