aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-10-24 14:41:29 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-10-24 17:00:43 +0000
commit2fd227ffa26a8a26e2d90e60c9fb0c1d3461cfa0 (patch)
tree3b0ee9027d6ed80e9a68a9d90eccce436a6ec5b4 /audio
parentf1f174c69d380a1facc61d1449b8431ebb4f9a16 (diff)
downloadports-2fd227ffa26a8a26e2d90e60c9fb0c1d3461cfa0.tar.gz
ports-2fd227ffa26a8a26e2d90e60c9fb0c1d3461cfa0.zip
audio/jnoisemeter: New port: Jack app for measurement of audio signals, in particular noise signals
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/jnoisemeter/Makefile30
-rw-r--r--audio/jnoisemeter/distinfo3
-rw-r--r--audio/jnoisemeter/files/patch-Makefile13
-rw-r--r--audio/jnoisemeter/pkg-descr8
5 files changed, 55 insertions, 0 deletions
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.