Ticket #34374: ppl.diff

File ppl.diff, 1.4 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)
  • Portfile

     
    4040depends_build       port:m4
    4141depends_lib         port:gmp port:glpk
    4242
     43if { ${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
    4352if { [string match "*clang*" ${configure.compiler}] || [string match "*llvm*" ${configure.compiler}] } {
    4453    # As of 'ppl-0.12.1', we need to be careful about use of the '--enable-fpmath' flag!
    4554    # Newer versions of 'clang' will error about '-frounding-math' being unsupported due to '-Werror'.
     
    5463    reinplace "s|glpk/glpk.h|glpk.h|" ${worksrcpath}/configure
    5564}
    5665
    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=native
    66     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 
    7466test.run            yes
    7567test.target         check
    7668