summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/mdocml/Makefile8
-rw-r--r--textproc/mdocml/pkg-plist2
2 files changed, 10 insertions, 0 deletions
diff --git a/textproc/mdocml/Makefile b/textproc/mdocml/Makefile
index 993ff291a542..48270fe35a7d 100644
--- a/textproc/mdocml/Makefile
+++ b/textproc/mdocml/Makefile
@@ -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>
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
@@ -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