pkgsrc/devel/ninja-build/Makefile
wiz f3aee2267e Updated ninja-build to 1.7.2.
This is a minor release after v1.7.1, mostly bugfixes.

== Release notes.

* %e and %r work again in dumb terminals (#1146, #1148)
* `-t browse` now HTML-escapes rule names (#1157)
* an edge may now have 0 explicit outputs if it has implicit outputs (#1159)
* make misc/measure.py python 3-compatible
* misc/write_fake_manifest.py now optionally writes source files, use it to
  quickly produce large, buildable projects for testing (#1109, #1198)
* on newer FreeBSDs, use ppoll()
2016-11-14 14:38:32 +00:00

45 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2016/11/14 14:38:32 wiz Exp $
DISTNAME= ninja-1.7.2
PKGNAME= ${DISTNAME:S/ninja/ninja-build/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=ninja-build/}
GITHUB_TAG= v${PKGVERSION_NOREV}
GITHUB_PROJECT= ninja
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://ninja-build.org/
COMMENT= Ninja is a small build system with a focus on speed
LICENSE= apache-2.0
BUILD_DEPENDS+= re2c>=0.11.3:../../devel/re2c
USE_LANGUAGES= c c++
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Fix PREFIX
SUBST_FILES.prefix= configure.py
SUBST_VARS.prefix= PREFIX
INSTALLATION_DIRS= bin share/doc/ninja share/ninja
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} ./configure.py --bootstrap
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ninja \
${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/manual.asciidoc \
${DESTDIR}${PREFIX}/share/doc/ninja
${INSTALL_DATA} ${WRKSRC}/misc/ninja-mode.el \
${DESTDIR}${PREFIX}/share/ninja
${INSTALL_DATA} ${WRKSRC}/misc/ninja.vim \
${DESTDIR}${PREFIX}/share/ninja
${INSTALL_DATA} ${WRKSRC}/misc/bash-completion \
${DESTDIR}${PREFIX}/share/ninja
${INSTALL_DATA} ${WRKSRC}/misc/zsh-completion \
${DESTDIR}${PREFIX}/share/ninja
.include "../../lang/python/tool.mk"
.include "../../mk/bsd.pkg.mk"