aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ncc
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-03-06 18:50:43 +0800
committerkwm <kwm@FreeBSD.org>2013-03-06 18:50:43 +0800
commit2d17e661dec28846796d3bf084c78bbf81dfe80f (patch)
treebc546985981d5cf41a5db5949526aaaf5397e8e6 /devel/ncc
parent2ab92091c371d06aec04d5b0e25a090c21a925f8 (diff)
downloadfreebsd-ports-gnome-2d17e661dec28846796d3bf084c78bbf81dfe80f.tar.gz
freebsd-ports-gnome-2d17e661dec28846796d3bf084c78bbf81dfe80f.tar.zst
freebsd-ports-gnome-2d17e661dec28846796d3bf084c78bbf81dfe80f.zip
Install the nccstrip2.py script it is used by the nccld program.
Add python runtime depend. [1] While here, update makefile header, convert NOPORTDOCS -> DOCS. Submitted by: "Hans Petter Selasky" <hps@bitfrost.no> [1]
Diffstat (limited to 'devel/ncc')
-rw-r--r--devel/ncc/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/devel/ncc/Makefile b/devel/ncc/Makefile
index 03aea202d170..080e1c0b8f6e 100644
--- a/devel/ncc/Makefile
+++ b/devel/ncc/Makefile
@@ -1,12 +1,9 @@
-# Ports collection makefile for: ncc
-# Date created: February 1, 2006
-# Whom: Volker Stolz <vs@FreeBSD.org>
-#
+# Created by: Volker Stolz <vs@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= ncc
PORTVERSION= 2.8
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://students.ceid.upatras.gr/~sxanth/ncc/
@@ -15,17 +12,19 @@ COMMENT= Program analysis tool and call-graph navigator
ALL_TARGET= # empty
MAKE_ARGS+= CC="${CXX}" LCFLAGS="${CFLAGS}"
-
+USE_PYTHON_RUN= yes
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
+ ${LINKS:S+^+bin/+} include/ncc/nognu bin/nccstrip2.py
PLIST_DIRS= include/ncc
PORTDOCS= *
LINKS= nccar nccld nccc++ nccg++
MAN1= ncc.1
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e '/NOGNU/d' ${WRKSRC}/config.h
@${REINPLACE_CMD} -e '/#include <alloca.h>/d' ${WRKSRC}/dbstree.h
@@ -33,6 +32,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objdir/ncc ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/scripts/gengraph.py ${PREFIX}/bin/ncc-gengraph.py
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/nccstrip2.py ${PREFIX}/bin/nccstrip2.py
${INSTALL_PROGRAM} ${WRKSRC}/nccnav/nccnav ${PREFIX}/bin
.for i in ${LINKS}
${LN} -sf ${PREFIX}/bin/ncc ${PREFIX}/bin/$i
@@ -41,7 +41,7 @@ do-install:
${MKDIR} ${PREFIX}/include/ncc
${INSTALL_DATA} ${WRKSRC}/doc/nognu ${PREFIX}/include/ncc
${INSTALL_MAN} ${WRKSRC}/ncc.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif