Date: Thu, 3 Mar 2016 05:30:44 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r410008 - in head/audio: . deadbeef-vu-meter-plugin deadbeef-vu-meter-plugin/files Message-ID: <201603030530.u235UifD004702@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Thu Mar 3 05:30:43 2016 New Revision: 410008 URL: https://svnweb.freebsd.org/changeset/ports/410008 Log: This is a VU meter plugin for DeaDBeeF audio player. WWW: https://github.com/cboxdoerfer/ddb_vu_meter Added: head/audio/deadbeef-vu-meter-plugin/ head/audio/deadbeef-vu-meter-plugin/Makefile (contents, props changed) head/audio/deadbeef-vu-meter-plugin/distinfo (contents, props changed) head/audio/deadbeef-vu-meter-plugin/files/ head/audio/deadbeef-vu-meter-plugin/files/patch-Makefile (contents, props changed) head/audio/deadbeef-vu-meter-plugin/files/patch-vumeter.c (contents, props changed) head/audio/deadbeef-vu-meter-plugin/pkg-descr (contents, props changed) Modified: head/audio/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Thu Mar 3 05:09:37 2016 (r410007) +++ head/audio/Makefile Thu Mar 3 05:30:43 2016 (r410008) @@ -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 Added: head/audio/deadbeef-vu-meter-plugin/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-vu-meter-plugin/Makefile Thu Mar 3 05:30:43 2016 (r410008) @@ -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> Added: head/audio/deadbeef-vu-meter-plugin/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-vu-meter-plugin/distinfo Thu Mar 3 05:30:43 2016 (r410008) @@ -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 Added: head/audio/deadbeef-vu-meter-plugin/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-vu-meter-plugin/files/patch-Makefile Thu Mar 3 05:30:43 2016 (r410008) @@ -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..." Added: head/audio/deadbeef-vu-meter-plugin/files/patch-vumeter.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-vu-meter-plugin/files/patch-vumeter.c Thu Mar 3 05:30:43 2016 (r410008) @@ -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); Added: head/audio/deadbeef-vu-meter-plugin/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/deadbeef-vu-meter-plugin/pkg-descr Thu Mar 3 05:30:43 2016 (r410008) @@ -0,0 +1,3 @@ +This is a VU meter plugin for DeaDBeeF audio player. + +WWW: https://github.com/cboxdoerfer/ddb_vu_meter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603030530.u235UifD004702>