diff --git a/dports/python/py-sip/Portfile b/dports/python/py-sip/Portfile
index cb5f704..300381d 100644
a
|
b
|
if {$subport != $name} { |
77 | 77 | configure.post_args-append CXXFLAGS="${configure.universal_cxxflags}" |
78 | 78 | } |
79 | 79 | |
| 80 | if {[vercmp $xcodeversion 4.3] < 0} { |
| 81 | set sdks_dir "${developer_dir}/SDKs" |
| 82 | } else { |
| 83 | set sdks_dir "${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs" |
| 84 | } |
| 85 | |
80 | 86 | switch ${os.major} { |
81 | | 8 { configure.args-append "--sdk=${developer_dir}/SDKs/MacOSX10.4u.sdk" } |
82 | | 9 { configure.args-append "--sdk=${developer_dir}/SDKs/MacOSX10.5.sdk" } |
83 | | 10 { configure.args-append "--sdk=${developer_dir}/SDKs/MacOSX10.6.sdk" } |
84 | | 11 { configure.args-append "--sdk=${developer_dir}/SDKs/MacOSX10.7.sdk" } |
| 87 | 8 { configure.args-append "--sdk=${sdks_dir}/MacOSX10.4u.sdk" } |
| 88 | 9 { configure.args-append "--sdk=${sdks_dir}/MacOSX10.5.sdk" } |
| 89 | 10 { configure.args-append "--sdk=${sdks_dir}/MacOSX10.6.sdk" } |
| 90 | 11 { configure.args-append "--sdk=${sdks_dir}/MacOSX10.7.sdk" } |
85 | 91 | } |
86 | 92 | |
87 | 93 | build.cmd make |