# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
description UNIX manpage compiler
homepage https://mandoc.bsd.lv/
maintainers {grimreaper @grimreaper} {stare.cz:hans @janstary} openmaintainer
platforms openbsd freebsd netbsd darwin
long_description mandoc is a suite of tools compiling mdoc, \
the roff macro language of choice for \
BSD manual pages, and man, the predominant \
historical language for UNIX manuals.
master_sites https://mandoc.bsd.lv/snapshots/
checksums rmd160 5e3702e49a70a270184132bf08f891eb12100ea2 \
sha256 24eb72103768987dcc63b53d27fdc085796330782f44b3b40c4660b1e1ee9b9c \
set filename "${worksrcpath}/configure.local"
MANDIR="${prefix}/share/man"
MANPATH_DEFAULT="${prefix}/share/man:/usr/local/share/man:/usr/share/man"
MANPATH_BASE="/usr/share/man"
# The following files are in conflict with groff:
# bin/soelim, share/man/man1/soelim.1.gz, share/man/man7/roff.7.gz
# Rename them so that mandoc and groff can coexist
CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]"
LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
INSTALL="${configure.install}"
set fd [open "${filename}" "w"]
puts "${fd}" "${content}"
# ./configure takes no args