devel/boost-bjam

Mikhail T. mi+thun at aldan.algebra.com
Fri Apr 26 17:42:26 UTC 2013


Hello!

The attached patches achieve too things:

 1. Dramatically reduce the diskspace used for building bjam -- by extracting
    only the tools/build/v2/engine subdirectory from the source tarball, instead
    of the whole thing. Plenty of time is saved too -- though the giant tarball
    still needs to be full read, most of the contents does not need to be
    written to disk.
 2. Allow building the executable with any compiler from the gcc-family (such as
    gcc48).

Please, commit or allow me to. Thank you,

    -mi


-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	(revision 316411)
+++ Makefile	(working copy)
@@ -7,6 +7,7 @@
 PORTREVISION=	1
 
 PLIST_FILES=	bin/bjam
+EXTRACT_AFTER_ARGS=|${TAR} -xpf - ${DISTNAME}/tools/build/v2/engine
 
 .include "${.CURDIR}/../boost-all/common.mk"
 
Index: files/patch-gcc-versions
===================================================================
--- files/patch-gcc-versions	(revision 0)
+++ files/patch-gcc-versions	(working copy)
@@ -0,0 +1,12 @@
+--- tools/build/v2/engine/build.sh	2012-04-25 23:35:55.000000000 -0400
++++ tools/build/v2/engine/build.sh	2013-04-26 13:02:00.000000000 -0400
+@@ -129,6 +129,7 @@
+     ;;
+ 
+-    gcc)
+-    BOOST_JAM_CC=gcc
++    gcc*)
++    BOOST_JAM_CC=$BOOST_JAM_TOOLSET
++    BOOST_JAM_TOOLSET=gcc
+     ;;
+ 


More information about the freebsd-office mailing list