textproc/mdocml: build and install man.cgi

PR:		269604
Approved by:	uqs (maintainer)
Sponsored by:	DARPA
This commit is contained in:
Brooks Davis 2023-02-22 00:46:00 +00:00
parent 1e0b7c14fc
commit 513c2583ad
2 changed files with 10 additions and 0 deletions

View file

@ -23,6 +23,14 @@ 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>

View file

@ -20,3 +20,5 @@ man/man7/mdoc.7.gz
man/man7/tbl.7.gz
man/man8/makewhatis.8.gz
sbin/makewhatis
%%WWWDIR%%/cgi-bin/man.cgi
%%WWWDIR%%/htdocs/mandoc.css