pkgsrc/devel/ninja-build/Makefile
2015-07-09 14:09:44 +00:00

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2015/07/09 14:09:44 wiz Exp $
DISTNAME= ninja-1.5.1
PKGNAME= ${DISTNAME:S/ninja/ninja-build/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=martine/}
GITHUB_TAG= v${PKGVERSION_NOREV}
GITHUB_PROJECT= ninja
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://martine.github.io/ninja/
COMMENT= Ninja is a small build system with a focus on speed
LICENSE= apache-2.0
USE_LANGUAGES= c c++
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Fix PREFIX
SUBST_FILES.prefix= bootstrap.py
SUBST_VARS.prefix= PREFIX
INSTALLATION_DIRS= bin share/doc/ninja share/ninja
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} ./bootstrap.py --verbose
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"