blob: 6c5a8ead5ed3d061bff233e2e0f4c17ee7c6fad0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $NetBSD: Makefile,v 1.51 2015/10/10 01:58:20 ryoon Exp $
DISTNAME= mdocml-1.13.3
PKGREVISION= 3
CATEGORIES= textproc devel
MASTER_SITES= http://mdocml.bsd.lv/snapshots/
MAINTAINER= kristaps@kth.se
HOMEPAGE= http://mdocml.bsd.lv/
COMMENT= Convert man pages from mdoc, man, and tbl to txt, html, ps, or pdf
LICENSE= 2-clause-bsd # not exactly, but near enough
HAS_CONFIGURE= yes
CONFLICTS= man-pages-[0-9]*
SUBST_CLASSES+= roff
SUBST_STAGE.roff= pre-build
SUBST_FILES.roff= mandoc.1 mandoc.3
SUBST_FILES.roff+= eqn.7 man.7 mdoc.7 tbl.7
SUBST_SED.roff= -e 's,Xr roff,Xr mandoc-roff,g'
.include "../../mk/bsd.fast.prefs.mk"
post-extract:
${ECHO} PREFIX=${PREFIX} > ${WRKSRC}/configure.local
${ECHO} MANDIR=${PREFIX}/${PKGMANDIR} >> ${WRKSRC}/configure.local
${ECHO} CFLAGS=\"${CFLAGS:Q}\" >> ${WRKSRC}/configure.local
${ECHO} DBLIB=\"${LDFLAGS} -lsqlite3\" >> ${WRKSRC}/configure.local
${ECHO} INSTALL=\"${INSTALL:Q}\" >> ${WRKSRC}/configure.local
${ECHO} INSTALL_PROGRAM=\"${INSTALL_PROGRAM:Q}\" >> ${WRKSRC}/configure.local
${ECHO} INSTALL_LIB=\"${INSTALL_DATA:Q}\" >> ${WRKSRC}/configure.local
${ECHO} INSTALL_MAN=\"${INSTALL_MAN:Q}\" >> ${WRKSRC}/configure.local
${ECHO} INSTALL_DATA=\"${INSTALL_DATA:Q}\" >> ${WRKSRC}/configure.local
${ECHO} MANM_ROFF="mandoc-roff" >> ${WRKSRC}/configure.local
# Mac OS X and Solaris 10 and newer do not support static binaries.
.if ${OPSYS} == "Darwin" || ${OPSYS} == "SunOS"
${ECHO} STATIC= >> ${WRKSRC}/configure.local
.endif
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|