void-packages/srcpkgs/musescore/template
2020-01-21 01:26:37 +01:00

39 lines
1.3 KiB
Bash

# Template file for 'musescore'
pkgname=musescore
version=3.3.4
revision=2
wrksrc="MuseScore-${version}"
build_style=gnu-makefile
make_build_args="PREFIX=/usr USE_SYSTEM_FREETYPE=ON"
make_install_args="-C build.release"
hostmakedepends="cmake pkg-config"
makedepends="jack-devel lame-devel libsndfile-devel portaudio-devel
portmidi-devel pulseaudio-devel qt5-declarative-devel qt5-script-devel
qt5-svg-devel qt5-tools-devel qt5-webchannel-devel
qt5-location-devel qt5-xmlpatterns-devel qt5-plugin-mysql qt5-plugin-odbc
qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds"
depends="qt5-plugin-sqlite"
short_desc="Create, play and print beautiful sheet music"
maintainer="Brian Olsen <bnolsen@comcast.net>"
license="GPL-2.0-or-later"
homepage="https://musescore.org/"
distfiles="https://github.com/musescore/MuseScore/archive/v${version}.tar.gz"
checksum=ab8bade6c7eec6a9ae03f435cad65e79c4ca031d19020aa6e2a4da2868f49a2a
nocross="genManual: cannot execute binary file: Exec format error"
build_options="webengine"
desc_option_webengine="Build with Qt5 WebEngine support"
if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
build_options_default="webengine"
fi
if [ "$build_option_webengine" ]; then
makedepends+=" qt5-webengine-devel"
else
make_build_args+=" BUILD_WEBENGINE=OFF"
fi
pre_configure() {
vsed -i -e "s/-lporttime//" mscore/CMakeLists.txt
}