From 306440727d624085c88f31a54aee56124f87bb8d Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 24 Oct 2021 14:09:27 -0700 Subject: [PATCH] audio/inscore: New port: Environment for the design of interactive augmented music scores The executable 'inscoreviewer' isn't installed for some reason, see https://github.com/grame-cncm/inscore/issues/18 PR: 221865 --- audio/Makefile | 1 + audio/inscore/Makefile | 35 ++++++ audio/inscore/distinfo | 5 + .../inscore/files/patch-build_CMakeLists.txt | 13 +++ audio/inscore/files/patch-build_Makefile | 11 ++ .../patch-build_modules_GUIDOConfig.cmake | 15 +++ .../files/patch-src_inscore_model_Modules.h | 11 ++ audio/inscore/pkg-descr | 7 ++ audio/inscore/pkg-message | 25 ++++ audio/inscore/pkg-plist | 107 ++++++++++++++++++ 10 files changed, 230 insertions(+) create mode 100644 audio/inscore/Makefile create mode 100644 audio/inscore/distinfo create mode 100644 audio/inscore/files/patch-build_CMakeLists.txt create mode 100644 audio/inscore/files/patch-build_Makefile create mode 100644 audio/inscore/files/patch-build_modules_GUIDOConfig.cmake create mode 100644 audio/inscore/files/patch-src_inscore_model_Modules.h create mode 100644 audio/inscore/pkg-descr create mode 100644 audio/inscore/pkg-message create mode 100644 audio/inscore/pkg-plist diff --git a/audio/Makefile b/audio/Makefile index 33294914c6ea..2adae11009a7 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -319,6 +319,7 @@ SUBDIR += id3v2 SUBDIR += ifp-line SUBDIR += infamous-plugins-lv2 + SUBDIR += inscore SUBDIR += intersect-lv2 SUBDIR += invada-studio-plugins-lv2 SUBDIR += ir-lv2 diff --git a/audio/inscore/Makefile b/audio/inscore/Makefile new file mode 100644 index 000000000000..cd6d8fe2ef52 --- /dev/null +++ b/audio/inscore/Makefile @@ -0,0 +1,35 @@ +PORTNAME= inscore +PORTVERSION= 1.28 +CATEGORIES= audio + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Environment for the design of interactive augmented music scores + +LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/src/license.txt + +LIB_DEPENDS= libGUIDOEngine.so:audio/guidolib \ + libguidoar.so:audio/guidoar \ + libmicrohttpd.so:www/libmicrohttpd + +USES= cmake gnome qt:5 +USE_QT= core declarative gui network multimedia opengl printsupport sensors svg widgets websockets \ + qmake_build buildtools_build +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= grame-cncm +GH_TAGNAME= v${PORTVERSION:S/.//} +GH_TUPLE= grame-cncm:guidolib:3cf3d88:guidolib/modules/guidolib # this uses some un-installed parts of the guidolib project, partucularly QGuidoPainter.h + +CMAKE_SOURCE_PATH= ${WRKSRC}/build + +CXXFLAGS+= -I${LOCALBASE}/include/guido -I${LOCALBASE}/include/guidoar + +OPTIONS_DEFINE= DOCS EXAMPLES +OPTIONS_DEFAULT= DOCS EXAMPLES + +PORTDOCS= * +PORTEXAMPLES= * + +.include diff --git a/audio/inscore/distinfo b/audio/inscore/distinfo new file mode 100644 index 000000000000..992c9f949b4d --- /dev/null +++ b/audio/inscore/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1635099044 +SHA256 (grame-cncm-inscore-1.28-v128_GH0.tar.gz) = f280d9057d59b140f8d567f9e8ac0ecdd811e2964475a817eb1a54f15d493d8b +SIZE (grame-cncm-inscore-1.28-v128_GH0.tar.gz) = 443524698 +SHA256 (grame-cncm-guidolib-3cf3d88_GH0.tar.gz) = 0ec8a9e60d76230e69de9e0263b04ffe93d4f2fa660856e2666863cd99f6bea4 +SIZE (grame-cncm-guidolib-3cf3d88_GH0.tar.gz) = 42458506 diff --git a/audio/inscore/files/patch-build_CMakeLists.txt b/audio/inscore/files/patch-build_CMakeLists.txt new file mode 100644 index 000000000000..465c184506be --- /dev/null +++ b/audio/inscore/files/patch-build_CMakeLists.txt @@ -0,0 +1,13 @@ +--- build/CMakeLists.txt.orig 2021-10-24 18:32:31 UTC ++++ build/CMakeLists.txt +@@ -378,8 +378,8 @@ else() + set (INSTALL_BIN ${CMAKE_INSTALL_PREFIX}/bin) + set (INSTALL_LIB ${CMAKE_INSTALL_PREFIX}/lib) + set (INSTALL_INC ${CMAKE_INSTALL_PREFIX}/include/inscore) +- set (INSTALL_SAMPLES ${CMAKE_INSTALL_PREFIX}/share/inscore/examples) +- set (INSTALL_GMN_SAMPLES ${CMAKE_INSTALL_PREFIX}/share/inscore/GMN-Examples) ++ set (INSTALL_SAMPLES share/examples/inscore) ++ set (INSTALL_GMN_SAMPLES share/examples/inscore) + set (INSTALL_BUNDLES ${CMAKE_INSTALL_PREFIX}/share/inscore/bundles) + set (INSTALL_TOOLS ${CMAKE_INSTALL_PREFIX}/share/inscore/tools) + set (INSTALL_INTERFACES ${CMAKE_INSTALL_PREFIX}/share/inscore) diff --git a/audio/inscore/files/patch-build_Makefile b/audio/inscore/files/patch-build_Makefile new file mode 100644 index 000000000000..780da7561b9a --- /dev/null +++ b/audio/inscore/files/patch-build_Makefile @@ -0,0 +1,11 @@ +--- build/Makefile.orig 2021-02-23 07:13:54 UTC ++++ build/Makefile +@@ -38,7 +38,7 @@ endif + GENERATOR ?= + + all : +- $(MAKE) modules ++ #$(MAKE) modules + $(MAKE) inscore + + test: diff --git a/audio/inscore/files/patch-build_modules_GUIDOConfig.cmake b/audio/inscore/files/patch-build_modules_GUIDOConfig.cmake new file mode 100644 index 000000000000..d4353b0f6738 --- /dev/null +++ b/audio/inscore/files/patch-build_modules_GUIDOConfig.cmake @@ -0,0 +1,15 @@ +--- build/modules/GUIDOConfig.cmake.orig 2021-05-09 16:41:13 UTC ++++ build/modules/GUIDOConfig.cmake +@@ -21,9 +21,9 @@ elseif(WIN32) + set (GUIDO_DLL ${GUIDOLIB}/build/lib/GUIDOEngine.dll) + endif() + else() +- set (GUIDO_LIBRARIES -L${CMAKE_CURRENT_SOURCE_DIR}/lib -lGUIDOEngine) ++ set (GUIDO_LIBRARIES -lGUIDOEngine) + endif() + +-file (STRINGS "${GUIDOLIB}/version.txt" GUIDO_VERSION) +-message (STATUS "Using GUIDOEngine version ${GUIDO_VERSION}") ++#file (STRINGS "${GUIDOLIB}/version.txt" GUIDO_VERSION) ++message (STATUS "Using GUIDOEngine") + diff --git a/audio/inscore/files/patch-src_inscore_model_Modules.h b/audio/inscore/files/patch-src_inscore_model_Modules.h new file mode 100644 index 000000000000..a414b0e69073 --- /dev/null +++ b/audio/inscore/files/patch-src_inscore_model_Modules.h @@ -0,0 +1,11 @@ +--- src/inscore/model/Modules.h.orig 2021-02-23 07:27:14 UTC ++++ src/inscore/model/Modules.h +@@ -56,7 +56,7 @@ + + #if QTView + # define INCLUDEFaustWeb false +-# define HASQGuidoImporter true ++# define HASQGuidoImporter false + # define HASFileDownloader true + # define HASWSSupport true + # define HASHTTPSupport true diff --git a/audio/inscore/pkg-descr b/audio/inscore/pkg-descr new file mode 100644 index 000000000000..68c33d41e630 --- /dev/null +++ b/audio/inscore/pkg-descr @@ -0,0 +1,7 @@ +INScore is an environment for the design of interactive augmented music scores. +It extends the music representation to arbitrary graphic objects, including +symbolic music notation. It provides time synchronization in the graphic space, +signals graphic representations, interaction processes representation, dynamic +and interactive scores. It supports Web and local network extensions. + +WWW: https://inscore.grame.fr/ diff --git a/audio/inscore/pkg-message b/audio/inscore/pkg-message new file mode 100644 index 000000000000..3b3697492e3f --- /dev/null +++ b/audio/inscore/pkg-message @@ -0,0 +1,25 @@ +[ +{ type: install + message: <