svn commit: r323777 - head/net-mgmt/netmagis-common

Alexey Dokuchaev danfe at FreeBSD.org
Sat Jul 27 10:39:01 UTC 2013


Author: danfe
Date: Sat Jul 27 10:39:00 2013
New Revision: 323777
URL: http://svnweb.freebsd.org/changeset/ports/323777

Log:
  Attempt to fix inner makefiles so the port (and its slaves) are make jobs
  (-jX) safe.
  
  Reported by:	pointyhat-west

Modified:
  head/net-mgmt/netmagis-common/Makefile

Modified: head/net-mgmt/netmagis-common/Makefile
==============================================================================
--- head/net-mgmt/netmagis-common/Makefile	Sat Jul 27 10:19:30 2013	(r323776)
+++ head/net-mgmt/netmagis-common/Makefile	Sat Jul 27 10:39:00 2013	(r323777)
@@ -65,6 +65,13 @@ ALL_TARGET=nothing
 
 INSTALL_TARGET=	install${PKGNAMESUFFIX}
 
+# Change "cd foo; make" into "$(MAKE) -C foo" to unbreak parallel builds
+post-patch:
+	@${FIND} ${WRKSRC} -type f -name Makefile -print0 | ${XARGS} -0 \
+		${REINPLACE_CMD} -E 's,cd(.+) (;|&&) make,$$(MAKE) -C\1,'
+	${REINPLACE_CMD} -E 's,cd (.+) ; (ln -s en ),\2\1/,' \
+		${WRKSRC}/www/Makefile
+
 .if !target(post-install)
 post-install:
 	@if [ -f ${PKGMESSAGE} ] ; then ${CAT} ${PKGMESSAGE} ; fi


More information about the svn-ports-all mailing list