1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/devel/ncc/Makefile
Volker Stolz 8a94d2842c ncc is a compiler that produces program analysis information.
ncc is a decent replacement of cflow and cscope able to analyse any
program using the gcc compiler. The program also includes a graphical
call-graph navigator and source browser which is extremely practical
for hacking and comprehending large projects.

WWW: http://students.ceid.upatras.gr/~sxanth/ncc/
2006-02-01 13:48:21 +00:00

48 lines
1.3 KiB
Makefile

# Ports collection makefile for: ncc
# Date created: February 1, 2006
# Whom: Volker Stolz <vs@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ncc
PORTVERSION= 2.3
CATEGORIES= devel
MASTER_SITES= http://students.ceid.upatras.gr/~sxanth/ncc/
MAINTAINER= vs@FreeBSD.org
COMMENT= Program analysis tool and call-graph navigator
USE_GMAKE= yes
ALL_TARGET= # empty
MAKE_ARGS+= CC="${CXX}" LCFLAGS="${CFLAGS}"
CFLAGS+= -DNOGNU='\"${PREFIX}/include/ncc/nognu\"' -fpermissive
PLIST_FILES= bin/ncc bin/nccnav bin/nccnavi bin/ncc-gengraph.py \
${LINKS:S+^+bin/+} include/ncc/nognu
PLIST_DIRS= include/ncc
PORTDOCS= *
LINKS= nccar nccld nccc++ nccg++
MAN1= ncc.1
post-patch:
@${REINPLACE_CMD} -e '/NOGNU/d' ${WRKSRC}/config.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objdir/ncc ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/scripts/gengraph.py ${PREFIX}/bin/ncc-gengraph.py
${INSTALL_PROGRAM} ${WRKSRC}/nccnav/nccnav ${PREFIX}/bin
.for i in ${LINKS}
${LN} -sf ${PREFIX}/bin/ncc ${PREFIX}/bin/$i
.endfor
${LN} -sf ${PREFIX}/bin/nccnav ${PREFIX}/bin/nccnavi
${MKDIR} ${PREFIX}/include/ncc
${INSTALL_DATA} ${WRKSRC}/doc/nognu ${PREFIX}/include/ncc
${INSTALL_MAN} ${WRKSRC}/ncc.1 ${MANPREFIX}/man/man1
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.include <bsd.port.mk>