[51896] trunk/dports/devel/boost-jam/Portfile

toby at macports.org toby at macports.org
Fri Jun 5 23:52:18 PDT 2009


Revision: 51896
          http://trac.macports.org/changeset/51896
Author:   toby at macports.org
Date:     2009-06-05 23:52:17 -0700 (Fri, 05 Jun 2009)
Log Message:
-----------
#19876 (boost-jam isn't using ${configure.cc})
- Less haphazard patching of build.sh.
- Specify tool.darwin.cc so that the actual bjam is built with the correct compiler (not just the bootstrapper).
- Turn on debugging output to prove it!

Modified Paths:
--------------
    trunk/dports/devel/boost-jam/Portfile

Modified: trunk/dports/devel/boost-jam/Portfile
===================================================================
--- trunk/dports/devel/boost-jam/Portfile	2009-06-06 06:02:55 UTC (rev 51895)
+++ trunk/dports/devel/boost-jam/Portfile	2009-06-06 06:52:17 UTC (rev 51896)
@@ -21,21 +21,20 @@
                  sha1 407be994b1239fa944c14c464a9ce7f46f692a1e
 platforms        darwin
 
-patchfiles       patch-strings.c
+patchfiles       patch-strings.c patch-build.sh
 post-patch {
         reinplace "s|/usr/share/boost-build|${prefix}/share/boost-build|" \
                 ${worksrcpath}/jambase.c
 }
 
-use_configure    no
-
-post-configure {
-        reinplace "s|BOOST_JAM_CC=.*|BOOST_JAM_CC=${configure.cc}|" ${worksrcpath}/build.sh
+configure {
+        reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/build.sh
 }
 
 build.env        LOCATE_TARGET=bin
 build.cmd        ./build.sh
 build.target
+build.args       -s tool.darwin.cc=${configure.cc}
 
 destroot {
         xinstall -m 0755 ${worksrcpath}/bin/bjam ${destroot}${prefix}/bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090605/e3302836/attachment.html>


More information about the macports-changes mailing list