Skip to content

Commit

Permalink
textproc/mdocml: build and install man.cgi
Browse files Browse the repository at this point in the history
PR:		269604
Approved by:	uqs (maintainer)
Sponsored by:	DARPA
  • Loading branch information
brooksdavis committed Feb 22, 2023
1 parent 1e0b7c1 commit 513c258
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions textproc/mdocml/Makefile
Expand Up @@ -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>
2 changes: 2 additions & 0 deletions textproc/mdocml/pkg-plist
Expand Up @@ -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

0 comments on commit 513c258

Please sign in to comment.