PKGNAME=musescore
PKGSEC=sound
PKGDEP="lame portaudio pulseaudio qt-5 shared-mime-info flac freetype"
BUILDDEP="doxygen gtk-2"
PKGDES="Create, play and print beautiful sheet music"

CMAKE_AFTER=(
    "-DMUSESCORE_BUILD_MODE=release"
    "-DMUE_ENABLE_AUDIO_JACK=ON"
    "-DMUE_ENABLE_FILE_ASSOCIATION=ON"
    "-DMUE_DOWNLOAD_SOUNDFONT=OFF"
    "-DMUE_COMPILE_USE_SYSTEM_FLAC=ON"
    "-DMUE_COMPILE_USE_SYSTEM_FREETYPE=ON"
    "-DMUE_BUILD_UNIT_TESTS=OFF"
    "-DMUE_BUILD_CRASHPAD_CLIENT=OFF"
    "-DMUE_INSTALL_SOUNDFONT=ON"
)

# FIXME: No data signature found in rcc
# See https://bugreports.qt.io/browse/QTBUG-73834
# & https://bugs.gentoo.org/908808
NOLTO=1

# FIXME: https://github.com/musescore/MuseScore/blob/master/buildscripts/cmake/GetPlatformInfo.cmake#L45
FAIL_ARCH="!(amd64|arm64|loongarch64|loongarch64_nosimd)"
