Skip to content

Commit

Permalink
devel/cxref: new option CPP
Browse files Browse the repository at this point in the history
use ${PREFIX}/share/man
  • Loading branch information
Dirk Meyer authored and Dirk Meyer committed Jan 12, 2024
1 parent ad9e734 commit faf808d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
13 changes: 12 additions & 1 deletion 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/
Expand All @@ -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>
9 changes: 7 additions & 2 deletions 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
Expand All @@ -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

0 comments on commit faf808d

Please sign in to comment.