Ticket #25060: Portfile.diff

File Portfile.diff, 680 bytes (added by tenomoto (Takeshi Enomoto), 14 years ago)
  • Portfile

     
    3333    eval file rename [glob -directory ${workpath} \[A-s\]* t*.?] ${worksrcpath}
    3434    reinplace "s/-DLINUX//" ${worksrcpath}/makefile
    3535    reinplace "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/makefile
     36    if {[variant_isset universal]} {
     37      reinplace "s|CSWITCHES = -O|CSWITCHES = ${configure.cflags} ${configure.universal_cflags}|" ${worksrcpath}/makefile } else {
     38      reinplace "s|CSWITCHES = -O|CSWITCHES = ${configure.cflags} ${configure.cc_archflags}|" ${worksrcpath}/makefile
     39    }
    3640}
    3741
    3842post-configure  {