aboutsummaryrefslogtreecommitdiff
path: root/devel/ncc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ncc')
-rw-r--r--devel/ncc/Makefile34
1 files changed, 15 insertions, 19 deletions
diff --git a/devel/ncc/Makefile b/devel/ncc/Makefile
index 6e93c70b033e..9d2fb079c566 100644
--- a/devel/ncc/Makefile
+++ b/devel/ncc/Makefile
@@ -16,38 +16,34 @@ 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 bin/nccstrip2.py
+ ${LINKS:S+^+bin/+} include/ncc/nognu bin/nccstrip2.py \
+ man/man1/ncc.1.gz
PLIST_DIRS= include/ncc
PORTDOCS= *
LINKS= nccar nccld nccc++ nccg++
-MAN1= ncc.1
-
-NO_STAGE= yes
OPTIONS_DEFINE= DOCS
-.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
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
+ ${INSTALL_PROGRAM} ${WRKSRC}/objdir/ncc ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/gengraph.py \
+ ${STAGEDIR}${PREFIX}/bin/ncc-gengraph.py
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/nccstrip2.py \
+ ${STAGEDIR}${PREFIX}/bin/nccstrip2.py
+ ${INSTALL_PROGRAM} ${WRKSRC}/nccnav/nccnav ${STAGEDIR}${PREFIX}/bin
.for i in ${LINKS}
- ${LN} -sf ${PREFIX}/bin/ncc ${PREFIX}/bin/$i
+ ${LN} -sf ${PREFIX}/bin/ncc ${STAGEDIR}${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
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
-.endif
+ ${LN} -sf ${PREFIX}/bin/nccnav ${STAGEDIR}${PREFIX}/bin/nccnavi
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/ncc
+ ${INSTALL_DATA} ${WRKSRC}/doc/nognu ${STAGEDIR}${PREFIX}/include/ncc
+ ${INSTALL_MAN} ${WRKSRC}/ncc.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>