aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2016-03-03 13:30:43 +0800
committerdanfe <danfe@FreeBSD.org>2016-03-03 13:30:43 +0800
commit74250c18c9857f5fd65a5614d0480d9e897e4ca2 (patch)
treebeae31c5ff898fa8db5ab29672d03fba64860833 /audio
parenta15aa8c5c3ccc8be922007dfbc83a6ab25ebb0b0 (diff)
downloadfreebsd-ports-graphics-74250c18c9857f5fd65a5614d0480d9e897e4ca2.tar.gz
freebsd-ports-graphics-74250c18c9857f5fd65a5614d0480d9e897e4ca2.tar.zst
freebsd-ports-graphics-74250c18c9857f5fd65a5614d0480d9e897e4ca2.zip
This is a VU meter plugin for DeaDBeeF audio player.
WWW: https://github.com/cboxdoerfer/ddb_vu_meter
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/deadbeef-vu-meter-plugin/Makefile43
-rw-r--r--audio/deadbeef-vu-meter-plugin/distinfo2
-rw-r--r--audio/deadbeef-vu-meter-plugin/files/patch-Makefile37
-rw-r--r--audio/deadbeef-vu-meter-plugin/files/patch-vumeter.c26
-rw-r--r--audio/deadbeef-vu-meter-plugin/pkg-descr3
6 files changed, 112 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 198bc307060..05031d18207 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -96,6 +96,7 @@
SUBDIR += deadbeef-musical-spectrum-plugin
SUBDIR += deadbeef-playback-status-plugin
SUBDIR += deadbeef-quick-search-plugin
+ SUBDIR += deadbeef-vu-meter-plugin
SUBDIR += deadbeef-waveform-seekbar-plugin
SUBDIR += decibel-audio-player
SUBDIR += deforaos-mixer
diff --git a/audio/deadbeef-vu-meter-plugin/Makefile b/audio/deadbeef-vu-meter-plugin/Makefile
new file mode 100644
index 00000000000..327f436fd6a
--- /dev/null
+++ b/audio/deadbeef-vu-meter-plugin/Makefile
@@ -0,0 +1,43 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= deadbeef-vu-meter-plugin
+DISTVERSION= 0.0.2014.09.14
+CATEGORIES= audio
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= VU meter plugin for DeaDBeeF audio player
+
+BUILD_DEPENDS= ${LOCALBASE}/include/deadbeef/deadbeef.h:${PORTSDIR}/audio/deadbeef
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+USE_GITHUB= yes
+GH_ACCOUNT= cboxdoerfer
+GH_PROJECT= ddb_vu_meter
+GH_TAGNAME= 940d8d7
+
+USES= gmake pkgconfig
+
+PLIST_FILES= share/deadbeef/pixmaps/vumeter.png
+
+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_vu_meter_GTK${v}.so
+
+do-install-GTK${v}-on:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/deadbeef
+ ${INSTALL_LIB} ${WRKSRC}/gtk${v}/ddb_vis_vu_meter_GTK${v}.so \
+ ${STAGEDIR}${PREFIX}/lib/deadbeef
+.endfor
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/deadbeef/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/vumeter.png \
+ ${STAGEDIR}${PREFIX}/share/deadbeef/pixmaps
+
+.include <bsd.port.mk>
diff --git a/audio/deadbeef-vu-meter-plugin/distinfo b/audio/deadbeef-vu-meter-plugin/distinfo
new file mode 100644
index 00000000000..f62be53d8d5
--- /dev/null
+++ b/audio/deadbeef-vu-meter-plugin/distinfo
@@ -0,0 +1,2 @@
+SHA256 (cboxdoerfer-ddb_vu_meter-0.0.2014.09.14-940d8d7_GH0.tar.gz) = 143d9be66c9e6078fd6ba705fed5c35c8fb652623746bb5576b9aa8f75c723c2
+SIZE (cboxdoerfer-ddb_vu_meter-0.0.2014.09.14-940d8d7_GH0.tar.gz) = 29919
diff --git a/audio/deadbeef-vu-meter-plugin/files/patch-Makefile b/audio/deadbeef-vu-meter-plugin/files/patch-Makefile
new file mode 100644
index 00000000000..179d114ee45
--- /dev/null
+++ b/audio/deadbeef-vu-meter-plugin/files/patch-Makefile
@@ -0,0 +1,37 @@
+--- Makefile.orig 2014-09-14 12:31:32 UTC
++++ Makefile
+@@ -30,7 +30,7 @@ GTK2_LIBS?=`pkg-config --libs gtk+-2.0`
+ GTK3_LIBS?=`pkg-config --libs gtk+-3.0`
+
+ CC?=gcc
+-CFLAGS+=-Wall -g -fPIC -std=c99 -D_GNU_SOURCE
++CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE
+ LDFLAGS+=-shared
+
+ GTK2_DIR?=gtk2
+@@ -67,21 +67,21 @@ mkdir_gtk3:
+
+ $(GTK2_DIR)/$(OUT_GTK2): $(OBJ_GTK2)
+ @echo "Linking GTK+2 version"
+- @$(call link, $(OBJ_GTK2), $(GTK2_LIBS))
++ $(call link, $(OBJ_GTK2), $(GTK2_LIBS))
+ @echo "Done!"
+
+ $(GTK3_DIR)/$(OUT_GTK3): $(OBJ_GTK3)
+ @echo "Linking GTK+3 version"
+- @$(call link, $(OBJ_GTK3), $(GTK3_LIBS))
++ $(call link, $(OBJ_GTK3), $(GTK3_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-vu-meter-plugin/files/patch-vumeter.c b/audio/deadbeef-vu-meter-plugin/files/patch-vumeter.c
new file mode 100644
index 00000000000..40e13493453
--- /dev/null
+++ b/audio/deadbeef-vu-meter-plugin/files/patch-vumeter.c
@@ -0,0 +1,26 @@
+--- vumeter.c.orig 2014-09-14 12:31:32 UTC
++++ vumeter.c
+@@ -809,12 +809,8 @@ vumeter_draw_retro (w_vumeter_t *w, cair
+ {
+ if (!w->surf_png) {
+ char path[PATH_MAX];
+- const char *home_dir = getenv ("HOME");
+- if (home_dir && strcmp(home_dir, "") == 0) {
+- home_dir = NULL;
+- }
+- const int sz = snprintf (path, PATH_MAX, "%s/vumeter.png", home_dir);
+- if (!home_dir || !path) {
++ if (snprintf (path, PATH_MAX, "%s/vumeter.png",
++ deadbeef->get_pixmap_dir()) < 0) {
+ return;
+ }
+ w->surf_png = cairo_image_surface_create_from_png (path);
+@@ -858,7 +854,7 @@ vumeter_draw_bars (w_vumeter_t *w, cairo
+
+ unsigned char *data = cairo_image_surface_get_data (w->surf);
+ if (!data) {
+- return FALSE;
++ return;
+ }
+ int stride = cairo_image_surface_get_stride (w->surf);
+ memset (data, 0, height * stride);
diff --git a/audio/deadbeef-vu-meter-plugin/pkg-descr b/audio/deadbeef-vu-meter-plugin/pkg-descr
new file mode 100644
index 00000000000..05b24f36913
--- /dev/null
+++ b/audio/deadbeef-vu-meter-plugin/pkg-descr
@@ -0,0 +1,3 @@
+This is a VU meter plugin for DeaDBeeF audio player.
+
+WWW: https://github.com/cboxdoerfer/ddb_vu_meter