summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2016-03-03 05:30:43 +0000
committerdanfe <danfe@FreeBSD.org>2016-03-03 05:30:43 +0000
commitffbba068fe29d4f6c7f6a38d10603020f734e3ad (patch)
treebeae31c5ff898fa8db5ab29672d03fba64860833
parent2a28d1243319ab098e82b014cb5bea978c87717f (diff)
downloadFreeBSD-ports-ffbba068fe29d4f6c7f6a38d10603020f734e3ad.zip
FreeBSD-ports-ffbba068fe29d4f6c7f6a38d10603020f734e3ad.tar.gz
This is a VU meter plugin for DeaDBeeF audio player.
WWW: https://github.com/cboxdoerfer/ddb_vu_meter
-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 198bc30..05031d1 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 0000000..327f436
--- /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 0000000..f62be53
--- /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 0000000..179d114
--- /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 0000000..40e1349
--- /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 0000000..05b24f3
--- /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
OpenPOWER on IntegriCloud