c7ff05f63e
pkglint -Wall -r --only "substitution command" -F With manual review and indentation fixes since pkglint doesn't get that part correct in every case.
45 lines
1.6 KiB
Makefile
45 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.14 2019/05/23 19:22:58 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= ncc-2.8
|
|
PKGREVISION= 8
|
|
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++03
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_STAGE.prefix= pre-configure
|
|
SUBST_MESSAGE.prefix= Fixing hardcoded paths
|
|
SUBST_FILES.prefix= config.h
|
|
SUBST_VARS.prefix= PREFIX
|
|
|
|
REPLACE_PYTHON+= scripts/nccstrip2.py
|
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 share/ncc share/doc/ncc
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/objdir/ncc ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/nccstrip2.py ${DESTDIR}${PREFIX}/bin
|
|
${LN} -s ncc ${DESTDIR}${PREFIX}/bin/nccar
|
|
${LN} -s ncc ${DESTDIR}${PREFIX}/bin/nccc++
|
|
${LN} -s ncc ${DESTDIR}${PREFIX}/bin/nccld
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nccnav/nccnav ${DESTDIR}${PREFIX}/bin
|
|
${LN} -s nccnav ${DESTDIR}${PREFIX}/bin/nccnavi
|
|
${INSTALL_DATA} ${WRKSRC}/doc/nognu ${DESTDIR}${PREFIX}/share/ncc
|
|
${INSTALL_MAN} ${WRKSRC}/ncc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
${INSTALL_DATA} ${WRKSRC}/doc/KEYS.txt ${DESTDIR}${PREFIX}/share/doc/ncc
|
|
${INSTALL_DATA} ${WRKSRC}/doc/TROUBLES ${DESTDIR}${PREFIX}/share/doc/ncc
|
|
${INSTALL_DATA} ${WRKSRC}/doc/hacking.* ${DESTDIR}${PREFIX}/share/doc/ncc
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/ncc
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|