Ticket #34374: ppl.diff
File ppl.diff, 1.4 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Portfile
40 40 depends_build port:m4 41 41 depends_lib port:gmp port:glpk 42 42 43 if { ${configure.compiler} == "gcc-4.0" } { 44 configure.compiler gcc-4.2 45 if {![file executable ${configure.cc}]} { 46 depends_build-append port:apple-gcc42 47 depends_skip_archcheck-append apple-gcc42 48 configure.compiler apple-gcc-4.2 49 } 50 } 51 43 52 if { [string match "*clang*" ${configure.compiler}] || [string match "*llvm*" ${configure.compiler}] } { 44 53 # As of 'ppl-0.12.1', we need to be careful about use of the '--enable-fpmath' flag! 45 54 # Newer versions of 'clang' will error about '-frounding-math' being unsupported due to '-Werror'. … … 54 63 reinplace "s|glpk/glpk.h|glpk.h|" ${worksrcpath}/configure 55 64 } 56 65 57 if { ${os.arch} == "i386" } {58 set native_target {i386 x86_64}59 } else {60 set native_target {ppc ppc64}61 }62 63 if { [variant_isset universal] } {64 65 configure.cflags-delete -march=native66 configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}67 68 foreach arch ${universal_archs_supported} {69 lappend merger_configure_args($arch) --host=${arch}-apple-${os.platform}${os.version}70 }71 72 }73 74 66 test.run yes 75 67 test.target check 76 68