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

github.setup        rbowler spinhawk 3.13 release-
name                hercules
revision            0

categories          emulators
platforms           darwin
maintainers         nomaintainer
license             QPL

homepage            http://www.hercules-390.org/

description         The Hercules IBM Large Systems Emulator

long_description    Hercules is an emulator for the IBM mainframe \
                    S/370, ESA/390, and z architectures.

checksums           rmd160  d9da34f9bff1d670c385d82363a7423a3731bb26 \
                    sha256  6e05b3fc2affbeab02d3504f79a1e70d49a9aba2372be91e01aff0e91729d6d9 \
                    size    2480971

github.tarball_from archive

use_autoconf        yes

autoconf.cmd        ./autogen.sh

depends_build       port:autoconf \
                    port:automake

depends_lib         port:bzip2 \
                    port:gettext \
                    port:libiconv \
                    port:zlib

configure.args      --enable-cckd-bzip2 \
                    --enable-het-bzip2 \
                    --enable-optimization=yes \
                    --disable-fthreads

post-extract {
    # Make autoconf script executable
    file attributes ${worksrcpath}/autogen.sh -permissions ugo+x
}

universal_variant   no
