Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2023 00:47:36 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 513c2583ad36 - main - textproc/mdocml: build and install man.cgi
Message-ID:  <202302220047.31M0laq3040742@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/ports/commit/?id=513c2583ad366628c03c238ae5553a42beea7fcc

commit 513c2583ad366628c03c238ae5553a42beea7fcc
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-02-22 00:46:00 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-02-22 00:47:06 +0000

    textproc/mdocml: build and install man.cgi
    
    PR:             269604
    Approved by:    uqs (maintainer)
    Sponsored by:   DARPA
---
 textproc/mdocml/Makefile  | 8 ++++++++
 textproc/mdocml/pkg-plist | 2 ++
 2 files changed, 10 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302220047.31M0laq3040742>