1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/textproc/mdocml/Makefile
Muhammad Moinur Rahman 9a2c9f6d94
textproc/mdocml: Moved man to share/man
Approved by:    portmgr (blanket)
2024-02-26 09:06:02 +01:00

39 lines
922 B
Makefile

PORTNAME= mdocml
PORTVERSION= 1.14.6
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://mdocml.bsd.lv/snapshots/ \
LOCAL/uqs
DISTNAME= mandoc-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= mdoc macro compiler
WWW= https://mdocml.bsd.lv/
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
EXAMPLESDIR= ${PREFIX}/share/examples/mandoc
HAS_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-configure:
@${REINPLACE_CMD} -e '/^CFLAGS/s/=/?=/' -e '/^PREFIX/s/=/?=/' \
-e 's/^INSTALL_PROGRAM.*/INSTALL_PROGRAM=${INSTALL_PROGRAM}/' \
-e 's|/var/www|${WWWDIR}|' \
-e 's|^MANDIR.*|MANDIR=${PREFIX}/share/man|' \
${WRKSRC}/Makefile.local
cp ${WRKSRC}/cgi.h.example ${WRKSRC}/cgi.h
post-build:
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} man.cgi
post-install:
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} cgi-install
.include <bsd.port.mk>