# -*- 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
# $Id: Portfile 71227 2010-09-05 14:40:00Z ryandesign@macports.org $

PortSystem          1.0

name                mdocml
version             1.10.5
categories          textproc sysutil
platforms           darwin
maintainers         nomaintainer

description         BSD.lv's mldoc - a groff replacement

long_description    mdocml is a collection of tools for \
                    compiling \"-mdoc\", the roff macro package for \
                    BSD manual pages. mdocml should deprecate the \
                    standard GNU roff for displaying -mdoc pages \
                    whereas the original -mdoc tokens are supported.

homepage            http://mdocml.bsd.lv/
master_sites        ${homepage}snapshots/

checksums           sha1    20a3ef8806b4107841b91816ab638b2cab7b0a3b \
                    rmd160  ac1d9736ee67e6f78a382dff1e5ef96f75a45822

patchfiles          patch-Makefile.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
}

use_configure       no

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

build.args          CC="${configure.cc} ${archflags}"
