[50060] trunk/dports/multimedia/libtheora/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Apr 23 17:29:26 PDT 2009
Revision: 50060
http://trac.macports.org/changeset/50060
Author: ryandesign at macports.org
Date: 2009-04-23 17:29:25 -0700 (Thu, 23 Apr 2009)
Log Message:
-----------
libtheora: Require Xcode 2.5+ on Tiger; Xcode 2.2.1 at least causes problems:
http://lists.macosforge.org/pipermail/macports-users/2009-April/014987.html
Modified Paths:
--------------
trunk/dports/multimedia/libtheora/Portfile
Modified: trunk/dports/multimedia/libtheora/Portfile
===================================================================
--- trunk/dports/multimedia/libtheora/Portfile 2009-04-23 23:53:08 UTC (rev 50059)
+++ trunk/dports/multimedia/libtheora/Portfile 2009-04-24 00:29:25 UTC (rev 50060)
@@ -41,6 +41,17 @@
--disable-vorbistest \
--disable-examples
+pre-extract {
+ if {"darwin" == ${os.platform} && 8 == ${os.major}} {
+ set minimum_xcodeversion 2.5
+ 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-destroot {
set docdir ${prefix}/share/doc/${name}-${version}
if {! [variant_isset doc]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090423/4b683044/attachment.html>
More information about the macports-changes
mailing list