Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2019 21:04:10 +0000 (UTC)
From:      Adriaan de Groot <adridg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r489899 - in head/audio/musescore: . files
Message-ID:  <201901102104.x0AL4AAb051469@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adridg
Date: Thu Jan 10 21:04:10 2019
New Revision: 489899
URL: https://svnweb.freebsd.org/changeset/ports/489899

Log:
  Fix the audio/musescore update.
  
   - add missing patch file
   - change WebEngine to an option, unbreak (hopefully the code is ok)
     on aarch64 and ppc64
  
  Should have mentioned that the release notes for 3.0.0 are at
  	https://musescore.org/en/handbook/developers-handbook/release-notes/release-notes-musescore-3
  But that, plus the versions 2.2, 2.2.1, 2.3, 2.3.1 and 2.3.2 that
  were skipped in ports are too many to summarize here.
  
  PR:		234801

Added:
  head/audio/musescore/files/patch-mscore_CMakeLists.txt   (contents, props changed)
Modified:
  head/audio/musescore/Makefile

Modified: head/audio/musescore/Makefile
==============================================================================
--- head/audio/musescore/Makefile	Thu Jan 10 21:02:08 2019	(r489898)
+++ head/audio/musescore/Makefile	Thu Jan 10 21:04:10 2019	(r489899)
@@ -3,6 +3,7 @@
 
 PORTNAME=	musescore
 DISTVERSION=	3.0.0
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	http://ftp.osuosl.org/pub/musescore/releases/MuseScore-${DISTVERSION}/
 DISTNAME=	MuseScore-${DISTVERSION}
@@ -26,18 +27,24 @@ LIB_DEPENDS=	libmp3lame.so:audio/lame \
 USES=		cmake compiler:c++11-lib desktop-file-utils \
 		pkgconfig qt:5 shared-mime-info zip
 USE_QT=		core declarative gui widgets opengl concurrent designer help network \
-		scripttools svg sql printsupport testlib webengine \
+		scripttools svg sql printsupport testlib \
 		xml xmlpatterns \
 		buildtools_build linguisttools_build qmake_build uitools_build
 ALL_TARGET=	lrelease manpages all
 INSTALLS_ICONS=	yes
-CMAKE_ARGS+=	-DUSE_SYSTEM_FREETYPE="ON" -DBUILD_PORTMIDI=OFF
+CMAKE_ARGS+=	-DUSE_SYSTEM_FREETYPE="ON" \
+		-DBUILD_PORTMIDI=OFF \
+		-DBUILD_PCH=OFF
 
 DATADIR=	${PREFIX}/share/mscore-${PORTVERSION:R}
 
-OPTIONS_DEFINE=		ALSA JACK PORTAUDIO PULSEAUDIO OCR
+OPTIONS_DEFINE=		ALSA JACK PORTAUDIO PULSEAUDIO OCR WEBENGINE
 OPTIONS_DEFAULT=	PORTAUDIO
+OPTIONS_DEFAULT_amd64=	WEBENGINE
+OPTIONS_DEFAULT_i386=	WEBENGINE
+
 OCR_DESC=		Optical Character Recognition
+WEBENGINE_DESC=		Use WebEngine in the welcome panel
 
 ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
 ALSA_CMAKE_BOOL=	BUILD_ALSA
@@ -48,6 +55,8 @@ PORTAUDIO_CMAKE_BOOL=	BUILD_PORTAUDIO
 PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
 PULSEAUDIO_CMAKE_BOOL=	BUILD_PULSEAUDIO
 OCR_CMAKE_BOOL=		OCR
+WEBENGINE_USE=		qt=webengine
+WEBENGINE_CMAKE_BOOL=	BUILD_WEBENGINE
 
 .include <bsd.port.pre.mk>
 

Added: head/audio/musescore/files/patch-mscore_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/musescore/files/patch-mscore_CMakeLists.txt	Thu Jan 10 21:04:10 2019	(r489899)
@@ -0,0 +1,22 @@
+Editorialize. What are they thinking?
+
+--- mscore/CMakeLists.txt.orig	2019-01-10 20:08:02 UTC
++++ mscore/CMakeLists.txt
+@@ -661,7 +661,7 @@ else (MINGW)
+ 
+    if ( NOT MSVC )
+ ## install qwebengine core
+-      if (NOT APPLE AND USE_WEBENGINE)
++      if (YOU_CANT_SERIOUSLY_SUGGEST_TO_COPY_WEBENGINE_EXECUTABLES_AROUND)
+          install(FILES
+             ${QT_INSTALL_LIBEXECS}/QtWebEngineProcess
+             DESTINATION bin
+@@ -674,7 +674,7 @@ else (MINGW)
+             ${QT_INSTALL_TRANSLATIONS}/qtwebengine_locales
+             DESTINATION lib/qt5/translations
+             )
+-      endif(NOT APPLE AND USE_WEBENGINE)
++      endif(YOU_CANT_SERIOUSLY_SUGGEST_TO_COPY_WEBENGINE_EXECUTABLES_AROUND)
+ 
+       target_link_libraries(mscore
+          ${ALSA_LIB}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901102104.x0AL4AAb051469>