git: 2fd227ffa26a - main - audio/jnoisemeter: New port: Jack app for measurement of audio signals, in particular noise signals

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 24 Oct 2023 17:00:45 UTC
The branch main has been updated by yuri:

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

commit 2fd227ffa26a8a26e2d90e60c9fb0c1d3461cfa0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-10-24 14:41:29 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-10-24 17:00:43 +0000

    audio/jnoisemeter: New port: Jack app for measurement of audio signals, in particular noise signals
---
 audio/Makefile                         |  1 +
 audio/jnoisemeter/Makefile             | 30 ++++++++++++++++++++++++++++++
 audio/jnoisemeter/distinfo             |  3 +++
 audio/jnoisemeter/files/patch-Makefile | 13 +++++++++++++
 audio/jnoisemeter/pkg-descr            |  8 ++++++++
 5 files changed, 55 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index f3e01cbe9d83..06694c2c6500 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -319,6 +319,7 @@
     SUBDIR += jconvolver
     SUBDIR += jid3lib
     SUBDIR += jmatconvol
+    SUBDIR += jnoisemeter
     SUBDIR += juk
     SUBDIR += juke
     SUBDIR += julius
diff --git a/audio/jnoisemeter/Makefile b/audio/jnoisemeter/Makefile
new file mode 100644
index 000000000000..e8d8f7c76165
--- /dev/null
+++ b/audio/jnoisemeter/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	jnoisemeter
+DISTVERSION=	0.4.1
+CATEGORIES=	audio
+MASTER_SITES=	https://kokkinizita.linuxaudio.org/linuxaudio/downloads/
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Jack app for measurement of audio signals, in particular noise signals
+WWW=		https://kokkinizita.linuxaudio.org/linuxaudio/
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/../COPYING
+
+LIB_DEPENDS=	libclthreads.so:devel/clthreads \
+		libclxclient.so:devel/clxclient \
+		libjack.so:audio/jack
+
+USES=		gmake localbase:ldflags pkgconfig tar:bz2 xorg
+USE_XORG=	x11 xft
+USE_LDCONFIG=	yes
+
+WRKSRC_SUBDIR=	source
+
+ALL_TARGET=	${PORTNAME}
+
+PLIST_FILES=	bin/${PORTNAME}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/audio/jnoisemeter/distinfo b/audio/jnoisemeter/distinfo
new file mode 100644
index 000000000000..8878aa2595b5
--- /dev/null
+++ b/audio/jnoisemeter/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698164917
+SHA256 (jnoisemeter-0.4.1.tar.bz2) = e20c39b18c378c51e2ac951c0f2fd9fdf2e0137a852246c8a18e3975eb71effe
+SIZE (jnoisemeter-0.4.1.tar.bz2) = 120965
diff --git a/audio/jnoisemeter/files/patch-Makefile b/audio/jnoisemeter/files/patch-Makefile
new file mode 100644
index 000000000000..4e5d0ae720ba
--- /dev/null
+++ b/audio/jnoisemeter/files/patch-Makefile
@@ -0,0 +1,13 @@
+- remove -march=native: it is managed by CPUTYPE in /etc/make.conf
+
+--- Makefile.orig	2023-10-24 16:35:38 UTC
++++ Makefile
+@@ -25,7 +25,7 @@ VERSION = 0.4.1
+ CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\"
+ CPPFLAGS += $(shell pkgconf --cflags freetype2)
+ CXXFLAGS += -O2 -Wall
+-CXXFLAGS += -march=native
++#CXXFLAGS += -march=native
+ LDLIBS += -lclthreads -lclxclient -lpthread -ljack -lXft -lX11 -lrt
+ 
+ 
diff --git a/audio/jnoisemeter/pkg-descr b/audio/jnoisemeter/pkg-descr
new file mode 100644
index 000000000000..8e07543aa1e6
--- /dev/null
+++ b/audio/jnoisemeter/pkg-descr
@@ -0,0 +1,8 @@
+Jnoisemeter is a small Jack app for accurate measurement of
+audio signals, in particular noise signals.
+
+The simplest use is to measure the S/N ratio of your
+sound card. If you can calibrate the input levels of
+your soundcard it can also be used (with some external
+hardware) to measure noise levels of any type of audio
+equipment, including preamps and microphones.