# -*- 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        polyml polyml 5.9.2 v
revision            0
checksums           rmd160  64bcb848aac2d8825f397c41cde119b2cd236d91 \
                    sha256  5cf5f77767568c25cf880acc2d0a32ee3d399e935475ab1626e8192fc3b07390 \
                    size    3878657

categories          lang sml
maintainers         {veonix.com:phil.clayton @pclayton} openmaintainer
license             LGPL-2.1
description         An implementation of Standard ML.
long_description    Poly/ML is an extremely fast and efficient implementation of \
                    Standard ML. Program state can be saved in a memory-mapped \
                    persistent store. There are numerous addon libraries available.

homepage            https://www.polyml.org
github.tarball_from archive

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         port:gmp

# https://trac.macports.org/wiki/WimplicitFunctionDeclaration#strchr
configure.checks.implicit_function_declaration.whitelist-append strchr

configure.args      --build=${configure.build_arch}-apple-darwin${os.major} \
                    --enable-shared \
                    --without-x

post-destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} COPYING \
        ${destroot}${prefix}/share/doc/${name}
}
