Skip to content
Permalink
Browse files

mpv: disable swift on xcode without swift 3 support

  • Loading branch information...
sirn authored and pmetzger committed Jul 10, 2019
1 parent f5b3a6c commit a9d4e383a7f3a643d7e54f6f92c9901054f45756
Showing with 5 additions and 3 deletions.
  1. +5 −3 multimedia/mpv/Portfile
@@ -7,7 +7,7 @@ PortGroup legacysupport 1.0

# Please revbump mpv whenever ffmpeg{,-devel} is updated!
github.setup mpv-player mpv 0.29.1 v
revision 5
revision 6
categories multimedia
license GPL-2+
maintainers {ionic @Ionic}
@@ -206,8 +206,10 @@ platform darwin {
# https://github.com/mpv-player/mpv/pull/6214
patchfiles-append patch-fix-swift-detection.diff

# swift build tools test fails on 10.10 now
if {${os.major} < 15} {
# cocoa-cb backend requires Swift 3 support, which is only available
# in Xcode 8.0 to Xcode 10.1. Xcode 10.2 ship with Swift 5 which
# dropped Swift 3 compatibility.
if {[vercmp ${xcodeversion} 8.0] < 0 || {[vercmp ${xcodeversion} 10.2]} >= 0} {
configure.args-replace --enable-swift \
--disable-swift
}

0 comments on commit a9d4e38

Please sign in to comment.
You can’t perform that action at this time.