# -*- 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           compilers 1.0
PortGroup           github 1.0
PortGroup           makefile 1.0

github.setup        interkosmos fortran-xlib 88a1d1039fcff1bf8005bfea35cc8624e7ed6487
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             2023.05.27
revision            0
categories          fortran graphics
license             ISC
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Fortran 2003 interface bindings to Xlib
long_description    {*}${description}
checksums           rmd160  501b0d45ce8a65aa659e63c9e0bdd003d7af0545 \
                    sha256  e666a82cb5fc83fcbebb5d23d817feb6c15877e01c1271f305ca321999ea2e7a \
                    size    23402

depends_lib-append  port:xorg-libX11

compilers.setup     require_fortran
compiler.blacklist-append *gcc-4.* {clang < 500}

build.target        all

destroot {
    copy ${worksrcpath}/libfortran-xlib.a ${destroot}${prefix}/lib
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENCE README.md ${destroot}${docdir}
}
