mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
This is a VU meter plugin for DeaDBeeF audio player.
WWW: https://github.com/cboxdoerfer/ddb_vu_meter
This commit is contained in:
parent
b59eecf13a
commit
1b1c2455d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=410008
@ -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
|
||||
|
43
audio/deadbeef-vu-meter-plugin/Makefile
Normal file
43
audio/deadbeef-vu-meter-plugin/Makefile
Normal file
@ -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>
|
2
audio/deadbeef-vu-meter-plugin/distinfo
Normal file
2
audio/deadbeef-vu-meter-plugin/distinfo
Normal file
@ -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
|
37
audio/deadbeef-vu-meter-plugin/files/patch-Makefile
Normal file
37
audio/deadbeef-vu-meter-plugin/files/patch-Makefile
Normal file
@ -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..."
|
26
audio/deadbeef-vu-meter-plugin/files/patch-vumeter.c
Normal file
26
audio/deadbeef-vu-meter-plugin/files/patch-vumeter.c
Normal file
@ -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);
|
3
audio/deadbeef-vu-meter-plugin/pkg-descr
Normal file
3
audio/deadbeef-vu-meter-plugin/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
This is a VU meter plugin for DeaDBeeF audio player.
|
||||
|
||||
WWW: https://github.com/cboxdoerfer/ddb_vu_meter
|
Loading…
Reference in New Issue
Block a user