From c3cd49207cb518f9c02ad81148102341cebb24e1 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 20 Sep 2019 22:19:16 +0200 Subject: [PATCH] WIP recipe for an updated version of MuseScore. Fails to build, if anyone feels like giving some help, that would be great. --- media-sound/musescore/musescore-3.2.3.recipe | 81 +++++++++++++++++++ .../patches/musescore-3.2.3.patchset | 51 ++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 media-sound/musescore/musescore-3.2.3.recipe create mode 100644 media-sound/musescore/patches/musescore-3.2.3.patchset diff --git a/media-sound/musescore/musescore-3.2.3.recipe b/media-sound/musescore/musescore-3.2.3.recipe new file mode 100644 index 000000000..818b3a943 --- /dev/null +++ b/media-sound/musescore/musescore-3.2.3.recipe @@ -0,0 +1,81 @@ +SUMMARY="An open source and free music notation software" +DESCRIPTION="This application is used for creating, playing and printing beautiful sheet music" +HOMEPAGE="https://musescore.org/" +COPYRIGHT="2002-2019 Werner Schweer and others" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/musescore/MuseScore/archive/v3.2.3.tar.gz" +CHECKSUM_SHA256="d6e58c942efd4e9b6567705c81b77287acfe0baa99033b3fb96605698bb9b5af" +SOURCE_DIR="MuseScore-$portVersion" +PATCHES="musescore-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86 ?x86_64" +SECONDARY_ARCHITECTURES="!x86" + +PROVIDES=" + musescore$secondaryArchSuffix = $portVersion + cmd:mscore + app:musescore + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libmp3lame$secondaryArchSuffix + lib:libogg$secondaryArchSuffix + lib:libQt5$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Designer$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5Quick$secondaryArchSuffix + lib:libQt5Test$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + lib:libsndfile$secondaryArchSuffix + lib:libvorbis$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libfreetype$secondaryArchSuffix + devel:libGL$secondaryArchSuffix + devel:libmp3lame$secondaryArchSuffix + devel:libogg$secondaryArchSuffix + devel:libQt5$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + devel:libQt5Designer$secondaryArchSuffix + devel:libQt5Gui$secondaryArchSuffix + devel:libQt5Network$secondaryArchSuffix + devel:libQt5Quick$secondaryArchSuffix + devel:libQt5Test$secondaryArchSuffix + devel:libQt5Xml$secondaryArchSuffix + devel:libsndfile$secondaryArchSuffix + devel:libvorbis$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:getconf + cmd:lrelease$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + make release PREFIX=$prefix UPDATE_CACHE=FALSE BUILD_PULSEAUDIO=OFF \ + BUILD_JACK=OFF BUILD_PORTAUDIO=OFF BUILD_WEBENGINE=OFF \ + USE_SYSTEM_FREETYPE=ON DOWNLOAD_SOUNDFONT=OFF BUILD_ALSA=OFF +} + +INSTALL() +{ + make install PREFIX=$prefix UPDATE_CACHE=FALSE BUILD_PULSEAUDIO=OFF \ + BUILD_JACK=OFF BUILD_PORTAUDIO=OFF BUILD_WEBENGINE=OFF \ + USE_SYSTEM_FREETYPE=ON DOWNLOAD_SOUNDFONT=OFF BUILD_ALSA=OFF + rm -rf $prefix/share/icons $prefix/share/applications/mscore.desktop + mv $prefix/share $prefix/data + addAppDeskbarSymlink $binDir/musescore Musescore +} diff --git a/media-sound/musescore/patches/musescore-3.2.3.patchset b/media-sound/musescore/patches/musescore-3.2.3.patchset new file mode 100644 index 000000000..1a8bde9da --- /dev/null +++ b/media-sound/musescore/patches/musescore-3.2.3.patchset @@ -0,0 +1,51 @@ +From 9e7431905e99d10a34107f5fbdb0cff79223f2ff Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Tue, 17 Sep 2019 19:09:55 +0200 +Subject: Import still relevant part of Haiku patches. + + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 93eaafa..6f116e2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -114,6 +114,13 @@ if (APPLE) + option(BUILD_ALSA ${MAC_NOT_AVAIL} OFF) + endif (APPLE) + ++# Disable components not supported on Mac ++if (HAIKU) ++ set(HAIKU_NOT_AVAIL "Not available on Haiku") ++ option(BUILD_PULSEAUDIO ${HAIKU_NOT_AVAIL} OFF) ++ option(BUILD_ALSA ${HAIKU_NOT_AVAIL} OFF) ++endif (HAIKU) ++ + # Disable components not supported on Linux/BSD + if (NOT APPLE AND NOT MINGW AND NOT MSVC) + set(NIX_NOT_AVAIL "Not available on Linux/BSD") +diff --git a/mscore/CMakeLists.txt b/mscore/CMakeLists.txt +index 8033b35..5a8c314 100644 +--- a/mscore/CMakeLists.txt ++++ b/mscore/CMakeLists.txt +@@ -768,8 +768,6 @@ else (MINGW) + + if (APPLE) + target_link_libraries(mscore ${OsxFrameworks}) +- else (APPLE) +- target_link_libraries(mscore rt) + endif (APPLE) + + # 'gold' does not use indirect shared libraries for symbol resolution, Linux only +@@ -777,7 +775,9 @@ else (MINGW) + if(USE_JACK) + target_link_libraries(mscore ${CMAKE_DL_LIBS}) + endif(USE_JACK) +- target_link_libraries(mscore rt) ++ if (NOT HAIKU) ++ target_link_libraries(mscore rt) ++ endif(NOT HAIKU) + endif (NOT APPLE) + + if (APPLE) +-- +2.23.0 +