Ticket #40231: mkvtoolnix-clang.diff
File mkvtoolnix-clang.diff, 1.6 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup compiler_blacklist_versions 1.0 5 6 PortGroup muniversal 1.0 6 7 7 8 name mkvtoolnix 8 9 version 6.3.0 10 revision 1 9 11 categories multimedia 10 12 maintainers nomaintainer 11 13 license GPL-2+ LGPL-2.1+ … … 44 46 # http://lists.freebsd.org/pipermail/freebsd-multimedia/2013-July/014157.html 45 47 patchfiles patch-src-common-logger.cpp 46 48 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 50 compiler.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 49 53 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) 55 if {[string match *clang* ${configure.compiler}]} { 56 patchfiles-append patch-configure.diff 60 57 } 61 58 62 59 build.cmd ./drake