diff options
author | danfe <danfe@FreeBSD.org> | 2017-03-02 20:31:17 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2017-03-02 20:31:17 +0800 |
commit | eaef90a8356b772d74fe3f436afa2c2eb3d42c0a (patch) | |
tree | 04b58c1b9544a61eb93ebc1d053ff0e679668bea /audio | |
parent | c07145ba48eee4fbc78ec3bedc1fa00b6623574d (diff) | |
download | freebsd-ports-gnome-eaef90a8356b772d74fe3f436afa2c2eb3d42c0a.tar.gz freebsd-ports-gnome-eaef90a8356b772d74fe3f436afa2c2eb3d42c0a.tar.zst freebsd-ports-gnome-eaef90a8356b772d74fe3f436afa2c2eb3d42c0a.zip |
This is a spectrogram plugin for DeaDBeeF audio player.
WWW: https://github.com/cboxdoerfer/ddb_spectrogram
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/deadbeef-spectrogram-plugin/Makefile | 44 | ||||
-rw-r--r-- | audio/deadbeef-spectrogram-plugin/distinfo | 3 | ||||
-rw-r--r-- | audio/deadbeef-spectrogram-plugin/files/patch-Makefile | 37 | ||||
-rw-r--r-- | audio/deadbeef-spectrogram-plugin/files/patch-spectrogram.c | 31 | ||||
-rw-r--r-- | audio/deadbeef-spectrogram-plugin/pkg-descr | 3 |
6 files changed, 119 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index 746e7510e471..7c3a95867619 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -98,6 +98,7 @@ SUBDIR += deadbeef-musical-spectrum-plugin SUBDIR += deadbeef-playback-status-plugin SUBDIR += deadbeef-quick-search-plugin + SUBDIR += deadbeef-spectrogram-plugin SUBDIR += deadbeef-vu-meter-plugin SUBDIR += deadbeef-waveform-seekbar-plugin SUBDIR += decibel-audio-player diff --git a/audio/deadbeef-spectrogram-plugin/Makefile b/audio/deadbeef-spectrogram-plugin/Makefile new file mode 100644 index 000000000000..3571e0e4a4a7 --- /dev/null +++ b/audio/deadbeef-spectrogram-plugin/Makefile @@ -0,0 +1,44 @@ +# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= deadbeef-spectrogram-plugin +DISTVERSION= 0.0.2015.01.10 +CATEGORIES= audio + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Spectrogram plugin for DeaDBeeF audio player + +LICENSE= GPLv2+ + +BUILD_DEPENDS= ${LOCALBASE}/include/deadbeef/deadbeef.h:audio/deadbeef +LIB_DEPENDS= libfftw3.so:math/fftw3 +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USE_GITHUB= yes +GH_ACCOUNT= cboxdoerfer +GH_PROJECT= ddb_spectrogram +GH_TAGNAME= 8d1b371 + +USES= gmake pkgconfig + +MAKE_JOBS_UNSAFE= yes + +OPTIONS_DEFINE= GTK2 GTK3 +OPTIONS_DEFAULT= GTK2 + +.for v in 2 3 +GTK${v}_USE= GNOME=gtk${v}0 +GTK${v}_ALL_TARGET= gtk${v} + +GTK${v}_PLIST_FILES= lib/deadbeef/ddb_vis_spectrogram_GTK${v}.so + +do-install-GTK${v}-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/deadbeef + ${INSTALL_LIB} ${WRKSRC}/gtk${v}/ddb_vis_spectrogram_GTK${v}.so \ + ${STAGEDIR}${PREFIX}/lib/deadbeef +.endfor + +do-install: + @${DO_NADA} + +.include <bsd.port.mk> diff --git a/audio/deadbeef-spectrogram-plugin/distinfo b/audio/deadbeef-spectrogram-plugin/distinfo new file mode 100644 index 000000000000..29fef93ffcb4 --- /dev/null +++ b/audio/deadbeef-spectrogram-plugin/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1420897675 +SHA256 (cboxdoerfer-ddb_spectrogram-0.0.2015.01.10-8d1b371_GH0.tar.gz) = 4a7a9b138c60b5b6b091cc2eac816f1d905709aed7cd4b5b5390fc07d3c15202 +SIZE (cboxdoerfer-ddb_spectrogram-0.0.2015.01.10-8d1b371_GH0.tar.gz) = 12468 diff --git a/audio/deadbeef-spectrogram-plugin/files/patch-Makefile b/audio/deadbeef-spectrogram-plugin/files/patch-Makefile new file mode 100644 index 000000000000..422f327b2a9b --- /dev/null +++ b/audio/deadbeef-spectrogram-plugin/files/patch-Makefile @@ -0,0 +1,37 @@ +--- Makefile.orig 2015-01-10 13:47:55 UTC ++++ Makefile +@@ -28,7 +28,7 @@ GTK3_LIBS?=`pkg-config --libs gtk+-3.0` + FFTW_LIBS?=-lfftw3 + + CC?=gcc +-CFLAGS+=-Wall -g -fPIC -std=c99 -D_GNU_SOURCE ++CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE + LDFLAGS+=-shared + + GTK2_DIR?=gtk2 +@@ -65,21 +65,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-spectrogram-plugin/files/patch-spectrogram.c b/audio/deadbeef-spectrogram-plugin/files/patch-spectrogram.c new file mode 100644 index 000000000000..981134334909 --- /dev/null +++ b/audio/deadbeef-spectrogram-plugin/files/patch-spectrogram.c @@ -0,0 +1,31 @@ +--- spectrogram.c.orig 2015-01-10 13:47:55 UTC ++++ spectrogram.c +@@ -238,6 +238,8 @@ gtk_widget_get_allocation (GtkWidget *wi + #define gtk_widget_set_can_default(widget, candefault) {if (candefault) GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_DEFAULT); else GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_DEFAULT);} + #endif + ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + static void + on_button_config (GtkMenuItem *menuitem, gpointer user_data) + { +@@ -266,8 +268,6 @@ on_button_config (GtkMenuItem *menuitem, + GtkWidget *applybutton1; + GtkWidget *cancelbutton1; + GtkWidget *okbutton1; +-#pragma GCC diagnostic push +-#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + spectrogram_properties = gtk_dialog_new (); + gtk_window_set_title (GTK_WINDOW (spectrogram_properties), "Spectrogram Properties"); + gtk_window_set_type_hint (GTK_WINDOW (spectrogram_properties), GDK_WINDOW_TYPE_HINT_DIALOG); +@@ -543,9 +543,9 @@ on_button_config (GtkMenuItem *menuitem, + break; + } + gtk_widget_destroy (spectrogram_properties); +-#pragma GCC diagnostic pop + return; + } ++#pragma GCC diagnostic pop + + void + w_spectrogram_destroy (ddb_gtkui_widget_t *w) { diff --git a/audio/deadbeef-spectrogram-plugin/pkg-descr b/audio/deadbeef-spectrogram-plugin/pkg-descr new file mode 100644 index 000000000000..d74dc3345e49 --- /dev/null +++ b/audio/deadbeef-spectrogram-plugin/pkg-descr @@ -0,0 +1,3 @@ +This is a spectrogram plugin for DeaDBeeF audio player. + +WWW: https://github.com/cboxdoerfer/ddb_spectrogram |