Ticket #40930: Portfile.diff

File Portfile.diff, 1.5 KB (added by tenomoto (Takeshi Enomoto), 11 years ago)
  • Portfile

     
    9494# temporary patches; these are fixed upstream already.
    9595
    9696patchfiles-append \
     97    patch-configure.diff \
    9798    patch-liboctave-eigs-base.cc.diff \
    9899    patch-liboctave-regexp.h.diff
    99100
     101if {${os.platform}=="darwin" && ${os.version} > 10} {
     102    # 10.7 or later requires an extra patch; this patch will break the build on
     103    # 10.6 and prior, so apply it only under 10.7.
     104    patchfiles-append patch-src-display.cc.diff
     105}
     106
    100107# Block compilers: Some older versions of CLANG do not honor the CPATH
    101108# environment variables, which is required for compiling this port
    102109# when using MacPorts.  The versions seem to be: MacPorts CLANG 2.9 or
     
    107114
    108115compiler.blacklist-append { clang <= 318.0.61 } macports-clang-2.9
    109116
    110 platform darwin 11 {
    111     # 10.7 requires an extra patch; this patch will break the build on
    112     # 10.6 and prior, so apply it only under 10.7.
    113 
    114     patchfiles-append patch-src-display.cc.diff
    115 }
    116 
    117 platform darwin 12 {
    118     # In 10.8 patch is required as above, also
    119     # the LANG environment variable needs to
     117if {${os.platform} == "darwin" && ${os.version} > 11} {
     118    # With 10.8 or later, the LANG environment variable needs to
    120119    # be set to "C" otherwise /usr/bin/sed
    121120    # fails with an error, if you installed gsed
    122121    # with default name this should have no effect.
    123122
    124     patchfiles-append patch-src-display.cc.diff
    125123    build.args-append LANG="C"
    126124}
    127125