Modified: trunk/dports/devel/libsdl/Portfile (53150 => 53151)
--- 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"