git: cc3e519ce652 - main - audio/spectmorph: New port: Analyze and combine samples of musical instruments

Yuri Victorovich yuri at FreeBSD.org
Sun Jun 27 17:58:08 UTC 2021


The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cc3e519ce6526b9fd786c6163ee401fc415d269e

commit cc3e519ce6526b9fd786c6163ee401fc415d269e
Author:     Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-06-27 17:57:26 +0000
Commit:     Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-06-27 17:58:04 +0000

    audio/spectmorph: New port: Analyze and combine samples of musical instruments
---
 audio/Makefile                                   |   1 +
 audio/spectmorph/Makefile                        |  44 +++++
 audio/spectmorph/distinfo                        |   3 +
 audio/spectmorph/files/patch-configure.ac        |  12 ++
 audio/spectmorph/files/patch-lib_smutils.hh      |  11 ++
 audio/spectmorph/files/patch-tools_smenccache.cc |  10 ++
 audio/spectmorph/pkg-descr                       |   8 +
 audio/spectmorph/pkg-plist                       | 211 +++++++++++++++++++++++
 8 files changed, 300 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index 3f0583f48f72..e6e8631bac7f 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -737,6 +737,7 @@
     SUBDIR += sox
     SUBDIR += spc2it
     SUBDIR += spectacle-lv2
+    SUBDIR += spectmorph
     SUBDIR += spectrogram
     SUBDIR += speech-denoiser-lv2
     SUBDIR += speex
diff --git a/audio/spectmorph/Makefile b/audio/spectmorph/Makefile
new file mode 100644
index 000000000000..47b6f3d3d0c2
--- /dev/null
+++ b/audio/spectmorph/Makefile
@@ -0,0 +1,44 @@
+PORTNAME=	spectmorph
+DISTVERSION=	0.5.2
+CATEGORIES=	audio
+MASTER_SITES=	https://spectmorph.org/files/releases/
+
+MAINTAINER=	yuri at FreeBSD.org
+COMMENT=	Analyze and combine samples of musical instruments
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	fftw3>0:math/fftw3 \
+		lv2>0:audio/lv2
+LIB_DEPENDS=	libao.so:audio/libao \
+		libfftw3f.so:math/fftw3-float \
+		libfreetype.so:print/freetype2 \
+		libjack.so:audio/jack \
+		libsndfile.so:audio/libsndfile
+
+USES=		autoreconf desktop-file-utils gettext-runtime gl gmake gnome libtool pkgconfig python:run qt:5 shebangfix tar:bz2 xorg
+USE_QT=		core gui widgets buildtools_build
+USE_GNOME=	cairo glib20
+USE_GL=		gl
+USE_XORG=	x11
+USE_LDCONFIG=	yes
+
+SHEBANG_FILES=	tools/sminstbuilder.in
+
+GNU_CONFIGURE=	yes
+
+LDFLAGS+=	-L${LOCALBASE}/lib -lfftw3f_threads
+
+INSTALL_TARGET=	install-strip
+
+OPTIONS_DEFINE=		JACK LV2
+OPTIONS_DEFAULT=	JACK LV2
+OPTIONS_SUB=		yes
+
+JACK_CONFIGURE_WITH=	jack
+
+LV2_DESC=		Build the LV2 plugin
+LV2_CONFIGURE_WITH=	lv2
+
+.include <bsd.port.mk>
diff --git a/audio/spectmorph/distinfo b/audio/spectmorph/distinfo
new file mode 100644
index 000000000000..3d873c12251f
--- /dev/null
+++ b/audio/spectmorph/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1624784043
+SHA256 (spectmorph-0.5.2.tar.bz2) = 2ed06e46e0396723621b21a89e81a2850bc5b9590383ae1d37094c68673d387b
+SIZE (spectmorph-0.5.2.tar.bz2) = 30920194
diff --git a/audio/spectmorph/files/patch-configure.ac b/audio/spectmorph/files/patch-configure.ac
new file mode 100644
index 000000000000..88768dc98886
--- /dev/null
+++ b/audio/spectmorph/files/patch-configure.ac
@@ -0,0 +1,12 @@
+--- configure.ac.orig	2021-06-27 09:08:51 UTC
++++ configure.ac
+@@ -363,6 +363,9 @@ case "${host_os}" in
+     linux*)
+         build_linux=yes
+         ;;
++    freebsd*)
++        build_linux=yes
++        ;;
+     cygwin*|mingw*)
+         build_windows=yes
+         ;;
diff --git a/audio/spectmorph/files/patch-lib_smutils.hh b/audio/spectmorph/files/patch-lib_smutils.hh
new file mode 100644
index 000000000000..59f1342787f3
--- /dev/null
+++ b/audio/spectmorph/files/patch-lib_smutils.hh
@@ -0,0 +1,11 @@
+--- lib/smutils.hh.orig	2021-06-27 09:10:34 UTC
++++ lib/smutils.hh
+@@ -13,6 +13,8 @@
+   #define SM_OS_MACOS
+ #elif __linux__
+   #define SM_OS_LINUX
++#elif __FreeBSD__
++  #define SM_OS_LINUX
+ #else
+   #error "unsupported platform"
+ #endif
diff --git a/audio/spectmorph/files/patch-tools_smenccache.cc b/audio/spectmorph/files/patch-tools_smenccache.cc
new file mode 100644
index 000000000000..87311917bc33
--- /dev/null
+++ b/audio/spectmorph/files/patch-tools_smenccache.cc
@@ -0,0 +1,10 @@
+--- tools/smenccache.cc.orig	2021-06-27 09:40:09 UTC
++++ tools/smenccache.cc
+@@ -4,6 +4,7 @@
+ #include "smutils.hh"
+ #include <string>
+ #include <vector>
++#include <sys/wait.h> // for WEXITSTATUS
+ 
+ using std::string;
+ using std::vector;
diff --git a/audio/spectmorph/pkg-descr b/audio/spectmorph/pkg-descr
new file mode 100644
index 000000000000..3bdb34d41fd1
--- /dev/null
+++ b/audio/spectmorph/pkg-descr
@@ -0,0 +1,8 @@
+SpectMorph is a free software project which allows to analyze samples of musical
+instruments, and to combine them (morphing). It can be used to construct hybrid
+sounds, for instance a sound between a trumpet and a flute; or smooth
+transitions, for instance a sound that starts as a trumpet and then gradually
+changes to a flute. In its current version, SpectMorph ships with many
+ready-to-use instruments which can be combined using morphing.
+
+WWW: https://spectmorph.org/
diff --git a/audio/spectmorph/pkg-plist b/audio/spectmorph/pkg-plist
new file mode 100644
index 000000000000..d274d0ae05b9
--- /dev/null
+++ b/audio/spectmorph/pkg-plist
@@ -0,0 +1,211 @@
+bin/smenc
+%%JACK%%bin/smenccache
+%%JACK%%bin/sminspector
+%%JACK%%bin/sminstbuilder
+%%JACK%%bin/smjack
+%%JACK%%bin/smplay
+%%JACK%%bin/smsampleedit
+%%JACK%%bin/smsfimport
+bin/smstrip
+bin/smtool
+bin/smwavset
+include/spectmorph/smcore/smadsrenvelope.hh
+include/spectmorph/smcore/smalignedarray.hh
+include/spectmorph/smcore/smaudio.hh
+include/spectmorph/smcore/smaudiotool.hh
+include/spectmorph/smcore/smbinbuffer.hh
+include/spectmorph/smcore/smblockutils.hh
+include/spectmorph/smcore/smbuilderthread.hh
+include/spectmorph/smcore/smconfig.hh
+include/spectmorph/smcore/smdebug.hh
+include/spectmorph/smcore/smeffectdecoder.hh
+include/spectmorph/smcore/smencoder.hh
+include/spectmorph/smcore/smfft.hh
+include/spectmorph/smcore/smgenericin.hh
+include/spectmorph/smcore/smgenericout.hh
+include/spectmorph/smcore/smhexstring.hh
+include/spectmorph/smcore/smifftsynth.hh
+include/spectmorph/smcore/smindex.hh
+include/spectmorph/smcore/sminfile.hh
+include/spectmorph/smcore/sminsteditsynth.hh
+include/spectmorph/smcore/sminstenccache.hh
+include/spectmorph/smcore/sminstencoder.hh
+include/spectmorph/smcore/sminstrument.hh
+include/spectmorph/smcore/smjobqueue.hh
+include/spectmorph/smcore/smleakdebugger.hh
+include/spectmorph/smcore/smlivedecoder.hh
+include/spectmorph/smcore/smlivedecodersource.hh
+include/spectmorph/smcore/smmain.hh
+include/spectmorph/smcore/smmath.hh
+include/spectmorph/smcore/smmemout.hh
+include/spectmorph/smcore/smmicroconf.hh
+include/spectmorph/smcore/smmidisynth.hh
+include/spectmorph/smcore/smminiresampler.hh
+include/spectmorph/smcore/smmmapin.hh
+include/spectmorph/smcore/smmorphgrid.hh
+include/spectmorph/smcore/smmorphgridmodule.hh
+include/spectmorph/smcore/smmorphlfo.hh
+include/spectmorph/smcore/smmorphlfomodule.hh
+include/spectmorph/smcore/smmorphlinear.hh
+include/spectmorph/smcore/smmorphlinearmodule.hh
+include/spectmorph/smcore/smmorphoperator.hh
+include/spectmorph/smcore/smmorphoperatormodule.hh
+include/spectmorph/smcore/smmorphoutput.hh
+include/spectmorph/smcore/smmorphoutputmodule.hh
+include/spectmorph/smcore/smmorphplan.hh
+include/spectmorph/smcore/smmorphplansynth.hh
+include/spectmorph/smcore/smmorphplanvoice.hh
+include/spectmorph/smcore/smmorphsource.hh
+include/spectmorph/smcore/smmorphsourcemodule.hh
+include/spectmorph/smcore/smmorphutils.hh
+include/spectmorph/smcore/smmorphwavsource.hh
+include/spectmorph/smcore/smmorphwavsourcemodule.hh
+include/spectmorph/smcore/smnoisebandpartition.hh
+include/spectmorph/smcore/smnoisedecoder.hh
+include/spectmorph/smcore/smobject.hh
+include/spectmorph/smcore/smoutfile.hh
+include/spectmorph/smcore/smpcg32rng.hh
+include/spectmorph/smcore/smpolyphaseinter.hh
+include/spectmorph/smcore/smproject.hh
+include/spectmorph/smcore/smproperty.hh
+include/spectmorph/smcore/smrandom.hh
+include/spectmorph/smcore/smsignal.hh
+include/spectmorph/smcore/smsinedecoder.hh
+include/spectmorph/smcore/smstdioin.hh
+include/spectmorph/smcore/smstdioout.hh
+include/spectmorph/smcore/smstdiosubin.hh
+include/spectmorph/smcore/smsynthinterface.hh
+include/spectmorph/smcore/smuserinstrumentindex.hh
+include/spectmorph/smcore/smutils.hh
+include/spectmorph/smcore/smwavdata.hh
+include/spectmorph/smcore/smwavset.hh
+include/spectmorph/smcore/smwavsetbuilder.hh
+include/spectmorph/smcore/smwavsetrepo.hh
+include/spectmorph/smcore/smzip.hh
+include/spectmorph/smcore/spectmorph.hh
+include/spectmorph/smglui/pugl/cairo_gl.h
+include/spectmorph/smglui/pugl/gl.h
+include/spectmorph/smglui/pugl/glew.h
+include/spectmorph/smglui/pugl/glu.h
+include/spectmorph/smglui/pugl/pugl.h
+include/spectmorph/smglui/pugl/pugl_internal.h
+include/spectmorph/smglui/smaboutdialog.hh
+include/spectmorph/smglui/smbutton.hh
+include/spectmorph/smglui/smcheckbox.hh
+include/spectmorph/smglui/smcombobox.hh
+include/spectmorph/smglui/smcomboboxoperator.hh
+include/spectmorph/smglui/smcontrolview.hh
+include/spectmorph/smglui/smdialog.hh
+include/spectmorph/smglui/smdrawutils.hh
+include/spectmorph/smglui/smenumview.hh
+include/spectmorph/smglui/smeventloop.hh
+include/spectmorph/smglui/smfixedgrid.hh
+include/spectmorph/smglui/smframe.hh
+include/spectmorph/smglui/sminsteditnote.hh
+include/spectmorph/smglui/sminsteditparams.hh
+include/spectmorph/smglui/sminsteditwindow.hh
+include/spectmorph/smglui/smlabel.hh
+include/spectmorph/smglui/smled.hh
+include/spectmorph/smglui/smlineedit.hh
+include/spectmorph/smglui/smlistbox.hh
+include/spectmorph/smglui/smmenubar.hh
+include/spectmorph/smglui/smmessagebox.hh
+include/spectmorph/smglui/smmorphgridview.hh
+include/spectmorph/smglui/smmorphgridwidget.hh
+include/spectmorph/smglui/smmorphlfoview.hh
+include/spectmorph/smglui/smmorphlinearview.hh
+include/spectmorph/smglui/smmorphoperatorview.hh
+include/spectmorph/smglui/smmorphoutputview.hh
+include/spectmorph/smglui/smmorphplancontrol.hh
+include/spectmorph/smglui/smmorphplanview.hh
+include/spectmorph/smglui/smmorphplanwindow.hh
+include/spectmorph/smglui/smmorphsourceview.hh
+include/spectmorph/smglui/smmorphwavsourceview.hh
+include/spectmorph/smglui/smnativefiledialog.hh
+include/spectmorph/smglui/smoperatorlayout.hh
+include/spectmorph/smglui/smoperatorrolemap.hh
+include/spectmorph/smglui/smoutputadsrwidget.hh
+include/spectmorph/smglui/smparamlabel.hh
+include/spectmorph/smglui/smprogressbar.hh
+include/spectmorph/smglui/smpropertyview.hh
+include/spectmorph/smglui/smrenameopwindow.hh
+include/spectmorph/smglui/smsamplewidget.hh
+include/spectmorph/smglui/smscrollbar.hh
+include/spectmorph/smglui/smscrollview.hh
+include/spectmorph/smglui/smshortcut.hh
+include/spectmorph/smglui/smsimplelines.hh
+include/spectmorph/smglui/smslider.hh
+include/spectmorph/smglui/smtimer.hh
+include/spectmorph/smglui/smtoolbutton.hh
+include/spectmorph/smglui/smwidget.hh
+include/spectmorph/smglui/smwindow.hh
+include/spectmorph/smglui/spectmorphglui.hh
+include/spectmorph/smgui/smsampleview.hh
+include/spectmorph/smgui/smzoomcontroller.hh
+include/spectmorph/smgui/spectmorphgui.hh
+lib/libspectmorph.a
+lib/libspectmorph.so
+lib/libspectmorph.so.0
+lib/libspectmorph.so.0.0.0
+lib/libspectmorphglui.a
+lib/libspectmorphglui.so
+lib/libspectmorphglui.so.0
+lib/libspectmorphglui.so.0.0.0
+lib/libspectmorphgui.a
+lib/libspectmorphgui.so
+lib/libspectmorphgui.so.0
+lib/libspectmorphgui.so.0.0.0
+%%JACK%%lib/libspectmorphjack.a
+%%JACK%%lib/libspectmorphjack.so
+%%JACK%%lib/libspectmorphjack.so.0
+%%JACK%%lib/libspectmorphjack.so.0.0.0
+%%LV2%%lib/lv2/spectmorph.lv2/manifest.ttl
+%%LV2%%lib/lv2/spectmorph.lv2/spectmorph.ttl
+%%LV2%%lib/lv2/spectmorph.lv2/spectmorph_lv2.so
+lib/vst/spectmorph_vst.so
+libdata/pkgconfig/spectmorph.pc
+libdata/pkgconfig/spectmorphglui.pc
+libdata/pkgconfig/spectmorphgui.pc
+man/man1/smenc.1.gz
+man/man1/sminspector.1.gz
+man/man1/sminstbuilder.1.gz
+man/man1/smjack.1.gz
+man/man1/smplay.1.gz
+man/man1/smsfimport.1.gz
+man/man1/smstrip.1.gz
+man/man1/smtool.1.gz
+man/man1/smwavset.1.gz
+man/man1/spectmorphoscgui.1.gz
+share/applications/smjack.desktop
+share/pixmaps/smjack.png
+%%DATADIR%%/instruments/standard/alto-flute.smset
+%%DATADIR%%/instruments/standard/alto-saxophone.smset
+%%DATADIR%%/instruments/standard/bass-trombone.smset
+%%DATADIR%%/instruments/standard/bassoon.smset
+%%DATADIR%%/instruments/standard/cello.smset
+%%DATADIR%%/instruments/standard/claudia-ah.smset
+%%DATADIR%%/instruments/standard/claudia-ih.smset
+%%DATADIR%%/instruments/standard/claudia-oh.smset
+%%DATADIR%%/instruments/standard/french-horn.smset
+%%DATADIR%%/instruments/standard/index.smindex
+%%DATADIR%%/instruments/standard/mirko-ah.smset
+%%DATADIR%%/instruments/standard/mirko-oh.smset
+%%DATADIR%%/instruments/standard/oboe.smset
+%%DATADIR%%/instruments/standard/pan-flute.smset
+%%DATADIR%%/instruments/standard/reed-organ.smset
+%%DATADIR%%/instruments/standard/sven-ah.smset
+%%DATADIR%%/instruments/standard/sven-ih.smset
+%%DATADIR%%/instruments/standard/sven-oh.smset
+%%DATADIR%%/instruments/standard/synth-saw.smset
+%%DATADIR%%/instruments/standard/trumpet.smset
+%%DATADIR%%/instruments/standard/violin.smset
+%%DATADIR%%/templates/1-instrument.smplan
+%%DATADIR%%/templates/2-instruments-linear-gui.smplan
+%%DATADIR%%/templates/2-instruments-linear-lfo.smplan
+%%DATADIR%%/templates/2-instruments-unison.smplan
+%%DATADIR%%/templates/2x2-instruments-grid-gui.smplan
+%%DATADIR%%/templates/aurora.smplan
+%%DATADIR%%/templates/empty.smplan
+%%DATADIR%%/templates/index.smpindex
+%%DATADIR%%/templates/mars.smplan
+%%DATADIR%%/templates/saturn.smplan


More information about the dev-commits-ports-main mailing list