git: faf808d6ecc2 - main - devel/cxref: new option CPP
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Jan 2024 20:14:03 UTC
The branch main has been updated by dinoex:
URL: https://cgit.FreeBSD.org/ports/commit/?id=faf808d6ecc2407e7dfa3ca59cdc7cbdcd9936f0
commit faf808d6ecc2407e7dfa3ca59cdc7cbdcd9936f0
Author: Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-01-12 20:13:44 +0000
Commit: Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-01-12 20:13:44 +0000
devel/cxref: new option CPP
use ${PREFIX}/share/man
---
devel/cxref/Makefile | 13 ++++++++++++-
devel/cxref/pkg-plist | 9 +++++++--
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/devel/cxref/Makefile b/devel/cxref/Makefile
index 6486e327680d..d0ce10855690 100644
--- a/devel/cxref/Makefile
+++ b/devel/cxref/Makefile
@@ -1,5 +1,6 @@
PORTNAME= cxref
PORTVERSION= 1.6e
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.gedanken.org.uk/software/cxref/download/ \
http://fossies.org/linux/misc/
@@ -13,12 +14,22 @@ LICENSE= GPLv2
USES= gmake shebangfix tar:tgz
SHEBANG_FILES= contrib/xrgr.pl
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --without-cxref-cpp
+GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
ALL_TARGET= programs
+OPTIONS_DEFINE= CPP
+OPTIONS_DEFAULT=
+OPTIONS_SUB=yes
+
+CPP_DESC= with bundled cpp
+CPP_CONFIGURE_WITH= cxref-cpp
+
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
@(cd ${WRKSRC}/contrib && ${INSTALL_DATA} *.el *.pl *.py README* \
${STAGEDIR}${DATADIR})
+post-install-CPP-on:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cxref-cpp
+
.include <bsd.port.mk>
diff --git a/devel/cxref/pkg-plist b/devel/cxref/pkg-plist
index 5d0d2ef3f9f9..71d09b406ddd 100644
--- a/devel/cxref/pkg-plist
+++ b/devel/cxref/pkg-plist
@@ -1,12 +1,13 @@
bin/cxref
bin/cxref-cc
+%%CPP%%bin/cxref-cpp
+%%CPP%%bin/cxref-cpp-configure
bin/cxref-query
-man/man1/cxref-query.1.gz
-man/man1/cxref.1.gz
%%DATADIR%%/README
%%DATADIR%%/README.xrgr
%%DATADIR%%/cflow.el
%%DATADIR%%/cxref.el
+%%CPP%%%%DATADIR%%/cxref-cpp.defines
%%DATADIR%%/cxref_includes.pl
%%DATADIR%%/daVinvi_function.pl
%%DATADIR%%/daVinvi_include.pl
@@ -17,3 +18,7 @@ man/man1/cxref.1.gz
%%DATADIR%%/tree.pl
%%DATADIR%%/xrefgraph.py
%%DATADIR%%/xrgr.pl
+%%CPP%%share/man/man1/cxref-cpp-configure.1.gz
+%%CPP%%share/man/man1/cxref-cpp.1.gz
+share/man/man1/cxref-query.1.gz
+share/man/man1/cxref.1.gz