diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2020-04-17 00:21:01 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2020-04-17 00:21:01 +0000 |
commit | 3b1b7fa14763fadcdc578e70b679ce621a8a46f6 (patch) | |
tree | b03e38088af3063ea7c47eaa69c04796b6e97d40 /audio/sonic-visualiser/files | |
parent | audio/vamp-plugin-sdk: Update 2.7.1 -> 2.9.0 (diff) |
audio/sonic-visualiser: Update 2.5 -> 4.0.1
A lot of changes:
* Merge some options with the port because they aren't project options any more
* Enable JACK and PULSEAUDIO by default
* Install additonal executables required for the package to run
* Remove the bundled vamp-plugin-sdk directory because the port dependency is used
* Cleanly remove all internal links with vamp-plugin-sdk, not rebuilding it many times any more
* Change WWW to the https URL
PR: 236000
Submitted by: kunda <chitty_cloud@me.com> (preliminary patch version 3.2.1)
Approved by: uddka@student.kit.edu (maintainer timeout; 1 year and 50 days)
Notes
Notes:
svn path=/head/; revision=531889
Diffstat (limited to 'audio/sonic-visualiser/files')
10 files changed, 151 insertions, 38 deletions
diff --git a/audio/sonic-visualiser/files/patch-base.pro b/audio/sonic-visualiser/files/patch-base.pro new file mode 100644 index 000000000000..d5bf066498d8 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-base.pro @@ -0,0 +1,22 @@ +--- base.pro.orig 2020-04-16 18:47:44 UTC ++++ base.pro +@@ -25,7 +25,7 @@ exists(repoint.pri) { + } + + include(bq-files.pri) +-include(vamp-plugin-sdk-files.pri) ++#include(vamp-plugin-sdk-files.pri) + include(svcore/files.pri) + include(capnp-regen.pri) + +@@ -40,8 +40,8 @@ CLIENT_HEADERS=$$fromfile(piper-vamp-cpp/vamp-client/q + for (file, BQ_SOURCES) { SOURCES += $$file } + for (file, BQ_HEADERS) { HEADERS += $$file } + +-for (file, VAMP_SOURCES) { SOURCES += $$file } +-for (file, VAMP_HEADERS) { HEADERS += $$file } ++#for (file, VAMP_SOURCES) { SOURCES += $$file } ++#for (file, VAMP_HEADERS) { HEADERS += $$file } + + for (file, DATAQUAY_SOURCES) { SOURCES += $$sprintf("dataquay/%1", $$file) } + for (file, DATAQUAY_HEADERS) { HEADERS += $$sprintf("dataquay/%1", $$file) } diff --git a/audio/sonic-visualiser/files/patch-bqvec_src_VectorOpsComplex.cpp b/audio/sonic-visualiser/files/patch-bqvec_src_VectorOpsComplex.cpp new file mode 100644 index 000000000000..3e3549f4a258 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-bqvec_src_VectorOpsComplex.cpp @@ -0,0 +1,11 @@ +--- bqvec/src/VectorOpsComplex.cpp.orig 2020-04-16 18:11:58 UTC ++++ bqvec/src/VectorOpsComplex.cpp +@@ -50,6 +50,8 @@ + #ifndef alloca + #define alloca _alloca + #endif ++#elif defined(__FreeBSD__) ++#include <stdlib.h> + #else + #include <alloca.h> + #endif diff --git a/audio/sonic-visualiser/files/patch-config.pri.in b/audio/sonic-visualiser/files/patch-config.pri.in new file mode 100644 index 000000000000..839e2fc45dc1 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-config.pri.in @@ -0,0 +1,11 @@ +--- config.pri.in.orig 2020-04-16 19:38:03 UTC ++++ config.pri.in +@@ -17,6 +17,8 @@ CONFIG += @CXXSTANDARD@ + + linux*:LIBS += -L$$PWD -lbase -lasound -ldl + ++LIBS += -L$$PWD -lbase -lvamp-hostsdk ++ + macx*:DEFINES += HAVE_COREAUDIO + macx*:LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices + diff --git a/audio/sonic-visualiser/files/patch-configure.ac b/audio/sonic-visualiser/files/patch-configure.ac index eb0500818fdb..ff972828244a 100644 --- a/audio/sonic-visualiser/files/patch-configure.ac +++ b/audio/sonic-visualiser/files/patch-configure.ac @@ -1,8 +1,8 @@ ---- configure.ac.orig 2015-10-22 11:26:02 UTC +--- configure.ac.orig 2019-12-10 09:29:11 UTC +++ configure.ac -@@ -99,8 +99,8 @@ SV_MODULE_OPTIONAL([fishsound],[fishsoun - SV_MODULE_OPTIONAL([mad],[mad >= 0.15.0],[mad.h],[mad],[mad_decoder_init]) - SV_MODULE_OPTIONAL([id3tag],[id3tag >= 0.15.0],[id3tag.h],[id3tag],[id3_tag_new]) +@@ -127,8 +127,8 @@ SV_MODULE_REQUIRED([mad],[mad >= 0.15.0],[mad.h],[mad] + SV_MODULE_REQUIRED([id3tag],[id3tag >= 0.15.0],[id3tag.h],[id3tag],[id3_tag_new]) + SV_MODULE_REQUIRED([opus],[opusfile],[opus/opusfile.h],[opusfile],[op_read_float]) -# Link in -lX11 if it exists -- this is for the X error handler -SV_MODULE_OPTIONAL([X11],[x11 >= 1.0.0],[X11/X.h],[x11],[XGetErrorText]) @@ -11,3 +11,19 @@ AC_SUBST(PERL) AC_SUBST(XARGS) +@@ -154,6 +154,7 @@ AC_CONFIG_FILES([config.pri]) + + AC_OUTPUT + ++if false; then + if test -x repoint ; then + if test -d .hg -o -d .git ; then + if ! ./repoint install; then +@@ -170,6 +171,7 @@ else + if ! test -d vamp-plugin-sdk ; then + AC_MSG_WARN([No vamp-plugin-sdk directory present, so external components might not have been updated]) + fi ++fi + fi + + if ! $QMAKE -r sonic-visualiser.pro; then diff --git a/audio/sonic-visualiser/files/patch-convert.pro b/audio/sonic-visualiser/files/patch-convert.pro new file mode 100644 index 000000000000..8da6ec4bdc29 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-convert.pro @@ -0,0 +1,26 @@ +--- convert.pro.orig 2019-12-10 09:29:11 UTC ++++ convert.pro +@@ -26,17 +26,19 @@ macx*: CONFIG -= app_bundle + + linux*: LIBS += -ldl + ++LIBS += -lvamp-hostsdk ++ + TARGET = piper-convert + + OBJECTS_DIR = o + MOC_DIR = o + +-INCLUDEPATH += piper-vamp-cpp piper-vamp-cpp/ext vamp-plugin-sdk ++INCLUDEPATH += piper-vamp-cpp piper-vamp-cpp/ext + +-include(vamp-plugin-sdk-files.pri) ++#include(vamp-plugin-sdk-files.pri) + +-for (file, VAMP_SOURCES) { SOURCES += $$file } +-for (file, VAMP_HEADERS) { HEADERS += $$file } ++#for (file, VAMP_SOURCES) { SOURCES += $$file } ++#for (file, VAMP_HEADERS) { HEADERS += $$file } + + HEADERS += \ + piper-vamp-cpp/vamp-capnp/piper.capnp.h \ diff --git a/audio/sonic-visualiser/files/patch-server.pro b/audio/sonic-visualiser/files/patch-server.pro new file mode 100644 index 000000000000..e5da5e186026 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-server.pro @@ -0,0 +1,26 @@ +--- server.pro.orig 2019-12-10 09:29:11 UTC ++++ server.pro +@@ -25,17 +25,19 @@ macx*: CONFIG -= app_bundle + + linux*: LIBS += -ldl + ++LIBS += -lvamp-hostsdk ++ + TARGET = piper-vamp-simple-server + + OBJECTS_DIR = o + MOC_DIR = o + +-INCLUDEPATH += piper-vamp-cpp piper-vamp-cpp/ext vamp-plugin-sdk ++INCLUDEPATH += piper-vamp-cpp piper-vamp-cpp/ext + +-include(vamp-plugin-sdk-files.pri) ++#include(vamp-plugin-sdk-files.pri) + +-for (file, VAMP_SOURCES) { SOURCES += $$file } +-for (file, VAMP_HEADERS) { HEADERS += $$file } ++#for (file, VAMP_SOURCES) { SOURCES += $$file } ++#for (file, VAMP_HEADERS) { HEADERS += $$file } + + HEADERS += \ + piper-vamp-cpp/vamp-capnp/piper.capnp.h \ diff --git a/audio/sonic-visualiser/files/patch-sonic-visualiser.pro b/audio/sonic-visualiser/files/patch-sonic-visualiser.pro index 9533354751f0..d9e1a5234238 100644 --- a/audio/sonic-visualiser/files/patch-sonic-visualiser.pro +++ b/audio/sonic-visualiser/files/patch-sonic-visualiser.pro @@ -1,11 +1,34 @@ -Disable building the tests. They prevent building sonic-visualiser in parallel. ---- sonic-visualiser.pro.orig 2017-02-24 17:52:22 UTC +--- sonic-visualiser.pro.orig 2020-04-16 19:10:53 UTC +++ sonic-visualiser.pro -@@ -5,7 +5,6 @@ SUBDIRS = sub_dataquay svcore svgui svap - # We should build and run the tests on any platform, - # but doing it automatically doesn't work so well from - # within an IDE on Windows, so remove that from here -- SUBDIRS += svcore/base/test svcore/data/fileio/test svcore/data/model/test - } +@@ -8,11 +8,11 @@ SUBDIRS += \ + # writing they are only automatically run on non-Windows platforms + # (because of the difficulty of getting them running nicely in the + # IDE without causing great confusion if a test fails). +-SUBDIRS += \ +- sub_test_svcore_base \ +- sub_test_svcore_system \ +- sub_test_svcore_data_fileio \ +- sub_test_svcore_data_model ++#SUBDIRS += \ ++# sub_test_svcore_base \ ++# sub_test_svcore_system \ ++# sub_test_svcore_data_fileio \ ++# sub_test_svcore_data_model - sub_sv.file = sv.pro + SUBDIRS += \ + checker \ +@@ -22,10 +22,10 @@ SUBDIRS += \ + + sub_base.file = base.pro + +-sub_test_svcore_base.file = test-svcore-base.pro +-sub_test_svcore_system.file = test-svcore-system.pro +-sub_test_svcore_data_fileio.file = test-svcore-data-fileio.pro +-sub_test_svcore_data_model.file = test-svcore-data-model.pro ++#sub_test_svcore_base.file = test-svcore-base.pro ++#sub_test_svcore_system.file = test-svcore-system.pro ++#sub_test_svcore_data_fileio.file = test-svcore-data-fileio.pro ++#sub_test_svcore_data_model.file = test-svcore-data-model.pro + + sub_server.file = server.pro + sub_convert.file = convert.pro diff --git a/audio/sonic-visualiser/files/patch-sv.pro b/audio/sonic-visualiser/files/patch-sv.pro index 13270d2ab8ee..2312a3b60dc5 100644 --- a/audio/sonic-visualiser/files/patch-sv.pro +++ b/audio/sonic-visualiser/files/patch-sv.pro @@ -1,10 +1,10 @@ ---- sv.pro.orig 2015-10-22 11:26:02 UTC +--- sv.pro.orig 2019-12-10 09:29:11 UTC +++ sv.pro -@@ -41,6 +41,7 @@ QT += network xml gui widgets +@@ -15,6 +15,7 @@ QT += network xml gui widgets svg TARGET = "Sonic Visualiser" linux*:TARGET = sonic-visualiser +freebsd*:TARGET = sonic-visualiser solaris*:TARGET = sonic-visualiser - DEPENDPATH += . svcore svgui svapp + !win32 { diff --git a/audio/sonic-visualiser/files/patch-svapp_audioio_AudioJACKTarget.cpp b/audio/sonic-visualiser/files/patch-svapp_audioio_AudioJACKTarget.cpp deleted file mode 100644 index aa502caa4084..000000000000 --- a/audio/sonic-visualiser/files/patch-svapp_audioio_AudioJACKTarget.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- svapp/audioio/AudioJACKTarget.cpp.orig 2015-10-22 11:26:02 UTC -+++ svapp/audioio/AudioJACKTarget.cpp -@@ -21,8 +21,6 @@ - #include <iostream> - #include <cmath> - --#include <alloca.h> -- - //#define DEBUG_AUDIO_JACK_TARGET 1 - - #ifdef BUILD_STATIC diff --git a/audio/sonic-visualiser/files/patch-svcore_base_RealTime.cpp b/audio/sonic-visualiser/files/patch-svcore_base_RealTime.cpp deleted file mode 100644 index 186b2552e234..000000000000 --- a/audio/sonic-visualiser/files/patch-svcore_base_RealTime.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- svcore/base/RealTime.cpp.orig 2015-10-22 11:26:02 UTC -+++ svcore/base/RealTime.cpp -@@ -105,7 +105,7 @@ RealTime::fromXsdDuration(std::string xs - char *eptr = 0; - - if (isdigit(s[i]) || s[i] == '.') { -- value = strtod(&s[i], &eptr); -+ value = strtod_l(&s[i], &eptr, NULL); - i = int(eptr - s); - } - |