git: 70b186d9251f - main - textproc/webcpp: undeprecate and improve the port (+)
Date: Tue, 29 Apr 2025 18:45:46 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=70b186d9251f6fbf7011efabc17e3913a00daa09
commit 70b186d9251f6fbf7011efabc17e3913a00daa09
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-04-29 18:44:32 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-04-29 18:44:32 +0000
textproc/webcpp: undeprecate and improve the port (+)
- Undeprecate: the program works as intended
- Drop seemingly needless CPPFLAGS and LDFLAGS
- Convert .if defined(WANT_FINAL) into an option
- Simplify sed(1) expression in `pre-patch' target
- Vocalize documentation installation command
---
textproc/webcpp/Makefile | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/textproc/webcpp/Makefile b/textproc/webcpp/Makefile
index 54d17ace3c4f..71da17770f4b 100644
--- a/textproc/webcpp/Makefile
+++ b/textproc/webcpp/Makefile
@@ -5,31 +5,27 @@ MASTER_SITES= SF/${PORTNAME}/Webcpp/${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= chip-set@mail.ru
-COMMENT= Convert your source code to syntax highlighted HTML
+COMMENT= Convert source code to syntax-highlighted HTML
WWW= https://webcpp.sourceforge.net/
-DEPRECATED= Abandonware and obsolete, last release in 2004
-EXPIRATION_DATE=2025-04-30
+LICENSE= GPLv2+
GNU_CONFIGURE= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS FINAL
-.if defined(WANT_FINAL)
-CONFIGURE_ARGS+= --enable-final
-USES= gmake
-.endif
+FINAL_DESC= Size-optimized build (experimental: needs lots of RAM)
+FINAL_USES= gmake
+FINAL_CONFIGURE_ON= --enable-final
pre-patch:
${FIND} ${WRKSRC} -name '*.h' | ${XARGS} ${REINPLACE_CMD} \
- 's|IO->close()|if(IO) IO->close()|g'
+ -e 's|IO->close()|if (IO) &|'
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in AUTHORS COPYING README TODO docs.html
- @${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>