257cfa1544
release 1.11 This release adds Validation Nodes which are a new way to add jobs like linters or static analyzers to the build graph. They are added using |@ and don't produce any outputs. You can read more about the motivation and the syntax here: https://github.com/ninja-build/ninja/pull/1800 Another big change is that Ninja now uses UTF-8 on Windows. This means that while previous versions of Ninja used the local ANSI encoding it will now always use UTF-8 allowing filenames and output with special characters. For this to work you'll need Windows 10 Version 1903 or newer. And for the console output to show Unicode characters you'll need to set the codepage to 65001. More information at: https://github.com/ninja-build/ninja/pull/1915 Note that this is a breaking change if you relied on non-ASCII characters of the local codepage! If you want to query Ninja what codepage it uses in your generator, call `ninja -t wincodepage` and act accordingly. There are also two new tools: missingdeps: https://github.com/ninja-build/ninja/pull/1331 inputs: https://github.com/ninja-build/ninja/pull/1730 And as it was often requested, ninja now has a --quiet flag :) For a complete list of changes see https://github.com/ninja-build/ninja/milestone/3?closed=1
65 lines
2 KiB
Makefile
65 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.17 2022/05/27 12:22:35 adam Exp $
|
|
|
|
DISTNAME= ninja-1.11.0
|
|
PKGNAME= ${DISTNAME:S/ninja/ninja-build/}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=ninja-build/}
|
|
GITHUB_PROJECT= ninja
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= ryoon@NetBSD.org
|
|
HOMEPAGE= https://ninja-build.org/
|
|
COMMENT= Small build system with a focus on speed
|
|
LICENSE= apache-2.0
|
|
|
|
BUILD_DEPENDS+= re2c>=0.11.3:../../devel/re2c
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
#
|
|
# Under MacOS X the LD_LIBRARY_PATH variable is unset by the build system
|
|
# running executables under /bin (namely /bin/sh). This is part of MacOS X
|
|
# System Integrity Protection.
|
|
#
|
|
# Because many (most?) users of ninja/meson seem to need hacks involving
|
|
# LD_LIBRARY_PATH, use a non-SIP-triggering shell under MacOS X.
|
|
#
|
|
# macOS bootstraps are transitioning to mksh as the system shell, once that
|
|
# has been in place for a while we can remove the pdksh support, and ideally
|
|
# just replace this whole section with -DNINJA_SHELL=${TOOLS_PLATFORM.sh}
|
|
#
|
|
. if ${TOOLS_PLATFORM.sh:M?*/bin/mksh}
|
|
DEPENDS+= mksh-[0-9]*:../../shells/mksh
|
|
CFLAGS+= -DNINJA_SHELL=${PREFIX}/bin/mksh
|
|
. else
|
|
DEPENDS+= pdksh-[0-9]*:../../shells/pdksh
|
|
CFLAGS+= -DNINJA_SHELL=${PREFIX}/bin/pdksh
|
|
. endif
|
|
.else
|
|
CFLAGS+= -DNINJA_SHELL=/bin/sh
|
|
.endif
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
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"
|