# -*- 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           cmake 1.1
PortGroup           github 1.0

github.setup        pmetzger zimh 1f0fa5b3e76022c707d18c3db4951696d8643811
github.tarball_from archive
version             20260529-[string range ${github.version} 0 7]
revision            0

checksums           rmd160  75f164f8552d039ff02bd89bf480a8e0d0dd79f1 \
                    sha256  395cc279a12c67b991a91c9b6ad4fbc97efbee7d75e7228856511c41d3a31e52 \
                    size    32715062

categories          emulators
license             X11
maintainers         {pmetzger @pmetzger} openmaintainer

description         Historical computer simulator forked from SIMH

long_description    ZIMH, which stands for \"ZIMH Implements Machine History\", \
                    is a software emulator for historically important \
                    computer systems and peripherals. It is a hard fork of \
                    SIMH with a substantially different development track.

homepage            https://github.com/pmetzger/zimh

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

depends_lib-append  port:freetype \
                    port:libedit \
                    port:libpcap \
                    port:libpng \
                    port:libslirp \
                    port:libsdl2 \
                    port:libsdl2_ttf \
                    port:ncurses \
                    port:pcre2 \
                    port:vde2-devel \
                    port:zlib

compiler.c_standard 2017

configure.args-append \
                    -DENABLE_DEP_BUILD=Off \
                    -DWITH_UNIT_TESTS=Off

test.run            yes
test.cmd            ctest

livecheck.type      none
