1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

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]
This commit is contained in:
Baptiste Daroussin 2013-05-02 14:07:31 +00:00
parent 76a37c45de
commit 40b085ef55
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317115

View File

@ -1143,6 +1143,11 @@ INDEXDIR?= ${PORTSDIR}
SRC_BASE?= /usr/src SRC_BASE?= /usr/src
USESDIR?= ${PORTSDIR}/Mk/Uses 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" .include "${PORTSDIR}/Mk/bsd.commands.mk"
# #
@ -2794,18 +2799,12 @@ patch-sites: patch-sites-DEFAULT
.if defined(IGNOREFILES) .if defined(IGNOREFILES)
.if !defined(CKSUMFILES) .if !defined(CKSUMFILES)
CKSUMFILES!= \ . for _f in ${ALLFILES}
for file in ${ALLFILES}; do \ . if ! ${IGNOREFILES:M${_f}}
ignore=0; \ CKSUMFILES+= ${_f}
for tmp in ${IGNOREFILES}; do \ . endif
if [ "$$file" = "$$tmp" ]; then \ . endfor
ignore=1; \ . undef _f
fi; \
done; \
if [ "$$ignore" = 0 ]; then \
${ECHO_CMD} "$$file"; \
fi; \
done
.endif .endif
.else .else
CKSUMFILES= ${ALLFILES} CKSUMFILES= ${ALLFILES}
@ -2953,6 +2952,11 @@ MANEXT= .gz
.endif .endif
.if (defined(MLINKS) || defined(_MLINKS_PREPEND)) && !defined(_MLINKS) .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} \ __pmlinks!= ${ECHO_CMD} '${MLINKS:S/ / /}' | ${AWK} \
'{ if (NF % 2 != 0) { print "broken"; exit; } \ '{ if (NF % 2 != 0) { print "broken"; exit; } \
for (i=1; i<=NF; i++) { \ for (i=1; i<=NF; i++) { \
@ -2979,6 +2983,7 @@ _MLINKS+= ${___pmlinks:S// /g}
.endfor .endfor
.endfor .endfor
.endif .endif
.endif
_COUNT=0 _COUNT=0
.for ___tpmlinks in ${_MLINKS} .for ___tpmlinks in ${_MLINKS}
.if ${_COUNT} == "1" .if ${_COUNT} == "1"