mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
WIP recipe for an updated version of MuseScore.
Fails to build, if anyone feels like giving some help, that would be great.
This commit is contained in:
81
media-sound/musescore/musescore-3.2.3.recipe
Normal file
81
media-sound/musescore/musescore-3.2.3.recipe
Normal file
@@ -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
|
||||
}
|
||||
51
media-sound/musescore/patches/musescore-3.2.3.patchset
Normal file
51
media-sound/musescore/patches/musescore-3.2.3.patchset
Normal file
@@ -0,0 +1,51 @@
|
||||
From 9e7431905e99d10a34107f5fbdb0cff79223f2ff Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user