freebsd-ports/textproc/mdocml/Makefile
2023-07-04 21:51:13 +02:00

36 lines
857 B
Makefile

PORTNAME= mdocml
PORTVERSION= 1.14.6
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}|' \
${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>