Ticket #34374: Portfile.diff
File Portfile.diff, 1.5 KB (added by adfernandes (Andrew Fernandes), 13 years ago) |
---|
-
Portfile
40 40 depends_build port:m4 41 41 depends_lib port:gmp port:glpk 42 42 43 # The 'gcc-4.0' compiler cannot build 'ppl', so 44 # use 'gcc-4.2' on Leopard, and use 'apple-gcc42' on Tiger and earlier. 45 if { ${configure.compiler} == "gcc-4.0" } { 46 if {"darwin" == ${os.platform} && 8 >= ${os.major}} { 47 depends_build-append port:apple-gcc42 48 configure.compiler apple-gcc42 49 } else { 50 configure.compiler gcc-4.2 51 } 52 } 53 43 54 if { [string match "*clang*" ${configure.compiler}] || [string match "*llvm*" ${configure.compiler}] } { 44 55 # As of 'ppl-0.12.1', we need to be careful about use of the '--enable-fpmath' flag! 45 56 # Newer versions of 'clang' will error about '-frounding-math' being unsupported due to '-Werror'. … … 54 65 reinplace "s|glpk/glpk.h|glpk.h|" ${worksrcpath}/configure 55 66 } 56 67 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 68 test.run yes 75 69 test.target check 76 70