[48210] trunk/dports/graphics/tiff/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Mar 16 17:49:47 PDT 2009


Revision: 48210
          http://trac.macports.org/changeset/48210
Author:   ryandesign at macports.org
Date:     2009-03-16 17:49:47 -0700 (Mon, 16 Mar 2009)
Log Message:
-----------
tiff: require Xcode 3.1 or greater on Mac OS X 10.5 Leopard; see #18801

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

Modified: trunk/dports/graphics/tiff/Portfile
===================================================================
--- trunk/dports/graphics/tiff/Portfile	2009-03-17 00:32:47 UTC (rev 48209)
+++ trunk/dports/graphics/tiff/Portfile	2009-03-17 00:49:47 UTC (rev 48210)
@@ -72,6 +72,17 @@
             }
         }
     }
+    pre-extract {
+        if {9 == ${os.major}} {
+            # http://developer.apple.com/qa/qa2007/qa1567.html
+            set minimum_xcodeversion 3.1
+            set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
+            if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
+                ui_msg "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
+                return -code error "incompatible Xcode version"
+            }
+        }
+    }
 }
 
 livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090316/e3264a89/attachment.html>


More information about the macports-changes mailing list