aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2004-11-04 09:20:49 +0800
committerleeym <leeym@FreeBSD.org>2004-11-04 09:20:49 +0800
commitc737f2389c3b9ddbbb69b06dce28d1bd6d9ebcab (patch)
tree40d0c97331c6abfe9a4d058d747fcd3b28cfbbc2 /devel
parentacd27f871a8c2959bd288a0af75b52c062f4ad18 (diff)
downloadfreebsd-ports-gnome-c737f2389c3b9ddbbb69b06dce28d1bd6d9ebcab.tar.gz
freebsd-ports-gnome-c737f2389c3b9ddbbb69b06dce28d1bd6d9ebcab.tar.zst
freebsd-ports-gnome-c737f2389c3b9ddbbb69b06dce28d1bd6d9ebcab.zip
- add USE_GCC=2.95 and unbreak this port
- replace PREFIX with LOCALBASE when calling antlr - re-indent Makefile
Diffstat (limited to 'devel')
-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%%