My MacPorts
Revision | c119e74dce2b77c13b677470fe5a5a2eb9dfc078 (tree) |
---|---|
Time | 2009-04-06 07:01:22 |
Author | Kazuki Sakamoto <sakamoto@splh...> |
Commiter | Kazuki Sakamoto |
MacVim fix universal
@@ -37,6 +37,14 @@ configure.args --enable-gui=macvim \ | ||
37 | 37 | configure.cppflags -I${prefix}/include |
38 | 38 | configure.ldflags -L${prefix}/lib |
39 | 39 | |
40 | +if {[variant_isset universal]} { | |
41 | + configure.universal_target 10.4 | |
42 | + configure.args-append --with-mac-arch=both | |
43 | + set xcodeconfig Universal | |
44 | +} else { | |
45 | + set xcodeconfig Release | |
46 | +} | |
47 | + | |
40 | 48 | use_parallel_build yes |
41 | 49 | |
42 | 50 | variant perl description {Enable Perl scripting} { |
@@ -59,9 +67,6 @@ variant tcl description {Enable Tcl scripting} { | ||
59 | 67 | variant cscope description {Enable source code browsing with cscope} { |
60 | 68 | configure.args-append --enable-cscope |
61 | 69 | } |
62 | -variant universal { | |
63 | - configure.args-append --with-mac-arch=both | |
64 | -} | |
65 | 70 | |
66 | 71 | post-patch { |
67 | 72 | reinplace \ |
@@ -69,11 +74,6 @@ post-patch { | ||
69 | 74 | ${worksrcpath}/MacVim/mvim |
70 | 75 | } |
71 | 76 | |
72 | -if {[variant_isset universal]} { | |
73 | - set xcodeconfig Universal | |
74 | -} else { | |
75 | - set xcodeconfig Release | |
76 | -} | |
77 | 77 | post-build { |
78 | 78 | system "cd ${worksrcpath}/MacVim; xcodebuild -configuration ${xcodeconfig}" |
79 | 79 | } |