Skip to content

Commit

Permalink
lmms: use qt5 on newer macos
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram committed May 7, 2024
1 parent 25e00cb commit b37c807
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions multimedia/lmms/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand Down Expand Up @@ -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
Expand Down

1 comment on commit b37c807

@barracuda156
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mohd-akram Thank you!

Please sign in to comment.