[79111] trunk/dports/x11/qt3/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jun 2 04:20:34 PDT 2011


Revision: 79111
          http://trac.macports.org/changeset/79111
Author:   ryandesign at macports.org
Date:     2011-06-02 04:20:34 -0700 (Thu, 02 Jun 2011)
Log Message:
-----------
qt3: prevent build failure when qt3-mac is active; see #14873

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

Modified: trunk/dports/x11/qt3/Portfile
===================================================================
--- trunk/dports/x11/qt3/Portfile	2011-06-02 11:08:34 UTC (rev 79110)
+++ trunk/dports/x11/qt3/Portfile	2011-06-02 11:20:34 UTC (rev 79111)
@@ -120,6 +120,16 @@
                 -sm -xinerama -xrender -xft -xkb \
                 -plugin-sql-sqlite -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql
 
+pre-configure {
+    foreach {badport badfile} "qt3-mac ${prefix}/include/qt3/qt_mac.h" {
+        if {[file exists ${badfile}]} {
+            ui_error "${name} cannot be built while ${badport} is active."
+            ui_error "Please deactivate ${badport} and try again."
+            return -code error "${badport} is installed"
+        }
+    }
+}
+
 use_configure       no
 
 #workaround for upgrade problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110602/1cb214a0/attachment.html>


More information about the macports-changes mailing list