| 77 | # |
| 78 | # enable auto configure of mmx and related Intel optimizations by default |
| 79 | # requires XCode 3.1.2 or better on Leopard |
| 80 | # |
| 81 | |
| 82 | pre-extract { |
| 83 | if {"darwin" == ${os.platform} && 9 == ${os.major}} { |
| 84 | set minimum_xcodeversion 3.1.2 |
| 85 | set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString] |
| 86 | if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} { |
| 87 | ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}." |
| 88 | return -code error "incompatible Xcode version" |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
114 | | # |
115 | | # comments concerning mmx problems may be out of date |
116 | | # needs testing on i386 platform to verify |
117 | | # |
118 | | |
119 | | variant mmx description {enable mmx optimizations ; may not build in gcc-4.2 or xcode 3.0 gcc-4.0} { |
120 | | # make no-mmx default and allow mmx enabling for the brave. |
121 | | configure.args-delete --disable-mmx |
122 | | # Fix Leopard problems by disabling the cavs decoder for now (is this still required?) |
123 | | configure.args-append --disable-decoder=cavs |
| 129 | variant no_mmx description {disable mmx optimizations} { |
| 130 | configure.args-append --disable-mmx |