mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
- Respect CXX/CXXFLAGS (fixes build with clang)
- Remove unnecessary BUILD_DEPENDS - Add LICENSE PR: ports/184898 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
270ddb684b
commit
f1d41d9a0c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337352
@ -3,28 +3,45 @@
|
|||||||
|
|
||||||
PORTNAME= cccc
|
PORTNAME= cccc
|
||||||
PORTVERSION= 3.1.4
|
PORTVERSION= 3.1.4
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= devel textproc www
|
CATEGORIES= devel textproc www
|
||||||
MASTER_SITES= SF
|
MASTER_SITES= SF
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= C and C++ Code Counter
|
COMMENT= C and C++ Code Counter
|
||||||
|
|
||||||
BUILD_DEPENDS= antlr:${PORTSDIR}/devel/pccts \
|
LICENSE= GPLv2 # (or later)
|
||||||
dlg:${PORTSDIR}/devel/pccts
|
|
||||||
|
|
||||||
USES= gmake
|
USES= gmake
|
||||||
MAKEFILE= makefile
|
MAKEFILE= makefile
|
||||||
|
MAKE_ENV= CCC="${CXX}" LD="${CXX}" CFLAGS_DEBUG="${CXXFLAGS}"
|
||||||
MAKE_JOBS_UNSAFE= yes
|
MAKE_JOBS_UNSAFE= yes
|
||||||
MAKE_ARGS= CCC="${CXX}"
|
|
||||||
|
|
||||||
PORTDOCS= readme.txt changes.txt
|
PORTDOCS= readme.txt changes.txt
|
||||||
PLIST_FILES= bin/cccc
|
PLIST_FILES= bin/cccc
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} -e \
|
||||||
|
'/^all/s|install|| ; \
|
||||||
|
s| make| $$(MAKE)| ; \
|
||||||
|
s|su root -c|| ; \
|
||||||
|
s|"make|"$$(MAKE)|' ${WRKSRC}/makefile
|
||||||
|
@${REINPLACE_CMD} -e \
|
||||||
|
's|^CCC=|CCC?=| ; \
|
||||||
|
s|^LD=|LD?=|' ${WRKSRC}/cccc/posixgcc.mak
|
||||||
|
@${REINPLACE_CMD} -e \
|
||||||
|
's| make| $$(MAKE)|' ${WRKSRC}/pccts/makefile
|
||||||
|
.for i in antlr dlg
|
||||||
|
@${REINPLACE_CMD} -e \
|
||||||
|
's|^CC=|CC?=| ; \
|
||||||
|
s|^CFLAGS= -O |CFLAGS +=|' ${WRKSRC}/pccts/${i}/makefile
|
||||||
|
.endfor
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/cccc/cccc ${STAGEDIR}${PREFIX}/bin
|
(cd ${WRKSRC}/cccc && ${INSTALL_PROGRAM} cccc ${STAGEDIR}${PREFIX}/bin)
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.for f in ${PORTDOCS}
|
.for i in ${PORTDOCS}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
--- ./makefile.orig 2001-04-25 18:30:29.000000000 +0200
|
|
||||||
+++ ./makefile 2011-07-01 03:41:44.000000000 +0200
|
|
||||||
@@ -8,17 +8,17 @@
|
|
||||||
|
|
||||||
.PHONY : pccts cccc test install
|
|
||||||
|
|
||||||
-all : pccts cccc test install
|
|
||||||
+all : pccts cccc test
|
|
||||||
|
|
||||||
pccts :
|
|
||||||
- cd pccts ; make
|
|
||||||
+ cd pccts ; gmake
|
|
||||||
|
|
||||||
cccc :
|
|
||||||
- cd cccc ; make -f posixgcc.mak
|
|
||||||
+ cd cccc ; gmake -f posixgcc.mak
|
|
||||||
|
|
||||||
test :
|
|
||||||
- cd test ; make -f posix.mak
|
|
||||||
+ cd test ; gmake -f posix.mak
|
|
||||||
|
|
||||||
install :
|
|
||||||
- cd install ; su root -c "make -f install.mak"
|
|
||||||
+ cd install ; gmake -f install.mak
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
--- pccts/makefile.orig Mon Sep 4 21:13:16 2006
|
|
||||||
+++ pccts/makefile Mon Sep 4 21:13:28 2006
|
|
||||||
@@ -41,16 +41,16 @@
|
|
||||||
#
|
|
||||||
if [ ! -d $(BINDIR) ] ; then mkdir $(BINDIR) ; fi
|
|
||||||
echo Making executables...
|
|
||||||
- (cd antlr; make -s)
|
|
||||||
+ (cd antlr; gmake -s)
|
|
||||||
echo antlr executable now in $(BINDIR)
|
|
||||||
- (cd dlg; make -s)
|
|
||||||
+ (cd dlg; gmake -s)
|
|
||||||
echo dlg executable now in $(BINDIR)
|
|
||||||
echo
|
|
||||||
echo " PCCTS 1.33MR20 installation complete"
|
|
||||||
|
|
||||||
clean:
|
|
||||||
- (cd antlr; make -s clean)
|
|
||||||
- (cd dlg; make -s clean)
|
|
||||||
+ (cd antlr; gmake -s clean)
|
|
||||||
+ (cd dlg; gmake -s clean)
|
|
||||||
|
|
||||||
|
|
||||||
manpages:
|
|
@ -1,6 +1,6 @@
|
|||||||
Source code metric analyser for C, C++ and Java.
|
Source code metric analyser for C, C++, Java and Ada
|
||||||
Presents a report in HTML with figures for
|
Presents a report in HTML with figures for
|
||||||
Lines of Code, McCabes Complexity, Ratio of Comments
|
Lines of Code, McCabes Complexity, Ratio of Comments
|
||||||
to Lines of Code and McCabe, module Fan-In and Fan-Out.
|
to Lines of Code and McCabe, module Fan-In and Fan-Out
|
||||||
|
|
||||||
WWW: http://cccc.sourceforge.net/
|
WWW: http://cccc.sourceforge.net/
|
||||||
|
Loading…
Reference in New Issue
Block a user