mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
- add USE_GCC=2.95 and unbreak this port
- replace PREFIX with LOCALBASE when calling antlr - re-indent Makefile
This commit is contained in:
parent
2a32af90be
commit
819838c8f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120737
@ -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
|
||||
@ ${MKDIR} ${PREFIX}/share/doc/cccc
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/cccc
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for f in ${PORTDOCS}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -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
|
||||
+
|
||||
|
@ -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%%
|
||||
|
Loading…
Reference in New Issue
Block a user