diff --git a/textproc/mdocml/Makefile b/textproc/mdocml/Makefile index 993ff291a542..48270fe35a7d 100644 --- a/textproc/mdocml/Makefile +++ b/textproc/mdocml/Makefile @@ -1,28 +1,36 @@ PORTNAME= mdocml PORTVERSION= 1.14.6 CATEGORIES= textproc MASTER_SITES= http://mdocml.bsd.lv/snapshots/ \ LOCAL/uqs DISTNAME= mandoc-${DISTVERSION} MAINTAINER= uqs@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 diff --git a/textproc/mdocml/pkg-plist b/textproc/mdocml/pkg-plist index 4ff587f96d4e..0e1bcf8dca17 100644 --- a/textproc/mdocml/pkg-plist +++ b/textproc/mdocml/pkg-plist @@ -1,22 +1,24 @@ bin/apropos bin/demandoc @comment bin/man bin/mandoc bin/soelim bin/whatis man/man1/apropos.1.gz man/man1/demandoc.1.gz @comment man/man1/man.1.gz man/man1/mandoc.1.gz man/man1/soelim.1.gz man/man1/whatis.1.gz man/man5/man.conf.5.gz man/man5/mandoc.db.5.gz man/man7/eqn.7.gz man/man7/man.7.gz man/man7/mandoc_char.7.gz man/man7/mdoc.7.gz @comment man/man7/roff.7.gz man/man7/tbl.7.gz man/man8/makewhatis.8.gz sbin/makewhatis +%%WWWDIR%%/cgi-bin/man.cgi +%%WWWDIR%%/htdocs/mandoc.css