PortSystem 1.0

name			libowfat
version			0.28
categories		devel
platforms		darwin
maintainers		yoobay.net:daniel
description		reimplementation of the libdjb under GPL
long_description	reimplementation of the libdjb under GPL
homepage		http://www.fefe.de/libowfat/
master_sites		http://dl.fefe.de/
checksums		md5     6bbee9a86506419657d87123b7a6f2c1 \
			sha1    6bbe997ae1bbe94b784ab50a3d44b63a2e08d857 \
			rmd160  3e8826e10a3f46520bdfa9602edb2741728aa370
use_bzip2		yes
patchfiles		patch-GNUmakefile
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}"