[50484] trunk/dports/x11/mesa/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Fri May 1 09:39:29 PDT 2009
Revision: 50484
http://trac.macports.org/changeset/50484
Author: mcalhoun at macports.org
Date: 2009-05-01 09:39:29 -0700 (Fri, 01 May 2009)
Log Message:
-----------
mesa: Ensure correct compilers are used.
Modified Paths:
--------------
trunk/dports/x11/mesa/Portfile
Modified: trunk/dports/x11/mesa/Portfile
===================================================================
--- trunk/dports/x11/mesa/Portfile 2009-05-01 15:53:03 UTC (rev 50483)
+++ trunk/dports/x11/mesa/Portfile 2009-05-01 16:39:29 UTC (rev 50484)
@@ -67,6 +67,11 @@
build.args-append INSTALL_DIR=${prefix}
destroot.args-append INSTALL_DIR=${prefix}
+# Ensure correct compilers are used in Makefiles.
+build.args-append \
+ CC=${configure.cc} \
+ CXX=${configure.cxx}
+
variant universal {
if {![info exists universal_archs]} {
set universal_archs {i386 ppc}
@@ -86,6 +91,10 @@
post-patch {
reinplace "s:-fno-strict-aliasing:-fno-strict-aliasing -fno-common:g" ${worksrcpath}/configs/darwin
reinplace "s:osmesa::g" ${worksrcpath}/configs/darwin
+
+ # Ensure correct compilers are used in mklib.
+ reinplace "s:LINK=\"g++\":LINK=\"${configure.cxx}\":" ${worksrcpath}/bin/mklib
+ reinplace "s:LINK=\"cc\":LINK=\"${configure.cc}\":" ${worksrcpath}/bin/mklib
}
post-extract {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090501/1e76fd01/attachment.html>
More information about the macports-changes
mailing list