# Template file for 'muse'
pkgname=muse
version=4.1.0
revision=5
build_wrksrc=src
build_style=cmake
build_helper=qmake
configure_args="-DENABLE_RTAUDIO=OFF -DLIB_INSTALL_DIR=/usr/lib
 $(vopt_bool alsa ENABLE_ALSA) $(vopt_bool python ENABLE_PYTHON)"
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
makedepends="$(vopt_if alsa alsa-lib-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="Evgeny Ermakov <evgeny.v.ermakov@gmail.com>"
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=b5462cdebd84326b0ffc0aa0b2c27f5eab55362dcc04e17796de866fcee4f391
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
}
