Ticket #41408: Portfile.diff

File Portfile.diff, 1018 bytes (added by jmroot (Joshua Root), 10 years ago)
  • Portfile

     
    55
    66name         imake
    77version      1.0.5
    8 revision     1
     8revision     2
    99categories   x11 devel
    1010license      X11
    1111installs_libs no
     
    2727depends_run    port:xorg-cf-files path:bin/perl:perl5
    2828depends_build  port:pkgconfig port:xorg-xproto
    2929
     30if {${os.platform} eq "darwin" && ${os.major} >= 14} {
     31    depends_run-append port:gcc49
     32    set cppcmd ${prefix}/bin/cpp-mp-4.9
     33} elseif {${os.platform} eq "darwin" && ${os.major} >= 12} {
     34    if {[file executable /usr/bin/llvm-cpp-4.2]} {
     35        set cppcmd /usr/bin/llvm-cpp-4.2
     36    } else {
     37        depends_run-append port:llvm-gcc42
     38        set cppcmd ${prefix}/bin/llvm-cpp-4.2
     39    }
     40} else {
     41    set cppcmd /usr/bin/cpp
     42}
     43
    3044patchfiles     patch-imakemdep.h.diff
     45post-patch {
     46    reinplace "s|::CPPCMD::|${cppcmd}|" ${worksrcpath}/imakemdep.h
     47}
    3148
    3249configure.env  HAS_PERL=yes
    3350