Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3a55341

Browse files
committedJul 6, 2020
ninja-build: Support mksh-enabled macOS installs.
1 parent 9545f5f commit 3a55341

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed
 

‎devel/ninja-build/Makefile

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.13 2020/04/21 07:48:55 dsainty Exp $
1+
# $NetBSD: Makefile,v 1.14 2020/07/06 10:48:34 jperkin Exp $
22

33
DISTNAME= ninja-1.10.0
44
PKGNAME= ${DISTNAME:S/ninja/ninja-build/}
@@ -26,8 +26,17 @@ BUILD_DEPENDS+= re2c>=0.11.3:../../devel/re2c
2626
# Because many (most?) users of ninja/meson seem to need hacks involving
2727
# LD_LIBRARY_PATH, use a non-SIP-triggering shell under MacOS X.
2828
#
29+
# macOS bootstraps are transitioning to mksh as the system shell, once that
30+
# has been in place for a while we can remove the pdksh support, and ideally
31+
# just replace this whole section with -DNINJA_SHELL=${TOOLS_PLATFORM.sh}
32+
#
33+
. if ${TOOLS_PLATFORM.sh:M?*/bin/mksh}
34+
DEPENDS+= mksh-[0-9]*:../../shells/mksh
35+
CFLAGS+= -DNINJA_SHELL=${PREFIX}/bin/mksh
36+
. else
2937
DEPENDS+= pdksh-[0-9]*:../../shells/pdksh
3038
CFLAGS+= -DNINJA_SHELL=${PREFIX}/bin/pdksh
39+
. endif
3140
.else
3241
CFLAGS+= -DNINJA_SHELL=/bin/sh
3342
.endif

0 commit comments

Comments
 (0)
Please sign in to comment.