[53151] trunk/dports/devel/libsdl/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Jun 30 04:11:17 PDT 2009


Revision: 53151
          http://trac.macports.org/changeset/53151
Author:   ryandesign at macports.org
Date:     2009-06-30 04:11:17 -0700 (Tue, 30 Jun 2009)
Log Message:
-----------
libsdl: require Xcode 2.4.1 or later on Tiger; see #20087

Modified Paths:
--------------
    trunk/dports/devel/libsdl/Portfile

Modified: trunk/dports/devel/libsdl/Portfile
===================================================================
--- trunk/dports/devel/libsdl/Portfile	2009-06-30 11:07:23 UTC (rev 53150)
+++ trunk/dports/devel/libsdl/Portfile	2009-06-30 11:11:17 UTC (rev 53151)
@@ -50,6 +50,17 @@
 
 set docdir      ${prefix}/share/doc/${name}-${version}
 
+pre-extract {
+    if {"darwin" == ${os.platform} && 8 == ${os.major}} {
+        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} {
+            ui_error "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"
+        }
+    }
+}
+
 post-configure {
     set sdl_config_h "${worksrcpath}/include/SDL_config.h"
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090630/89a01a9b/attachment.html>


More information about the macports-changes mailing list