From 2bef727d14b2bdeecc950dd1bd437f94192b50ff Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 11 Oct 2024 22:56:07 +0700 Subject: [PATCH] VLC2: disable screen module on < 10.6 --- multimedia/VLC2/Portfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/multimedia/VLC2/Portfile b/multimedia/VLC2/Portfile index a2e25678f35f..4b0a0c7a928a 100644 --- a/multimedia/VLC2/Portfile +++ b/multimedia/VLC2/Portfile @@ -379,6 +379,12 @@ if {(${subport} eq ${name}) || (${subport} eq "lib${name}")} { --enable-bonjour \ --enable-upnp + # Screen module uses CGDisplayCreateImageForRect which exists in 10.6+: + if {${os.platform} eq "darwin" && ${os.major} < 10} { + configure.args-append \ + --disable-screen + } + platform macosx { # taken from VLC's own configure.sh script for OS X: configure.args-replace --disable-realrtsp --enable-realrtsp