Ticket #29314: ppl-muniversal.diff
File ppl-muniversal.diff, 1.3 KB (added by daitakahashi, 14 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 77839 2011-04-14 16:39:55Z adfernandes@macports.org $ 2 2 PortSystem 1.0 3 PortGroup muniversal 1.0 3 4 4 5 name ppl 5 6 version 0.11.2 … … 36 37 37 38 depends_lib port:gmp port:glpk 38 39 39 universal_variant no40 41 40 configure.compiler gcc-4.2 42 41 43 42 variant gcc43 conflicts gcc44 gcc45 description "Use GCC 4.3 for compilation of PPL" { … … 58 57 configure.cflags-append "-ftree-vectorize -O3 -march=native" 59 58 } 60 59 60 if { ${os.arch} == "i386" } { 61 set native_target {i386 x86_64} 62 } else { 63 set native_target {ppc ppc64} 64 } 65 66 if { [variant_isset universal] } { 67 configure.cflags-delete -march=native 68 configure.args-append --build=${build_arch}-apple-${os.platform}${os.version} 69 70 foreach arch ${universal_archs_supported} { 71 lappend merger_configure_args($arch) --host=${arch}-apple-${os.platform}${os.version} 72 } 73 foreach arch ${native_target} { 74 lappend merger_configure_cflags($arch) -march=native 75 } 76 } 77 61 78 test.run yes 62 79 test.target check 63 80