mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
e8035d4760
Major update from 3.31.8 to 4.1.2. CMake 4.0 introduces a breaking change: compatibility with versions older than 3.5 has been removed. Projects calling cmake_minimum_required() or cmake_policy() with versions < 3.5 now error out. To maintain compatibility with existing ports during the transition, the cmake module now provides MODCMAKE_POLICY_VERSION_OVERRIDE (idea from sthen@) support: - MODCMAKE_POLICY_VERSION_OVERRIDE ?= No - MODCMAKE_POLICY_VERSION_OVERRIDE_VER ?= 3.5 When MODCMAKE_POLICY_VERSION_OVERRIDE is set to "yes", CMake is instructed to accept policy versions down to the specified minimum (default 3.5) via -DCMAKE_POLICY_VERSION_MINIMUM. This allows older ports to build while acknowledging they may use deprecated features. https://cmake.org/cmake/help/latest/release/4.0.html https://cmake.org/cmake/help/latest/release/4.1.html OK sthen@
75 lines
1.8 KiB
Makefile
75 lines
1.8 KiB
Makefile
BROKEN-hppa = ICE on moc_qtsingleapplication.cxx
|
|
|
|
V = 3.6.2
|
|
REVISION = 2
|
|
COMMENT = WYSIWYG music notation software (MuseScore)
|
|
GH_ACCOUNT = musescore
|
|
GH_PROJECT = MuseScore
|
|
GH_TAGNAME = v${V}
|
|
PKGNAME = musescore-${V}
|
|
CATEGORIES = audio x11
|
|
|
|
HOMEPAGE = https://musescore.org/
|
|
|
|
# GPLv2 only
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} Qt5Concurrent Qt5Core Qt5Gui Qt5Help
|
|
WANTLIB += Qt5Network Qt5OpenGL Qt5PrintSupport Qt5Qml Qt5Quick
|
|
WANTLIB += Qt5QuickControls2 Qt5QuickWidgets Qt5Sql Qt5Svg Qt5Test
|
|
WANTLIB += Qt5Widgets Qt5Xml Qt5XmlPatterns c freetype m ogg portaudio
|
|
WANTLIB += sndfile vorbis vorbisfile z Qt5QmlModels Qt5QuickTemplates2
|
|
WANTLIB += portmidi
|
|
|
|
MODULES = devel/cmake \
|
|
x11/qt5
|
|
|
|
BUILD_DEPENDS = audio/lame \
|
|
misc/findutils
|
|
|
|
LIB_DEPENDS = audio/portaudio-svn \
|
|
audio/libsndfile>=1.0.25p0 \
|
|
audio/portmidi \
|
|
x11/qt5/qtdeclarative \
|
|
x11/qt5/qtquickcontrols2 \
|
|
x11/qt5/qtsvg \
|
|
x11/qt5/qttools \
|
|
x11/qt5/qtxmlpatterns
|
|
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
misc/shared-mime-info \
|
|
x11/gtk+4,-guic
|
|
|
|
CONFIGURE_ARGS =-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
|
-DBUILD_ALSA=OFF \
|
|
-DBUILD_JACK=OFF \
|
|
-DBUILD_PORTMIDI=ON \
|
|
-DBUILD_PULSEAUDIO=OFF \
|
|
-DBUILD_PCH=OFF \
|
|
-DBUILD_WEBENGINE=OFF \
|
|
-DUSE_SYSTEM_FREETYPE=ON \
|
|
-DBUILD_CRASH_REPORTER=OFF \
|
|
-DDOWNLOAD_SOUNDFONT=OFF \
|
|
-DBUILD_TELEMETRY_MODULE=OFF \
|
|
-DMUSESCORE_BUILD_CONFIG=release
|
|
|
|
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
|
|
|
|
CXXFLAGS += -Wno-inconsistent-missing-override
|
|
CXXFLAGS += -I${LOCALBASE}/include -I${X11BASE}/include
|
|
MODCMAKE_LDFLAGS = -L${X11BASE}/lib -L${LOCALBASE}/lib
|
|
|
|
.if ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
|
|
CXXFLAGS += -mxgot
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
CXXFLAGS = -Oz -pipe
|
|
.endif
|
|
|
|
NO_TEST = Yes
|
|
MAJ_MIN = ${V:C/^([0-9]+\.[0-9]+).*/\1/}
|
|
SUBST_VARS += MAJ_MIN
|
|
|
|
.include <bsd.port.mk>
|