mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
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
This commit is contained in:
parent
21a661d165
commit
fe298d6fb4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407524
6 changed files with 96 additions and 0 deletions
|
@ -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
|
||||
|
|
40
audio/deadbeef-musical-spectrum-plugin/Makefile
Normal file
40
audio/deadbeef-musical-spectrum-plugin/Makefile
Normal file
|
@ -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>
|
2
audio/deadbeef-musical-spectrum-plugin/distinfo
Normal file
2
audio/deadbeef-musical-spectrum-plugin/distinfo
Normal file
|
@ -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
|
37
audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile
Normal file
37
audio/deadbeef-musical-spectrum-plugin/files/patch-Makefile
Normal file
|
@ -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..."
|
|
@ -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
|
||||
|
5
audio/deadbeef-musical-spectrum-plugin/pkg-descr
Normal file
5
audio/deadbeef-musical-spectrum-plugin/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue