diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2017-03-02 08:56:14 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2017-03-02 08:56:14 +0000 |
commit | 8e3d2854314ee8dea84189736b0ec1a394ce4982 (patch) | |
tree | 4379e354f261ba2ee8217a04a29140e26ddf1b29 /audio/sonic-visualiser/files | |
parent | Upgrade net/p5-Net-Nmsg to version 0.17: (diff) |
New port: audio/sonic-visualiser
Sonic Visualiser is a program for viewing and analysing the contents
of music audio files.
It supports serveral audio file formats and displays their waveforms
and spectograms in a straightforward way. The audio data can be
annotated and played back featuring time streching. Furthermore it
can be extended by third-party vamp plugins for feature extraction.
WWW: http://www.sonicvisualiser.org/
PR: 208401
Submitted by: uddka@student.kit.edu
Approved by: mat (mentor)
Differential Revision: https://reviews.freebsd.org/D9788
Notes
Notes:
svn path=/head/; revision=435214
Diffstat (limited to 'audio/sonic-visualiser/files')
11 files changed, 249 insertions, 0 deletions
diff --git a/audio/sonic-visualiser/files/patch-acinclude.m4 b/audio/sonic-visualiser/files/patch-acinclude.m4 new file mode 100644 index 000000000000..5756b8eeed59 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-acinclude.m4 @@ -0,0 +1,42 @@ +--- acinclude.m4.orig 2015-10-22 11:26:02 UTC ++++ acinclude.m4 +@@ -30,33 +30,12 @@ fi + + AC_DEFUN([SV_MODULE_OPTIONAL], + [ +-SV_MODULE_MODULE=$1 +-SV_MODULE_VERSION_TEST="$2" +-SV_MODULE_HEADER=$3 +-SV_MODULE_LIB=$4 +-SV_MODULE_FUNC=$5 +-SV_MODULE_HAVE=HAVE_$(echo $1 | tr '[a-z]' '[A-Z]') +-SV_MODULE_FAILED=1 +-if test -n "$$1_LIBS" ; then +- AC_MSG_NOTICE([User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE]) +- CXXFLAGS="$CXXFLAGS $$1_CFLAGS" +- LIBS="$LIBS $$1_LIBS" +- SV_MODULE_FAILED="" +-fi +-if test -z "$SV_MODULE_VERSION_TEST" ; then +- SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE +-fi +-if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then +- PKG_CHECK_MODULES($1,[$SV_MODULE_VERSION_TEST],[HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $$1_CFLAGS";LIBS="$LIBS $$1_LIBS";SV_MODULE_FAILED=""],[AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])]) +-fi +-if test -n "$SV_MODULE_FAILED"; then +- AC_CHECK_HEADER([$SV_MODULE_HEADER],[HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""],[AC_MSG_NOTICE([Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE])]) +- if test -z "$SV_MODULE_FAILED"; then +- if test -n "$SV_MODULE_LIB"; then +- AC_CHECK_LIB([$SV_MODULE_LIB],[$SV_MODULE_FUNC],[LIBS="$LIBS -l$SV_MODULE_LIB"],[AC_MSG_NOTICE([Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE])]) +- fi +- fi +-fi ++AC_ARG_WITH([$4], ++ [AS_HELP_STRING([--with-$4], ++ [Enable support for $1 [default=no]])], ++ [], ++ [with_$4=no]) ++AS_IF([test "x$with_$4" = xyes], [SV_MODULE_REQUIRED($1,$2,$3,$4,$5)]) + ]) + + # Check for Qt. The only part of Qt we use directly is qmake. diff --git a/audio/sonic-visualiser/files/patch-configure.ac b/audio/sonic-visualiser/files/patch-configure.ac new file mode 100644 index 000000000000..eb0500818fdb --- /dev/null +++ b/audio/sonic-visualiser/files/patch-configure.ac @@ -0,0 +1,13 @@ +--- configure.ac.orig 2015-10-22 11:26:02 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]) + +-# 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]) ++# Link in -lX11 -- this is for the X error handler ++SV_MODULE_REQUIRED([X11],[x11 >= 1.0.0],[X11/X.h],[x11],[XGetErrorText]) + + AC_SUBST(PERL) + AC_SUBST(XARGS) diff --git a/audio/sonic-visualiser/files/patch-sonic-visualiser.pro b/audio/sonic-visualiser/files/patch-sonic-visualiser.pro new file mode 100644 index 000000000000..9533354751f0 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-sonic-visualiser.pro @@ -0,0 +1,11 @@ +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 +@@ -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 + } + + sub_sv.file = sv.pro diff --git a/audio/sonic-visualiser/files/patch-sv.pro b/audio/sonic-visualiser/files/patch-sv.pro new file mode 100644 index 000000000000..13270d2ab8ee --- /dev/null +++ b/audio/sonic-visualiser/files/patch-sv.pro @@ -0,0 +1,10 @@ +--- sv.pro.orig 2015-10-22 11:26:02 UTC ++++ sv.pro +@@ -41,6 +41,7 @@ QT += network xml gui widgets + + TARGET = "Sonic Visualiser" + linux*:TARGET = sonic-visualiser ++freebsd*:TARGET = sonic-visualiser + solaris*:TARGET = sonic-visualiser + + DEPENDPATH += . svcore svgui svapp diff --git a/audio/sonic-visualiser/files/patch-svapp_acinclude.m4 b/audio/sonic-visualiser/files/patch-svapp_acinclude.m4 new file mode 100644 index 000000000000..ba17072fdeee --- /dev/null +++ b/audio/sonic-visualiser/files/patch-svapp_acinclude.m4 @@ -0,0 +1,42 @@ +--- svapp/acinclude.m4.orig 2015-10-22 11:26:02 UTC ++++ svapp/acinclude.m4 +@@ -30,33 +30,12 @@ fi + + AC_DEFUN([SV_MODULE_OPTIONAL], + [ +-SV_MODULE_MODULE=$1 +-SV_MODULE_VERSION_TEST="$2" +-SV_MODULE_HEADER=$3 +-SV_MODULE_LIB=$4 +-SV_MODULE_FUNC=$5 +-SV_MODULE_HAVE=HAVE_$(echo $1 | tr '[a-z]' '[A-Z]') +-SV_MODULE_FAILED=1 +-if test -n "$$1_LIBS" ; then +- AC_MSG_NOTICE([User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE]) +- CXXFLAGS="$CXXFLAGS $$1_CFLAGS" +- LIBS="$LIBS $$1_LIBS" +- SV_MODULE_FAILED="" +-fi +-if test -z "$SV_MODULE_VERSION_TEST" ; then +- SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE +-fi +-if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then +- PKG_CHECK_MODULES($1,[$SV_MODULE_VERSION_TEST],[HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $$1_CFLAGS";LIBS="$LIBS $$1_LIBS";SV_MODULE_FAILED=""],[AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])]) +-fi +-if test -n "$SV_MODULE_FAILED"; then +- AC_CHECK_HEADER([$SV_MODULE_HEADER],[HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""],[AC_MSG_NOTICE([Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE])]) +- if test -z "$SV_MODULE_FAILED"; then +- if test -n "$SV_MODULE_LIB"; then +- AC_CHECK_LIB([$SV_MODULE_LIB],[$SV_MODULE_FUNC],[LIBS="$LIBS -l$SV_MODULE_LIB"],[AC_MSG_NOTICE([Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE])]) +- fi +- fi +-fi ++AC_ARG_WITH([$4], ++ [AS_HELP_STRING([--with-$4], ++ [Enable support for $1 [default=no]])], ++ [], ++ [with_$4=no]) ++AS_IF([test "x$with_$4" = xyes], [SV_MODULE_REQUIRED($1,$2,$3,$4,$5)]) + ]) + + # Check for Qt. The only part of Qt we use directly is qmake. diff --git a/audio/sonic-visualiser/files/patch-svapp_audioio_AudioJACKTarget.cpp b/audio/sonic-visualiser/files/patch-svapp_audioio_AudioJACKTarget.cpp new file mode 100644 index 000000000000..aa502caa4084 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-svapp_audioio_AudioJACKTarget.cpp @@ -0,0 +1,11 @@ +--- 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_acinclude.m4 b/audio/sonic-visualiser/files/patch-svcore_acinclude.m4 new file mode 100644 index 000000000000..c74e466bf137 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-svcore_acinclude.m4 @@ -0,0 +1,42 @@ +--- svcore/acinclude.m4.orig 2015-10-22 11:26:02 UTC ++++ svcore/acinclude.m4 +@@ -30,33 +30,12 @@ fi + + AC_DEFUN([SV_MODULE_OPTIONAL], + [ +-SV_MODULE_MODULE=$1 +-SV_MODULE_VERSION_TEST="$2" +-SV_MODULE_HEADER=$3 +-SV_MODULE_LIB=$4 +-SV_MODULE_FUNC=$5 +-SV_MODULE_HAVE=HAVE_$(echo $1 | tr '[a-z]' '[A-Z]') +-SV_MODULE_FAILED=1 +-if test -n "$$1_LIBS" ; then +- AC_MSG_NOTICE([User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE]) +- CXXFLAGS="$CXXFLAGS $$1_CFLAGS" +- LIBS="$LIBS $$1_LIBS" +- SV_MODULE_FAILED="" +-fi +-if test -z "$SV_MODULE_VERSION_TEST" ; then +- SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE +-fi +-if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then +- PKG_CHECK_MODULES($1,[$SV_MODULE_VERSION_TEST],[HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $$1_CFLAGS";LIBS="$LIBS $$1_LIBS";SV_MODULE_FAILED=""],[AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])]) +-fi +-if test -n "$SV_MODULE_FAILED"; then +- AC_CHECK_HEADER([$SV_MODULE_HEADER],[HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""],[AC_MSG_NOTICE([Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE])]) +- if test -z "$SV_MODULE_FAILED"; then +- if test -n "$SV_MODULE_LIB"; then +- AC_CHECK_LIB([$SV_MODULE_LIB],[$SV_MODULE_FUNC],[LIBS="$LIBS -l$SV_MODULE_LIB"],[AC_MSG_NOTICE([Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE])]) +- fi +- fi +-fi ++AC_ARG_WITH([$4], ++ [AS_HELP_STRING([--with-$4], ++ [Enable support for $1 [default=no]])], ++ [], ++ [with_$4=no]) ++AS_IF([test "x$with_$4" = xyes], [SV_MODULE_REQUIRED($1,$2,$3,$4,$5)]) + ]) + + # Check for Qt. The only part of Qt we use directly is qmake. diff --git a/audio/sonic-visualiser/files/patch-svcore_base_RealTime.cpp b/audio/sonic-visualiser/files/patch-svcore_base_RealTime.cpp new file mode 100644 index 000000000000..186b2552e234 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-svcore_base_RealTime.cpp @@ -0,0 +1,11 @@ +--- 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); + } + diff --git a/audio/sonic-visualiser/files/patch-svcore_config.pri.in b/audio/sonic-visualiser/files/patch-svcore_config.pri.in new file mode 100644 index 000000000000..911f4fa0f543 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-svcore_config.pri.in @@ -0,0 +1,10 @@ +--- svcore/config.pri.in.orig 2015-10-22 11:26:02 UTC ++++ svcore/config.pri.in +@@ -1,6 +1,6 @@ + CONFIG += @QMAKE_CONFIG@ + +-DEFINES += @HAVES@ HAVE_DATAQUAY ++DEFINES += @HAVES@ HAVE_DATAQUAY __RTMIDI_DUMMY_ONLY__ + + QMAKE_CC = @CC@ + QMAKE_CXX = @CXX@ diff --git a/audio/sonic-visualiser/files/patch-svcore_plugin_DSSIPluginInstance.cpp b/audio/sonic-visualiser/files/patch-svcore_plugin_DSSIPluginInstance.cpp new file mode 100644 index 000000000000..6462a50a655c --- /dev/null +++ b/audio/sonic-visualiser/files/patch-svcore_plugin_DSSIPluginInstance.cpp @@ -0,0 +1,15 @@ +--- svcore/plugin/DSSIPluginInstance.cpp.orig 2015-10-22 11:26:02 UTC ++++ svcore/plugin/DSSIPluginInstance.cpp +@@ -27,12 +27,6 @@ + + #include <cstdlib> + +-#ifndef Q_OS_WIN32 +-#include <alloca.h> +-#else +-#include <memory.h> +-#endif +- + //#define DEBUG_DSSI 1 + #define DEBUG_DSSI_PROCESS 1 + diff --git a/audio/sonic-visualiser/files/patch-svgui_acinclude.m4 b/audio/sonic-visualiser/files/patch-svgui_acinclude.m4 new file mode 100644 index 000000000000..821d474f6945 --- /dev/null +++ b/audio/sonic-visualiser/files/patch-svgui_acinclude.m4 @@ -0,0 +1,42 @@ +--- svgui/acinclude.m4.orig 2015-10-22 11:26:02 UTC ++++ svgui/acinclude.m4 +@@ -30,33 +30,12 @@ fi + + AC_DEFUN([SV_MODULE_OPTIONAL], + [ +-SV_MODULE_MODULE=$1 +-SV_MODULE_VERSION_TEST="$2" +-SV_MODULE_HEADER=$3 +-SV_MODULE_LIB=$4 +-SV_MODULE_FUNC=$5 +-SV_MODULE_HAVE=HAVE_$(echo $1 | tr '[a-z]' '[A-Z]') +-SV_MODULE_FAILED=1 +-if test -n "$$1_LIBS" ; then +- AC_MSG_NOTICE([User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE]) +- CXXFLAGS="$CXXFLAGS $$1_CFLAGS" +- LIBS="$LIBS $$1_LIBS" +- SV_MODULE_FAILED="" +-fi +-if test -z "$SV_MODULE_VERSION_TEST" ; then +- SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE +-fi +-if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then +- PKG_CHECK_MODULES($1,[$SV_MODULE_VERSION_TEST],[HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $$1_CFLAGS";LIBS="$LIBS $$1_LIBS";SV_MODULE_FAILED=""],[AC_MSG_NOTICE([Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means])]) +-fi +-if test -n "$SV_MODULE_FAILED"; then +- AC_CHECK_HEADER([$SV_MODULE_HEADER],[HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""],[AC_MSG_NOTICE([Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE])]) +- if test -z "$SV_MODULE_FAILED"; then +- if test -n "$SV_MODULE_LIB"; then +- AC_CHECK_LIB([$SV_MODULE_LIB],[$SV_MODULE_FUNC],[LIBS="$LIBS -l$SV_MODULE_LIB"],[AC_MSG_NOTICE([Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE])]) +- fi +- fi +-fi ++AC_ARG_WITH([$4], ++ [AS_HELP_STRING([--with-$4], ++ [Enable support for $1 [default=no]])], ++ [], ++ [with_$4=no]) ++AS_IF([test "x$with_$4" = xyes], [SV_MODULE_REQUIRED($1,$2,$3,$4,$5)]) + ]) + + # Check for Qt. The only part of Qt we use directly is qmake. |