Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jan 2016 12:39:14 +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: r407524 - in head/audio: . deadbeef-musical-spectrum-plugin deadbeef-musical-spectrum-plugin/files
Message-ID:  <201601301239.u0UCdE1H015570@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Sat Jan 30 12:39:14 2016
New Revision: 407524
URL: https://svnweb.freebsd.org/changeset/ports/407524

Log:
  Add port of a better DeaDBeeF musical spectrum plugin.  It offers variable
  FFT size (up to 32768), Blackmann-Harris and Hanning window functions, and
  various eye candy options.
  
  WWW: https://github.com/cboxdoerfer/ddb_musical_spectrum

Added:
  head/audio/deadbeef-musical-spectrum-plugin/
  head/audio/deadbeef-musical-spectrum-plugin/Makefile   (contents, props changed)
  head/audio/deadbeef-musical-spectrum-plugin/distinfo   (contents, props changed)
  head/audio/deadbeef-musical-spectrum-plugin/files/
  head/audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile   (contents, props changed)
  head/audio/deadbeef-musical-spectrum-plugin/files/patch-config__dialog.c   (contents, props changed)
  head/audio/deadbeef-musical-spectrum-plugin/pkg-descr   (contents, props changed)
Modified:
  head/audio/Makefile

Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile	Sat Jan 30 12:39:13 2016	(r407523)
+++ head/audio/Makefile	Sat Jan 30 12:39:14 2016	(r407524)
@@ -94,6 +94,7 @@
     SUBDIR += deadbeef-jack-plugin
     SUBDIR += deadbeef-mpris-plugin
     SUBDIR += deadbeef-mpris2-plugin
+    SUBDIR += deadbeef-musical-spectrum-plugin
     SUBDIR += decibel-audio-player
     SUBDIR += deforaos-mixer
     SUBDIR += dekagen

Added: head/audio/deadbeef-musical-spectrum-plugin/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/deadbeef-musical-spectrum-plugin/Makefile	Sat Jan 30 12:39:14 2016	(r407524)
@@ -0,0 +1,40 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	deadbeef-musical-spectrum-plugin
+DISTVERSION=	0.0.2015.10.13
+CATEGORIES=	audio
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Musical spectrum plugin for DeaDBeeF audio player
+
+BUILD_DEPENDS=	${LOCALBASE}/include/deadbeef/deadbeef.h:${PORTSDIR}/audio/deadbeef
+LIB_DEPENDS=	libfftw3.so:${PORTSDIR}/math/fftw3
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cboxdoerfer
+GH_PROJECT=	ddb_musical_spectrum
+GH_TAGNAME=	353870a
+
+USES=		gmake pkgconfig
+
+OPTIONS_DEFINE=	GTK2 GTK3
+OPTIONS_DEFAULT=	GTK2
+
+.for v in 2 3
+GTK${v}_USE=	GNOME=gtk${v}0
+
+GTK${v}_PLIST_FILES=	lib/deadbeef/ddb_vis_musical_spectrum_GTK${v}.so
+GTK${v}_ALL_TARGET=	gtk${v}
+
+do-install-GTK${v}-on:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/deadbeef
+	${INSTALL_LIB} ${WRKSRC}/gtk${v}/ddb_vis_musical_spectrum_GTK${v}.so \
+		${STAGEDIR}${PREFIX}/lib/deadbeef
+.endfor
+
+do-install:
+	@${DO_NADA}
+
+.include <bsd.port.mk>

Added: head/audio/deadbeef-musical-spectrum-plugin/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/deadbeef-musical-spectrum-plugin/distinfo	Sat Jan 30 12:39:14 2016	(r407524)
@@ -0,0 +1,2 @@
+SHA256 (cboxdoerfer-ddb_musical_spectrum-0.0.2015.10.13-353870a_GH0.tar.gz) = 071d4cff0a9c40fc4102d353fd026f062c021cd9c343425c6b364e7ef67a391a
+SIZE (cboxdoerfer-ddb_musical_spectrum-0.0.2015.10.13-353870a_GH0.tar.gz) = 22359

Added: head/audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile	Sat Jan 30 12:39:14 2016	(r407524)
@@ -0,0 +1,37 @@
+--- Makefile.orig	2015-10-13 10:45:43 UTC
++++ Makefile
+@@ -32,7 +32,7 @@ GTK3_LIBS?=`pkg-config --libs gtk+-3.0`
+ FFTW_LIBS?=-lfftw3
+ 
+ CC?=gcc
+-CFLAGS+=-Wall -g -O2 -fPIC -std=c99 -D_GNU_SOURCE
++CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE
+ LDFLAGS+=-shared
+ 
+ GTK2_DIR?=gtk2
+@@ -69,21 +69,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..."

Added: head/audio/deadbeef-musical-spectrum-plugin/files/patch-config__dialog.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/deadbeef-musical-spectrum-plugin/files/patch-config__dialog.c	Sat Jan 30 12:39:14 2016	(r407524)
@@ -0,0 +1,11 @@
+--- config_dialog.c.orig	2015-10-13 10:45:43 UTC
++++ config_dialog.c
+@@ -772,7 +772,7 @@ on_button_config (GtkMenuItem *menuitem,
+         break;
+     }
+     gtk_widget_destroy (spectrum_properties);
+-#pragma GCC diagnostic pop
+     return;
+ }
++#pragma GCC diagnostic pop
+ 

Added: head/audio/deadbeef-musical-spectrum-plugin/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/deadbeef-musical-spectrum-plugin/pkg-descr	Sat Jan 30 12:39:14 2016	(r407524)
@@ -0,0 +1,5 @@
+This plugin is based on DeaDBeeF stock spectrum.  It offers variable FFT
+size (up to 32768), Blackmann-Harris and Hanning window functions, and
+various eye candy options.
+
+WWW: https://github.com/cboxdoerfer/ddb_musical_spectrum



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601301239.u0UCdE1H015570>