From owner-svn-ports-all@FreeBSD.ORG Fri Aug 9 01:49:56 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 736B9FCB; Fri, 9 Aug 2013 01:49:56 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5FBA92387; Fri, 9 Aug 2013 01:49:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r791nutY063481; Fri, 9 Aug 2013 01:49:56 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r791nuPF063480; Fri, 9 Aug 2013 01:49:56 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201308090149.r791nuPF063480@svn.freebsd.org> From: Alexey Dokuchaev Date: Fri, 9 Aug 2013 01:49:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324413 - head/math/xblas X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Aug 2013 01:49:56 -0000 Author: danfe Date: Fri Aug 9 01:49:55 2013 New Revision: 324413 URL: http://svnweb.freebsd.org/changeset/ports/324413 Log: Fix parallel (-jX) builds. This cuts down the build time from 1:07 down to just 21 seconds on my quad-core o'clocked Q9550. Modified: head/math/xblas/Makefile Modified: head/math/xblas/Makefile ============================================================================== --- head/math/xblas/Makefile Thu Aug 8 23:58:12 2013 (r324412) +++ head/math/xblas/Makefile Fri Aug 9 01:49:55 2013 (r324413) @@ -13,7 +13,6 @@ COMMENT= Extra Precise Basic Linear Alge LICENSE= BSD USE_LDCONFIG= yes -MAKE_JOBS_UNSAFE= yes CFLAGS+= ${MANGLING} HDIR= include/xblas @@ -66,6 +65,9 @@ post-patch: @${CP} -af ${WRKSRC} ${WRKSRC}_STATIC .endif @${PRINTF} "\nCFLAGS+=\t${PICFLAG}\n" >> ${WRKSRC}/make.inc +# Fix parallel (-jX) builds + @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \ + -E 's/cd (.+) && (\$$\(MAKE\))/\2 -C \1/' do-build: build-shared build-static