[42868] trunk/dports/archivers/bzip2/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Mon Dec 1 12:55:29 PST 2008


Revision: 42868
          http://trac.macports.org/changeset/42868
Author:   mcalhoun at macports.org
Date:     2008-12-01 12:55:28 -0800 (Mon, 01 Dec 2008)
Log Message:
-----------
bzip2: ensure that the correct C compiler is used.

Modified Paths:
--------------
    trunk/dports/archivers/bzip2/Portfile

Modified: trunk/dports/archivers/bzip2/Portfile
===================================================================
--- trunk/dports/archivers/bzip2/Portfile	2008-12-01 20:53:39 UTC (rev 42867)
+++ trunk/dports/archivers/bzip2/Portfile	2008-12-01 20:55:28 UTC (rev 42868)
@@ -49,9 +49,15 @@
     build.env           DYLD_LIBRARY_PATH="${worksrcpath}"
 }
 
+post-configure {
+    reinplace "s|^CC=gcc|CC=${configure.cc}|" ${worksrcpath}/Makefile
+}
+
 build.args              PREFIX="${prefix}"
 destroot.destdir        PREFIX="${destroot}${prefix}"
 
 variant universal {
-    build.args-append   CC="gcc ${configure.universal_cflags}"
+    post-configure {
+        reinplace "s|^CC=\\(.*\\)|CC=\\1 ${configure.universal_cflags}|" ${worksrcpath}/Makefile
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081201/5d2ab7e3/attachment.html>


More information about the macports-changes mailing list