36 lines
894 B
Plaintext
36 lines
894 B
Plaintext
# Template file for 'mdocml'
|
|
pkgname=mdocml
|
|
version=1.12.3
|
|
revision=3
|
|
makedepends="db185"
|
|
replaces="groff>=0 man-db>=0"
|
|
short_desc="mdoc macro compiler"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="ISC"
|
|
homepage="http://mdocml.bsd.lv"
|
|
distfiles="${homepage}/snapshots/mdocml-$version.tar.gz"
|
|
checksum=8ae7f7d471d52313707c4d78b25846dc4edca395b36ad20f24dead5399c13ee6
|
|
|
|
do_build() {
|
|
make DBLIB=-ldb ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make MANDIR=/usr/share/man BINDIR=/usr/bin \
|
|
EXAMPLEDIR=/usr/share/examples/mdocml \
|
|
PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
|
|
# remove devel stuff.
|
|
rm -rf ${DESTDIR}/usr/{include,lib}
|
|
|
|
# Install apropos, catman, mandocdb and whatis.
|
|
for f in apropos catman whatis mandocdb; do
|
|
vinstall ${f} 755 usr/bin
|
|
if [ -f ${f}.1 ]; then
|
|
vinstall ${f}.1 644 usr/share/man/man1
|
|
elif [ -f ${f}.8 ]; then
|
|
vinstall ${f}.8 644 usr/share/man/man8
|
|
fi
|
|
done
|
|
}
|