Ticket #40231: mkvtoolnix-clang.diff

File mkvtoolnix-clang.diff, 1.6 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)
  • Portfile

     
    22# $Id$
    33
    44PortSystem          1.0
     5PortGroup           compiler_blacklist_versions 1.0
    56PortGroup           muniversal 1.0
    67
    78name                mkvtoolnix
    89version             6.3.0
     10revision            1
    911categories          multimedia
    1012maintainers         nomaintainer
    1113license             GPL-2+ LGPL-2.1+
     
    4446# http://lists.freebsd.org/pipermail/freebsd-multimedia/2013-July/014157.html
    4547patchfiles          patch-src-common-logger.cpp
    4648
    47 # configure complains about gcc < 4.6 and clang
    48 compiler.whitelist macports-gcc-4.7 macports-gcc-4.8 macports-gcc-4.9
     49# Blacklist compilers that don't have the needed C++11 features
     50compiler.blacklist  {clang < 421} macports-clang-2.9 macports-clang-3.0 \
     51                    apple-gcc-4.0 apple-gcc-4.2 gcc-3.3 gcc-4.0 gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2 \
     52                    macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4 macports-gcc-4.5
    4953
    50 platform darwin {
    51     if {${os.major} >= 13} {
    52         # This project needs to be updated to build with clang++ against libc++
    53         depends_lib
    54         depends_run
    55         pre-fetch {
    56             ui_error "$name does not build on Mavericks or later."
    57             error "unsupported platform"
    58         }
    59     }
     54# When using C++11 features, clang must use libc++ (but gcc must not)
     55if {[string match *clang* ${configure.compiler}]} {
     56    patchfiles-append   patch-configure.diff
    6057}
    6158
    6259build.cmd           ./drake