Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2013 14:07:31 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317115 - head/Mk
Message-ID:  <201305021407.r42E7VMC074040@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu May  2 14:07:31 2013
New Revision: 317115
URL: http://svnweb.freebsd.org/changeset/ports/317115

Log:
  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]

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Thu May  2 14:04:25 2013	(r317114)
+++ head/Mk/bsd.port.mk	Thu May  2 14:07:31 2013	(r317115)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305021407.r42E7VMC074040>