pkgsrc-wip/ncc/Makefile
Emil Sköldberg de222f8367 Fixed two issues with the "nognu" file:
- one instance is enough (in /share/ncc/)
- the NOGNU macro should be properly defined
2007-10-11 16:49:30 +00:00

41 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2007/10/11 16:49:30 emil_s Exp $
#
DISTNAME= ncc-2.7
CATEGORIES= devel
MASTER_SITES= http://students.ceid.upatras.gr/~sxanth/ncc/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://students.ceid.upatras.gr/~sxanth/ncc/index.html
COMMENT= Compiler that produces program analysis information
BUILD_TARGET= tout
CFLAGS+= -DNOGNU='"${PREFIX}/share/ncc/nognu"'
USE_LANGUAGES= c c++
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Fixing hardcoded paths
SUBST_FILES.prefix= config.h
SUBST_SED.prefix= -e 's,@PREFIX@,${PREFIX},g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objdir/ncc ${PREFIX}/bin
${LN} -s ncc ${PREFIX}/bin/nccar
${LN} -s ncc ${PREFIX}/bin/nccc++
${LN} -s ncc ${PREFIX}/bin/nccld
${INSTALL_PROGRAM} ${WRKSRC}/nccnav/nccnav ${PREFIX}/bin
${LN} -s nccnav ${PREFIX}/bin/nccnavi
${INSTALL_DATA_DIR} ${PREFIX}/share/ncc
${INSTALL_DATA} ${WRKSRC}/doc/nognu ${PREFIX}/share/ncc
${INSTALL_MAN} ${WRKSRC}/ncc.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ncc
${INSTALL_DATA} ${WRKSRC}/doc/KEYS.txt ${PREFIX}/share/doc/ncc
${INSTALL_DATA} ${WRKSRC}/doc/TROUBLES ${PREFIX}/share/doc/ncc
${INSTALL_DATA} ${WRKSRC}/doc/hacking.* ${PREFIX}/share/doc/ncc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ncc
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"