# Template file for 'muse'
pkgname=muse
version=4.2.1
revision=3
build_wrksrc=src
build_style=cmake
build_helper="qmake qemu"
configure_args="-DLIB_INSTALL_DIR=/usr/lib
 $(vopt_bool alsa ENABLE_ALSA) $(vopt_bool python ENABLE_PYTHON)"
hostmakedepends="pkg-config qt5-host-tools qt5-qmake extra-cmake-modules"
makedepends="$(vopt_if alsa alsa-lib-devel) rtaudio-devel dssi-devel fluidsynth-devel
 jack-devel ladspa-sdk libinstpatch-devel liblo-devel liblrdf-devel libsamplerate-devel
 libsndfile-devel lilv-devel lv2 rubberband-devel qt5-svg-devel qt5-tools-devel
 $(vopt_if python python3-devel)"
depends="desktop-file-utils qt5-svg $(vopt_if python 'python3-six python3-Pyro4')"
short_desc="MIDI/Audio sequencer with recording and editing capabilities"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://muse-sequencer.github.io"
distfiles="https://github.com/muse-sequencer/muse/archive/${version/pre/-pre}.tar.gz"
checksum=c9b87d9cdacf280cc1eaefcf05e26e4c2f38dea969823fd8fb7e417f2e7647cf
python_version=3

build_options="alsa python"
build_options_default="alsa python"

pre_build() {
	# For some reason, this target doesn't automatically build on musl
	ninja ${makejobs} -C build muse/mplugins/ui_midifilter.h
}
