aboutsummaryrefslogtreecommitdiff
path: root/devel/cccc
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-11-04 01:20:49 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-11-04 01:20:49 +0000
commit819838c8f7d4bffae62d9d37231b38230f042bb7 (patch)
tree1ac3804a3acefe2ea38e17aa049eff8499c3eb1a /devel/cccc
parent2a32af90be4370ce537b6088584f221aa5146413 (diff)
downloadports-819838c8f7d4bffae62d9d37231b38230f042bb7.tar.gz
ports-819838c8f7d4bffae62d9d37231b38230f042bb7.zip
Notes
Diffstat (limited to 'devel/cccc')
-rw-r--r--devel/cccc/Makefile51
-rw-r--r--devel/cccc/files/patch-aa2
-rw-r--r--devel/cccc/pkg-plist12
3 files changed, 34 insertions, 31 deletions
diff --git a/devel/cccc/Makefile b/devel/cccc/Makefile
index be4d719b1af9..56c76e8a1bd7 100644
--- a/devel/cccc/Makefile
+++ b/devel/cccc/Makefile
@@ -6,38 +6,43 @@
# $FreeBSD$
#
-PORTNAME= cccc
-PORTVERSION= 2.1.1
+PORTNAME= cccc
+PORTVERSION= 2.1.1
PORTREVISION= 1
-CATEGORIES= devel textproc www
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
+CATEGORIES= devel textproc www
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= devel/lang/c++
-DISTNAME= ${PORTNAME}-${PORTVERSION}.src
+DISTNAME= ${PORTNAME}-${PORTVERSION}.src
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= C and C++ Code Counter
-BUILD_DEPENDS= antlr:${PORTSDIR}/devel/pccts \
- dlg:${PORTSDIR}/devel/pccts
+BUILD_DEPENDS= antlr:${PORTSDIR}/devel/pccts \
+ dlg:${PORTSDIR}/devel/pccts
-WRKSRC= ${WRKDIR}/usr/local/src/cccc-2.1.1
-USE_GMAKE= yes
-MAKEFILE= makefile
-MAKE_ENV= OSTYPE=FreeBSD
+WRKSRC= ${WRKDIR}/usr/local/src/${PORTNAME}-${PORTVERSION}
+USE_GMAKE= yes
+MAKEFILE= makefile
+MAKE_ENV= OSTYPE=FreeBSD
+USE_GCC= 2.95
+USE_REINPLACE= yes
-.include <bsd.port.pre.mk>
+PORTDOCS= readme.txt
-.if ${OSVERSION} >= 502000
-BROKEN= "Does not compile"
-.endif
+post-patch:
+ ${REINPLACE_CMD} -e 's,=g++,=${CXX},g' ${WRKSRC}/${MAKEFILE}
do-install:
- @ ${INSTALL_PROGRAM} ${WRKSRC}/cccc ${PREFIX}/bin
- @ ${MKDIR} ${PREFIX}/share/cccc
-.for file in cccc_inf.dat cccc_met.dat cccc_tmt.dat cccc_ug.htm
- @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/cccc
+ @${INSTALL_PROGRAM} ${WRKSRC}/cccc ${PREFIX}/bin
+ @${MKDIR} ${DATADIR}
+.for f in cccc_inf.dat cccc_met.dat cccc_tmt.dat cccc_ug.htm
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
+.endfor
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
- @ ${MKDIR} ${PREFIX}/share/doc/cccc
- @ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/cccc
+.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/cccc/files/patch-aa b/devel/cccc/files/patch-aa
index ed4207c44a93..2bab59e2b4cb 100644
--- a/devel/cccc/files/patch-aa
+++ b/devel/cccc/files/patch-aa
@@ -25,7 +25,7 @@
+
+ ## preferred directories for FreeBSD is under /usr/local tree
+ ## we need pccts installed from package
-+ PCCTS = $(PREFIX)
++ PCCTS = $(LOCALBASE)
+ PCCTS_H = $(PCCTS)/include/pccts
+ PCCTS_BIN = $(PCCTS)/bin
+
diff --git a/devel/cccc/pkg-plist b/devel/cccc/pkg-plist
index b5076aedd46e..8c18b7e5c51a 100644
--- a/devel/cccc/pkg-plist
+++ b/devel/cccc/pkg-plist
@@ -1,9 +1,7 @@
@comment $FreeBSD$
bin/cccc
-share/cccc/cccc_inf.dat
-share/cccc/cccc_met.dat
-share/cccc/cccc_tmt.dat
-share/cccc/cccc_ug.htm
-share/doc/cccc/readme.txt
-@dirrm share/cccc
-@dirrm share/doc/cccc
+%%DATADIR%%/cccc_inf.dat
+%%DATADIR%%/cccc_met.dat
+%%DATADIR%%/cccc_tmt.dat
+%%DATADIR%%/cccc_ug.htm
+@dirrm %%DATADIR%%