aboutsummaryrefslogtreecommitdiffstats
path: root/audio/deadbeef-musical-spectrum-plugin
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2016-01-30 20:39:14 +0800
committerdanfe <danfe@FreeBSD.org>2016-01-30 20:39:14 +0800
commit7a3c031e89fddbc39fdac1e0cacf66029c376ac7 (patch)
tree619980ddab936e7e751f45a3712d7f89116fc177 /audio/deadbeef-musical-spectrum-plugin
parent8332ff77f2dbcaa863d96cdcfb1413803e066506 (diff)
downloadfreebsd-ports-gnome-7a3c031e89fddbc39fdac1e0cacf66029c376ac7.tar.gz
freebsd-ports-gnome-7a3c031e89fddbc39fdac1e0cacf66029c376ac7.tar.zst
freebsd-ports-gnome-7a3c031e89fddbc39fdac1e0cacf66029c376ac7.zip
Add port of a better DeaDBeeF musical spectrum plugin. It offers variable
FFT size (up to 32768), Blackmann-Harris and Hanning window functions, and various eye candy options. WWW: https://github.com/cboxdoerfer/ddb_musical_spectrum
Diffstat (limited to 'audio/deadbeef-musical-spectrum-plugin')
-rw-r--r--audio/deadbeef-musical-spectrum-plugin/Makefile40
-rw-r--r--audio/deadbeef-musical-spectrum-plugin/distinfo2
-rw-r--r--audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile37
-rw-r--r--audio/deadbeef-musical-spectrum-plugin/files/patch-config__dialog.c11
-rw-r--r--audio/deadbeef-musical-spectrum-plugin/pkg-descr5
5 files changed, 95 insertions, 0 deletions
diff --git a/audio/deadbeef-musical-spectrum-plugin/Makefile b/audio/deadbeef-musical-spectrum-plugin/Makefile
new file mode 100644
index 000000000000..1e20e1953ca2
--- /dev/null
+++ b/audio/deadbeef-musical-spectrum-plugin/Makefile
@@ -0,0 +1,40 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= deadbeef-musical-spectrum-plugin
+DISTVERSION= 0.0.2015.10.13
+CATEGORIES= audio
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Musical spectrum plugin for DeaDBeeF audio player
+
+BUILD_DEPENDS= ${LOCALBASE}/include/deadbeef/deadbeef.h:${PORTSDIR}/audio/deadbeef
+LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+USE_GITHUB= yes
+GH_ACCOUNT= cboxdoerfer
+GH_PROJECT= ddb_musical_spectrum
+GH_TAGNAME= 353870a
+
+USES= gmake pkgconfig
+
+OPTIONS_DEFINE= GTK2 GTK3
+OPTIONS_DEFAULT= GTK2
+
+.for v in 2 3
+GTK${v}_USE= GNOME=gtk${v}0
+
+GTK${v}_PLIST_FILES= lib/deadbeef/ddb_vis_musical_spectrum_GTK${v}.so
+GTK${v}_ALL_TARGET= gtk${v}
+
+do-install-GTK${v}-on:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/deadbeef
+ ${INSTALL_LIB} ${WRKSRC}/gtk${v}/ddb_vis_musical_spectrum_GTK${v}.so \
+ ${STAGEDIR}${PREFIX}/lib/deadbeef
+.endfor
+
+do-install:
+ @${DO_NADA}
+
+.include <bsd.port.mk>
diff --git a/audio/deadbeef-musical-spectrum-plugin/distinfo b/audio/deadbeef-musical-spectrum-plugin/distinfo
new file mode 100644
index 000000000000..8b6df367bf58
--- /dev/null
+++ b/audio/deadbeef-musical-spectrum-plugin/distinfo
@@ -0,0 +1,2 @@
+SHA256 (cboxdoerfer-ddb_musical_spectrum-0.0.2015.10.13-353870a_GH0.tar.gz) = 071d4cff0a9c40fc4102d353fd026f062c021cd9c343425c6b364e7ef67a391a
+SIZE (cboxdoerfer-ddb_musical_spectrum-0.0.2015.10.13-353870a_GH0.tar.gz) = 22359
diff --git a/audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile b/audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile
new file mode 100644
index 000000000000..53f0576abbd3
--- /dev/null
+++ b/audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile
@@ -0,0 +1,37 @@
+--- Makefile.orig 2015-10-13 10:45:43 UTC
++++ Makefile
+@@ -32,7 +32,7 @@ GTK3_LIBS?=`pkg-config --libs gtk+-3.0`
+ FFTW_LIBS?=-lfftw3
+
+ CC?=gcc
+-CFLAGS+=-Wall -g -O2 -fPIC -std=c99 -D_GNU_SOURCE
++CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE
+ LDFLAGS+=-shared
+
+ GTK2_DIR?=gtk2
+@@ -69,21 +69,21 @@ mkdir_gtk3:
+
+ $(GTK2_DIR)/$(OUT_GTK2): $(OBJ_GTK2)
+ @echo "Linking GTK+2 version"
+- @$(call link, $(OBJ_GTK2), $(GTK2_LIBS), $(FFTW_LIBS))
++ $(call link, $(OBJ_GTK2), $(GTK2_LIBS), $(FFTW_LIBS))
+ @echo "Done!"
+
+ $(GTK3_DIR)/$(OUT_GTK3): $(OBJ_GTK3)
+ @echo "Linking GTK+3 version"
+- @$(call link, $(OBJ_GTK3), $(GTK3_LIBS), $(FFTW_LIBS))
++ $(call link, $(OBJ_GTK3), $(GTK3_LIBS), $(FFTW_LIBS))
+ @echo "Done!"
+
+ $(GTK2_DIR)/%.o: %.c
+ @echo "Compiling $(subst $(GTK2_DIR)/,,$@)"
+- @$(call compile, $(GTK2_CFLAGS))
++ $(call compile, $(GTK2_CFLAGS))
+
+ $(GTK3_DIR)/%.o: %.c
+ @echo "Compiling $(subst $(GTK3_DIR)/,,$@)"
+- @$(call compile, $(GTK3_CFLAGS))
++ $(call compile, $(GTK3_CFLAGS))
+
+ clean:
+ @echo "Cleaning files from previous build..."
diff --git a/audio/deadbeef-musical-spectrum-plugin/files/patch-config__dialog.c b/audio/deadbeef-musical-spectrum-plugin/files/patch-config__dialog.c
new file mode 100644
index 000000000000..9d7253dcdca9
--- /dev/null
+++ b/audio/deadbeef-musical-spectrum-plugin/files/patch-config__dialog.c
@@ -0,0 +1,11 @@
+--- config_dialog.c.orig 2015-10-13 10:45:43 UTC
++++ config_dialog.c
+@@ -772,7 +772,7 @@ on_button_config (GtkMenuItem *menuitem,
+ break;
+ }
+ gtk_widget_destroy (spectrum_properties);
+-#pragma GCC diagnostic pop
+ return;
+ }
++#pragma GCC diagnostic pop
+
diff --git a/audio/deadbeef-musical-spectrum-plugin/pkg-descr b/audio/deadbeef-musical-spectrum-plugin/pkg-descr
new file mode 100644
index 000000000000..7e61a66f95d5
--- /dev/null
+++ b/audio/deadbeef-musical-spectrum-plugin/pkg-descr
@@ -0,0 +1,5 @@
+This plugin is based on DeaDBeeF stock spectrum. It offers variable FFT
+size (up to 32768), Blackmann-Harris and Hanning window functions, and
+various eye candy options.
+
+WWW: https://github.com/cboxdoerfer/ddb_musical_spectrum