diff options
author | Volker Stolz <vs@FreeBSD.org> | 2006-02-01 13:48:21 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2006-02-01 13:48:21 +0000 |
commit | 8a94d2842cfc4c21fcc9102dd539cddb29876fb9 (patch) | |
tree | df328d19b33657a6b0f5a483a1badaf73764169f /devel/ncc | |
parent | d907d6d51fcdb4983261e32284c5ee88b38a8380 (diff) |
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/
Notes
Notes:
svn path=/head/; revision=155002
Diffstat (limited to 'devel/ncc')
-rw-r--r-- | devel/ncc/Makefile | 47 | ||||
-rw-r--r-- | devel/ncc/distinfo | 3 | ||||
-rw-r--r-- | devel/ncc/pkg-descr | 7 |
3 files changed, 57 insertions, 0 deletions
diff --git a/devel/ncc/Makefile b/devel/ncc/Makefile new file mode 100644 index 000000000000..f13ff705c4b2 --- /dev/null +++ b/devel/ncc/Makefile @@ -0,0 +1,47 @@ +# 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> diff --git a/devel/ncc/distinfo b/devel/ncc/distinfo new file mode 100644 index 000000000000..6dfd0e78f72a --- /dev/null +++ b/devel/ncc/distinfo @@ -0,0 +1,3 @@ +MD5 (ncc-2.3.tar.gz) = 295d59078009f31f454b4cc4f4838624 +SHA256 (ncc-2.3.tar.gz) = bfbcfc551fe5c11dcd568ed0179608b2527df50d081a3ce61070d65138a14da3 +SIZE (ncc-2.3.tar.gz) = 88558 diff --git a/devel/ncc/pkg-descr b/devel/ncc/pkg-descr new file mode 100644 index 000000000000..830e4083aa64 --- /dev/null +++ b/devel/ncc/pkg-descr @@ -0,0 +1,7 @@ +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/ |