Ticket #21251: Portfile.diff

File Portfile.diff, 604 bytes (added by Veence (Vincent), 15 years ago)
  • Portfile

    old new  
    3232configure.args  --mandir=${prefix}/share/man \
    3333                --enable-shared
    3434
     35post-configure {
     36  if {[variant_isset universal]} {
     37    set lflags {}
     38    foreach arch ${universal_archs} {
     39      lappend lflags -arch ${arch}
     40    }
     41    puts ${lflags}
     42    reinplace -E "s|compiler_flags=$|compiler_flags=' ${lflags}'|" \
     43      ${worksrcpath}/libtool
     44    reinplace -E "s|linker_flags=$|linker_flags=' ${lflags}'|" \
     45      ${worksrcpath}/libtool
     46  }
     47}
     48
    3549test.run        yes
    3650test.target     check