git: 60fe38c09945 - main - audio/musescore: Enable support for ALSA MIDI under FreeBSD.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Jan 2022 17:57:58 UTC
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/ports/commit/?id=60fe38c099458bc1afcb8983c7bdeed0872f438c commit 60fe38c099458bc1afcb8983c7bdeed0872f438c Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-01-29 16:41:09 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-01-29 17:56:52 +0000 audio/musescore: Enable support for ALSA MIDI under FreeBSD. Discussed with: adridg (maintainer) Approved by: pi (implicit) --- audio/musescore/Makefile | 4 ++-- audio/musescore/files/patch-audio_drivers_alsa.cpp | 10 ++++++++++ .../musescore/files/patch-audio_drivers_mididriver.cpp | 18 ++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/audio/musescore/Makefile b/audio/musescore/Makefile index 56dde276ba5f..f1d31827c9a8 100644 --- a/audio/musescore/Makefile +++ b/audio/musescore/Makefile @@ -1,7 +1,7 @@ PORTNAME= ${GH_PROJECT:tl} DISTVERSIONPREFIX= v DISTVERSION= 3.6.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= audio MAINTAINER= adridg@FreeBSD.org @@ -49,7 +49,7 @@ OPTIONS_DEFAULT_i386= WEBENGINE WEBENGINE_DESC= Use WebEngine in the welcome panel ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib -ALSA_CMAKE_BOOL= BUILD_ALSA +ALSA_CMAKE_BOOL= BUILD_ALSA HAS_MIDI JACK_LIB_DEPENDS= libjack.so:audio/jack JACK_CMAKE_BOOL= BUILD_JACK PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio diff --git a/audio/musescore/files/patch-audio_drivers_alsa.cpp b/audio/musescore/files/patch-audio_drivers_alsa.cpp new file mode 100644 index 000000000000..6894e7f3b4ac --- /dev/null +++ b/audio/musescore/files/patch-audio_drivers_alsa.cpp @@ -0,0 +1,10 @@ +--- audio/drivers/alsa.cpp.orig 2022-01-29 16:19:41 UTC ++++ audio/drivers/alsa.cpp +@@ -616,6 +616,7 @@ AlsaAudio::~AlsaAudio() + { + stop(); + delete alsa; ++ delete midiDriver; + } + + //--------------------------------------------------------- diff --git a/audio/musescore/files/patch-audio_drivers_mididriver.cpp b/audio/musescore/files/patch-audio_drivers_mididriver.cpp new file mode 100644 index 000000000000..448f6158424e --- /dev/null +++ b/audio/musescore/files/patch-audio_drivers_mididriver.cpp @@ -0,0 +1,18 @@ +--- audio/drivers/mididriver.cpp.orig 2022-01-29 16:09:37 UTC ++++ audio/drivers/mididriver.cpp +@@ -112,8 +112,14 @@ static const unsigned int outCap = SND_SEQ_PORT_CAP_SU + //--------------------------------------------------------- + + AlsaMidiDriver::AlsaMidiDriver(Seq* s) +- : MidiDriver(s) ++ : MidiDriver(s), alsaSeq(0) + { ++ } ++ ++AlsaMidiDriver::~AlsaMidiDriver() ++ { ++ if (alsaSeq) ++ snd_seq_close(alsaSeq); + } + + //---------------------------------------------------------