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

name                libowfat
version             0.28
categories          devel
platforms           darwin
maintainers         nomaintainer

description         reimplementation of the libdjb under GPL
long_description    reimplementation of the libdjb under GPL

homepage            https://www.fefe.de/libowfat/
master_sites        https://dl.fefe.de/

checksums           md5     6bbee9a86506419657d87123b7a6f2c1 \
                    sha1    6bbe997ae1bbe94b784ab50a3d44b63a2e08d857 \
                    rmd160  3e8826e10a3f46520bdfa9602edb2741728aa370 \
                    sha256  392348c2bbde78cde001ba0ef62c8c2ae27105218fc3ba3833d13d26ecdaa541 \
                    size    129622

use_bzip2           yes
patchfiles          patch-GNUmakefile.diff

use_configure       no

build.args          prefix=${prefix} \
                    CC=${configure.cc}

destroot.destdir    prefix=${destroot}${prefix}

post-destroot {
    # Avoid name clashes with other ports
    foreach f [glob ${destroot}${prefix}/share/man/man3/*] {
        move ${f} "[file dirname ${f}]/libowfat-[file tail ${f}]"
    }
}

livecheck.type      regex
livecheck.regex     "${name}-(\\d+\\.(?:.\\d+)*)${extract.suffix}"
