multimedia/MuseScore: build and README update

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
klaatu 2022-04-24 18:33:57 +12:00 committed by Willy Sudiarto Raharjo
parent 63ba647c7e
commit f72032fc3b
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 20 additions and 18 deletions

View File

@ -75,28 +75,31 @@ cp $CWD/MuseScore_General.sf3 share/sound
# so turn it off in CMakeLists.txt
sed -i '/(BUILD_CRASH_REPORTER/s|ON)|OFF)|' CMakeLists.txt
sed -i 's|share/man|man|' CMakeLists.txt
#musescore doesn't like to build with webengine with qt4 installed
#because the qmake finder finds the qt4 version. lets patch this
sed -i 's/qmake)/qmake-qt5)/g' build/FindQt5.cmake
make -j11 revision
mkdir b
cd b
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS_RELEASE="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE="$SLKCFLAGS" \
-DCMAKE_MODULE_LINKER_FLAGS_RELEASE="-pthread" \
-DMUSESCORE_BUILD_CONFIG=release \
-DDOWNLOAD_SOUNDFONT=OFF \
-DUSE_SYSTEM_FREETYPE=ON \
-DBUILD_WEBENGINE=OFF \
-DBUILD_TELEMETRY_MODULE=OFF \
-DBUILD_PORTAUDIO=ON \
-DBUILD_PORTMIDI=ON \
-DQMAKE=/usr/lib"${LIBDIRSUFFIX}"/qt5/bin/qmake \
-DQT_QMAKE_EXECUTABLE=/usr/lib"${LIBDIRSUFFIX}"/qt5/bin/qmake \
..
make -j11 release \
PREFIX=/usr \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-pthread" \
MUSESCORE_BUILD_CONFIG=release \
DOWNLOAD_SOUNDFONT=OFF \
USE_SYSTEM_FREETYPE=ON \
DBUILD_WEBENGINE=OFF \
DBUILD_TELEMETRY_MODULE=OFF \
VERBOSE=1
make install \
-C build.release \
DESTDIR=$PKG \
UPDATE_CACHE=FALSE
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View File

@ -6,6 +6,5 @@ program, licenced under GNU GPL. Features:
* easy and fast note entry with mouse, keyboard or midi
* integrated sequencer and FluidSynth software synthesizer
* import and export of MusicXml and standard midifiles (SMF)
* platform independent code for Linux, Windows and Mac
* platform independent code for Linux, Windows, Mac
Optional dependency: portaudio