From 0ba60b4ede2456eecd68f915909190ae1602f1c7 Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Sun, 25 Dec 2016 18:27:11 +0000 Subject: [PATCH] New port: audio/spectrogram Small audio visualizer for sndiod's monitor mode. WWW: https://www.dim13.org/Spectrogram PR: 214464 Submitted by: Tobias Kortkamp --- audio/Makefile | 1 + audio/spectrogram/Makefile | 35 +++++++++++++++++++++++++++++++++++ audio/spectrogram/distinfo | 3 +++ audio/spectrogram/pkg-descr | 3 +++ audio/spectrogram/pkg-message | 4 ++++ 5 files changed, 46 insertions(+) create mode 100644 audio/spectrogram/Makefile create mode 100644 audio/spectrogram/distinfo create mode 100644 audio/spectrogram/pkg-descr create mode 100644 audio/spectrogram/pkg-message diff --git a/audio/Makefile b/audio/Makefile index 677001655001..6d2eb8b4b909 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -739,6 +739,7 @@ SUBDIR += soundtracker SUBDIR += sox SUBDIR += specimen + SUBDIR += spectrogram SUBDIR += speex SUBDIR += speexdsp SUBDIR += spek diff --git a/audio/spectrogram/Makefile b/audio/spectrogram/Makefile new file mode 100644 index 000000000000..5504c073e053 --- /dev/null +++ b/audio/spectrogram/Makefile @@ -0,0 +1,35 @@ +# Created by: Tobias Kortkamp +# $FreeBSD$ + +PORTNAME= spectrogram +PORTVERSION= 20161017 +CATEGORIES= audio + +MAINTAINER= t@tobik.me +COMMENT= Audio visualization for sndio + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libfftw3.so:math/fftw3 \ + libsndio.so:audio/sndio + +USES= pkgconfig +USE_XORG= x11 + +USE_GITHUB= yes +GH_ACCOUNT= dim13 +GH_TAGNAME= 432e96b + +PLIST_FILES= bin/spectrogram + +post-patch: + ${REINPLACE_CMD} -e 's|NOMAN=|MAN=|g' \ + -e 's|-lsndio|-lm -lsndio|g' \ + ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/spectrogram \ + ${STAGEDIR}${PREFIX}/bin + +.include diff --git a/audio/spectrogram/distinfo b/audio/spectrogram/distinfo new file mode 100644 index 000000000000..46a9ad3671b7 --- /dev/null +++ b/audio/spectrogram/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1476670863 +SHA256 (dim13-spectrogram-20161017-432e96b_GH0.tar.gz) = ff046ba8576f99cd25d80a6f719b7723929d4c63242aad7a85135ffedf57ec49 +SIZE (dim13-spectrogram-20161017-432e96b_GH0.tar.gz) = 8043 diff --git a/audio/spectrogram/pkg-descr b/audio/spectrogram/pkg-descr new file mode 100644 index 000000000000..88af94fbc904 --- /dev/null +++ b/audio/spectrogram/pkg-descr @@ -0,0 +1,3 @@ +Small audio visualizer for sndiod's monitor mode. + +WWW: https://www.dim13.org/Spectrogram diff --git a/audio/spectrogram/pkg-message b/audio/spectrogram/pkg-message new file mode 100644 index 000000000000..c65138160351 --- /dev/null +++ b/audio/spectrogram/pkg-message @@ -0,0 +1,4 @@ +The default sndiod configuration on FreeBSD already has monitor mode +enabled. To start spectrogram run + + env AUDIODEVICE=snd/0.monitor spectrogram