git: a98611c3de39 - main - audio/libspecbleach: New port: C library for audio noise reduction

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 24 Apr 2022 01:36:59 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a98611c3de39026a7f89e32119b877329e0f691b

commit a98611c3de39026a7f89e32119b877329e0f691b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-04-24 01:16:40 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-04-24 01:36:56 +0000

    audio/libspecbleach: New port: C library for audio noise reduction
---
 audio/Makefile                |  1 +
 audio/libspecbleach/Makefile  | 26 ++++++++++++++++++++++++++
 audio/libspecbleach/distinfo  |  3 +++
 audio/libspecbleach/pkg-descr |  6 ++++++
 4 files changed, 36 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index 7cbf653ef5b5..21de9bb29f25 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -419,6 +419,7 @@
     SUBDIR += libsndfile
     SUBDIR += libsonic
     SUBDIR += libsoxr
+    SUBDIR += libspecbleach
     SUBDIR += libtremor
     SUBDIR += libumidi
     SUBDIR += libvorbis
diff --git a/audio/libspecbleach/Makefile b/audio/libspecbleach/Makefile
new file mode 100644
index 000000000000..92daadf78d79
--- /dev/null
+++ b/audio/libspecbleach/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	libspecbleach
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.1
+CATEGORIES=	audio
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	C library for audio noise reduction
+
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${LOCALBASE}/include/fftw3.h:math/fftw3
+LIB_DEPENDS=	libfftw3f.so:math/fftw3-float
+
+USES=		meson pkgconfig
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	lucianodato
+
+PLIST_FILES=	include/specbleach_adenoiser.h \
+		include/specbleach_denoiser.h \
+		lib/libspecbleach.so \
+		libdata/pkgconfig/libspecbleach.pc
+
+.include <bsd.port.mk>
diff --git a/audio/libspecbleach/distinfo b/audio/libspecbleach/distinfo
new file mode 100644
index 000000000000..73beb639a0b3
--- /dev/null
+++ b/audio/libspecbleach/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1650758022
+SHA256 (lucianodato-libspecbleach-v0.1.1_GH0.tar.gz) = 0daad6c761a05887a65695a897978e125d4d2c190df2ae0dd004bb197178ca4c
+SIZE (lucianodato-libspecbleach-v0.1.1_GH0.tar.gz) = 33532
diff --git a/audio/libspecbleach/pkg-descr b/audio/libspecbleach/pkg-descr
new file mode 100644
index 000000000000..b233eb243138
--- /dev/null
+++ b/audio/libspecbleach/pkg-descr
@@ -0,0 +1,6 @@
+C library for audio noise reduction and other spectral effects.
+
+libspecbleach is based on the algorithms that were used in
+noise-repellent.
+
+WWW: https://github.com/lucianodato/libspecbleach