# -*- 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 0.1.0
revision            0
epoch               1
categories          fortran graphics
license             ISC
maintainers         nomaintainer
description         Fortran 2003 interface bindings to Xlib
long_description    {*}${description}
checksums           rmd160  32a01b5614e79310311649e8cd5931a25c2ab536 \
                    sha256  409ad51618d3945983cccc9cd6f650db1cbf7c4188b810eb9d80803acc6dac66 \
                    size    23397
github.tarball_from archive

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}
}
