Ticket #41408: Portfile.diff
File Portfile.diff, 1018 bytes (added by jmroot (Joshua Root), 10 years ago) |
---|
-
Portfile
5 5 6 6 name imake 7 7 version 1.0.5 8 revision 18 revision 2 9 9 categories x11 devel 10 10 license X11 11 11 installs_libs no … … 27 27 depends_run port:xorg-cf-files path:bin/perl:perl5 28 28 depends_build port:pkgconfig port:xorg-xproto 29 29 30 if {${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 30 44 patchfiles patch-imakemdep.h.diff 45 post-patch { 46 reinplace "s|::CPPCMD::|${cppcmd}|" ${worksrcpath}/imakemdep.h 47 } 31 48 32 49 configure.env HAS_PERL=yes 33 50