[42117] trunk/dports/x11/qt4-x11/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sat Nov 15 11:39:35 PST 2008


Revision: 42117
          http://trac.macports.org/changeset/42117
Author:   mcalhoun at macports.org
Date:     2008-11-15 11:39:34 -0800 (Sat, 15 Nov 2008)
Log Message:
-----------
qt4-x11: ensure that MacPorts compilers are always used

Modified Paths:
--------------
    trunk/dports/x11/qt4-x11/Portfile

Modified: trunk/dports/x11/qt4-x11/Portfile
===================================================================
--- trunk/dports/x11/qt4-x11/Portfile	2008-11-15 19:00:46 UTC (rev 42116)
+++ trunk/dports/x11/qt4-x11/Portfile	2008-11-15 19:39:34 UTC (rev 42117)
@@ -51,6 +51,9 @@
 #    or else some generated Makefiles will not seem them
 configure.cppflags
 configure.ldflags
+# ensure that MacPorts compilers are used
+configure.cmd \
+    sed -ibak -e \"s|= cc\\\$|= \${CC}|g\" -e \"s|= c++\\\$|= \${CXX}|g\" ${worksrcpath}/mkspecs/darwin-g++/qmake.conf && ${configure.cmd}
 
 configure.env-append \
     OPENSOURCE_CXXFLAGS=-D__USE_WS_X11__
@@ -92,13 +95,6 @@
 
 destroot.destdir    INSTALL_ROOT="${destroot}"
 
-post-configure {
-    reinplace "s|= cc|= ${configure.cc}|g" \
-        ${worksrcpath}/mkspecs/darwin-g++/qmake.conf
-    reinplace "s|= c++|= ${configure.cxx}|g" \
-        ${worksrcpath}/mkspecs/darwin-g++/qmake.conf
-}
-
 platform darwin 7 {
     depends_build-append    port:cups-headers
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081115/c804df69/attachment.html>


More information about the macports-changes mailing list