aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-05-02 22:07:31 +0800
committerbapt <bapt@FreeBSD.org>2013-05-02 22:07:31 +0800
commitefbf8eb0188919104b7a60e5d20f9bee7688e99f (patch)
treefaf08e53d949c9451c6dd2dd720eaafd19246283 /Mk
parent9889bbb4d2da02ccfb05a3e3550d4a6e86f27f0c (diff)
downloadfreebsd-ports-gnome-efbf8eb0188919104b7a60e5d20f9bee7688e99f.tar.gz
freebsd-ports-gnome-efbf8eb0188919104b7a60e5d20f9bee7688e99f.tar.zst
freebsd-ports-gnome-efbf8eb0188919104b7a60e5d20f9bee7688e99f.zip
Preliminary support for bmake
Please note that bmake it only supported on current starting at r250164: - make sure bmake treats -V as expected [1] - tell bmake we use the old :L :U modifiers [1] - workaround an incompatible loop syntax using bmake's inline loop [1] - avoid forking a shell to get the CKSUMFILES which gives a make(1)/bmake(1) compatible syntax [2] Submitted by: sjg[1] Obtained from: dports[2]
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk29
1 files changed, 17 insertions, 12 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 8cb64a31ed28..67584a34df12 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1143,6 +1143,11 @@ INDEXDIR?= ${PORTSDIR}
SRC_BASE?= /usr/src
USESDIR?= ${PORTSDIR}/Mk/Uses
+# make sure bmake treats -V as expected
+.MAKE.EXPAND_VARIABLES= yes
+# tell bmake we use the old :L :U modifiers
+.MAKE.FreeBSD_UL= yes
+
.include "${PORTSDIR}/Mk/bsd.commands.mk"
#
@@ -2794,18 +2799,12 @@ patch-sites: patch-sites-DEFAULT
.if defined(IGNOREFILES)
.if !defined(CKSUMFILES)
-CKSUMFILES!= \
- for file in ${ALLFILES}; do \
- ignore=0; \
- for tmp in ${IGNOREFILES}; do \
- if [ "$$file" = "$$tmp" ]; then \
- ignore=1; \
- fi; \
- done; \
- if [ "$$ignore" = 0 ]; then \
- ${ECHO_CMD} "$$file"; \
- fi; \
- done
+. for _f in ${ALLFILES}
+. if ! ${IGNOREFILES:M${_f}}
+CKSUMFILES+= ${_f}
+. endif
+. endfor
+. undef _f
.endif
.else
CKSUMFILES= ${ALLFILES}
@@ -2953,6 +2952,11 @@ MANEXT= .gz
.endif
.if (defined(MLINKS) || defined(_MLINKS_PREPEND)) && !defined(_MLINKS)
+
+.if defined(.PARSEDIR)
+_MLINKS= ${_MLINKS_PREPEND} \
+ ${MANLANG:S,^,man/,:S,/"",,:@m@${MLINKS:@p@${MAN${p:E}PREFIX}/$m/man${p:E}/$p${MANEXT}@}@}
+.else
__pmlinks!= ${ECHO_CMD} '${MLINKS:S/ / /}' | ${AWK} \
'{ if (NF % 2 != 0) { print "broken"; exit; } \
for (i=1; i<=NF; i++) { \
@@ -2979,6 +2983,7 @@ _MLINKS+= ${___pmlinks:S// /g}
.endfor
.endfor
.endif
+.endif
_COUNT=0
.for ___tpmlinks in ${_MLINKS}
.if ${_COUNT} == "1"