mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
819838c8f7
- replace PREFIX with LOCALBASE when calling antlr - re-indent Makefile
49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: cccc
|
|
# Date created: 12 September 1997
|
|
# Whom: Andrey Zakhvatov
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cccc
|
|
PORTVERSION= 2.1.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel textproc www
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
MASTER_SITE_SUBDIR= devel/lang/c++
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= C and C++ Code Counter
|
|
|
|
BUILD_DEPENDS= antlr:${PORTSDIR}/devel/pccts \
|
|
dlg:${PORTSDIR}/devel/pccts
|
|
|
|
WRKSRC= ${WRKDIR}/usr/local/src/${PORTNAME}-${PORTVERSION}
|
|
USE_GMAKE= yes
|
|
MAKEFILE= makefile
|
|
MAKE_ENV= OSTYPE=FreeBSD
|
|
USE_GCC= 2.95
|
|
USE_REINPLACE= yes
|
|
|
|
PORTDOCS= readme.txt
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,=g++,=${CXX},g' ${WRKSRC}/${MAKEFILE}
|
|
|
|
do-install:
|
|
@${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
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|