OSDN Git Service

MacVim fix universal
authorKazuki Sakamoto <sakamoto@splhack.org>
Sun, 5 Apr 2009 22:01:22 +0000 (07:01 +0900)
committerKazuki Sakamoto <sakamoto@splhack.org>
Sun, 5 Apr 2009 22:01:22 +0000 (07:01 +0900)
editors/macvim/Portfile

index 6740d8f..97a4693 100644 (file)
@@ -37,6 +37,14 @@ configure.args               --enable-gui=macvim \
 configure.cppflags     -I${prefix}/include
 configure.ldflags      -L${prefix}/lib
 
 configure.cppflags     -I${prefix}/include
 configure.ldflags      -L${prefix}/lib
 
+if {[variant_isset universal]} {
+       configure.universal_target      10.4
+       configure.args-append           --with-mac-arch=both
+       set xcodeconfig Universal
+} else {
+       set xcodeconfig Release
+}
+
 use_parallel_build     yes
 
 variant perl description {Enable Perl scripting} {
 use_parallel_build     yes
 
 variant perl description {Enable Perl scripting} {
@@ -59,9 +67,6 @@ variant tcl description {Enable Tcl scripting} {
 variant cscope description {Enable source code browsing with cscope} {
        configure.args-append   --enable-cscope
 }
 variant cscope description {Enable source code browsing with cscope} {
        configure.args-append   --enable-cscope
 }
-variant universal {
-       configure.args-append   --with-mac-arch=both
-}
 
 post-patch {
        reinplace \
 
 post-patch {
        reinplace \
@@ -69,11 +74,6 @@ post-patch {
                ${worksrcpath}/MacVim/mvim
 }
 
                ${worksrcpath}/MacVim/mvim
 }
 
-if {[variant_isset universal]} {
-       set xcodeconfig Universal
-} else {
-       set xcodeconfig Release
-}
 post-build {
        system "cd ${worksrcpath}/MacVim; xcodebuild -configuration ${xcodeconfig}"
 }
 post-build {
        system "cd ${worksrcpath}/MacVim; xcodebuild -configuration ${xcodeconfig}"
 }