Ticket #31679: Portfile.diff

File Portfile.diff, 981 bytes (added by howarth@…, 12 years ago)

use configure.compiler conditionals

  • Portfile

    old new  
    44
    55name            xemacs
    66version         21.4.22
    7 revision        4
     7revision        5
    88set sumo_date   2009-02-17
    99categories      editors x11
    1010platforms       darwin
     
    4343                    sha1    dc50bc3b62e5ff1cd766c7e4f31880bd200caad5 \
    4444                    rmd160  506b7465687ff9dafe26f46e049b6aad8915eb49
    4545
    46 if {${configure.compiler} == "clang"} {
    47     configure.compiler llvm-gcc-4.2
    48 }
    49 
    5046configure.args  --mandir=${prefix}/share/man \
    5147                --without-postgresql \
    5248                --without-ldap \
     
    8884    distfiles-delete      ${sumo_dist}:package ${mule_dist}:package
    8985}
    9086
    91 platform darwin 11 {
     87# http://trac.macports.org/ticket/31679
     88if {${configure.compiler} == "llvm-gcc-4.2" || ${configure.compiler} == "clang"} {
     89    configure.cflags-append -std=c89
    9290    configure.ldflags-append -Wl,-no_pie
    9391}
    94