From b37c80747d244a49270cf33cc1f4f7b0a0a5238c Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Tue, 7 May 2024 13:38:28 +0400 Subject: [PATCH] lmms: use qt5 on newer macos Fixes: https://trac.macports.org/ticket/69923 --- multimedia/lmms/Portfile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/multimedia/lmms/Portfile b/multimedia/lmms/Portfile index 655f0817a0d91..f492cae3d6af0 100644 --- a/multimedia/lmms/Portfile +++ b/multimedia/lmms/Portfile @@ -4,13 +4,12 @@ PortSystem 1.0 PortGroup cmake 1.1 PortGroup github 1.0 PortGroup legacysupport 1.1 -PortGroup qt4 1.0 # MAP_ANONYMOUS legacysupport.newest_darwin_requires_legacy 14 github.setup LMMS lmms 1.2.2 v -revision 0 +revision 1 categories multimedia audio maintainers {@barracuda156 gmail.com:vital.had} openmaintainer license GPL-2+ @@ -82,11 +81,22 @@ configure.args-append -DFLTK_FLUID_EXECUTABLE=${prefix}/bin/fluid \ -DWANT_STK=ON \ -DWANT_VST=OFF +if {${os.platform} ne "darwin" || ${os.major} >= 18} { + PortGroup qt5 1.0 + + qt5.depends_build_component qttools + + configure.args-append -DWANT_QT5=ON +} else { + PortGroup qt4 1.0 + +} + # See: https://github.com/jackaudio/jack2/issues/950 if {${os.platform} ne "darwin" || ${configure.build_arch} ni [list ppc ppc64]} { - configure.args-replace \ - -DWANT_JACK=OFF -DWANT_JACK=ON - depends_lib-append port:jack + configure.args-replace \ + -DWANT_JACK=OFF -DWANT_JACK=ON + depends_lib-append port:jack } configure.args-replace -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib -DCMAKE_INSTALL_NAME_DIR=${applications_dir}/LMMS.app/Contents/Frameworks