[39247] trunk/dports/graphics/cairo/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Aug 13 11:47:31 PDT 2008


Revision: 39247
          http://trac.macosforge.org/projects/macports/changeset/39247
Author:   ryandesign at macports.org
Date:     2008-08-13 11:47:30 -0700 (Wed, 13 Aug 2008)
Log Message:
-----------
cairo: require at least Xcode 2.4.1 on Tiger since some earlier versions have an insufficient CGImage.h and MacPorts is documented to require Xcode 2.4.1 on Tiger anyway; closes #16213

Modified Paths:
--------------
    trunk/dports/graphics/cairo/Portfile

Modified: trunk/dports/graphics/cairo/Portfile
===================================================================
--- trunk/dports/graphics/cairo/Portfile	2008-08-13 18:11:05 UTC (rev 39246)
+++ trunk/dports/graphics/cairo/Portfile	2008-08-13 18:47:30 UTC (rev 39247)
@@ -89,6 +89,15 @@
 }
 
 platform macosx {
+    pre-fetch {
+        if {${os.major} == 8} {
+            set minimum_xcodeversion 2.4.1
+            set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
+            if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
+                return -code error "You have Xcode ${current_xcodeversion}. Please update to at least Xcode ${minimum_xcodeversion}."
+            }
+        }
+    }
     if {${os.major} > 7} {
         configure.args-delete \
             --disable-quartz \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080813/d96cf2d4/attachment.html 


More information about the macports-changes mailing list