# -*- 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                    fondu
version                 060102
revision                1
checksums               rmd160  e83da2821068e862c80550162cb0dd3cb097b3a5 \
                        sha256  22bb535d670ebc1766b602d804bebe7e84f907c219734e6a955fcbd414ce5794 \
                        size    131516

categories              print
license                 BSD
maintainers             nomaintainer
homepage                https://fondu.sourceforge.net/
master_sites            ${homepage}

description             A set of programs to interconvert between Mac font \
                        formats and pfb, ttf, otf and bdf files on UNIX.

long_description        Dealing with Mac fonts is hard on other operating \
                        systems because Mac fonts are stored in the resource \
                        fork, and other operating systems do not support \
                        this concept. Fondu will extract the resource fork \
                        from either a MacBinary file or a BinHex file. Ufond \
                        will create a resource fork inside a MacBinary file.

extract.suffix          .tgz
distfiles               ${name}_src-${version}${extract.suffix}

patchfiles              Makefile.in.patch

post-patch {
    reinplace "s|^CFLAGS = -g \$(WFLAGS)|CFLAGS = -g \$(WFLAGS) ${configure.cppflags} ${configure.cflags} ${configure.ldflags} [get_canonical_archflags]|g" ${worksrcpath}/Makefile.in
}

post-destroot {
    xinstall -m 644 {*}[glob ${worksrcpath}/*.1] ${destroot}${prefix}/share/man/man1/
}

livecheck.regex      ${name}(?:_src)?-(\\d+)