git: 3757de8ddec4 - main - audio/jack-capture: New port: Program for recording soundfiles with Jack

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 03 Nov 2022 08:03:53 UTC
The branch main has been updated by yuri:

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

commit 3757de8ddec4a011219feaf146ac78727e7a8d88
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-03 07:44:23 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-03 08:03:47 +0000

    audio/jack-capture: New port: Program for recording soundfiles with Jack
---
 audio/Makefile                          |  1 +
 audio/jack-capture/Makefile             | 30 ++++++++++++++++++++++++++++++
 audio/jack-capture/distinfo             |  3 +++
 audio/jack-capture/files/patch-Makefile | 11 +++++++++++
 audio/jack-capture/pkg-descr            |  9 +++++++++
 5 files changed, 54 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index 51db0e741d6b..611b2053cae9 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -317,6 +317,7 @@
     SUBDIR += invada-studio-plugins-lv2
     SUBDIR += ir-lv2
     SUBDIR += jack
+    SUBDIR += jack-capture
     SUBDIR += jack-example-tools
     SUBDIR += jack-keyboard
     SUBDIR += jack-smf-utils
diff --git a/audio/jack-capture/Makefile b/audio/jack-capture/Makefile
new file mode 100644
index 000000000000..e36e617be35b
--- /dev/null
+++ b/audio/jack-capture/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	jack-capture
+DISTVERSION=	0.9.73-38
+DISTVERSIONSUFFIX=	-g10cec47
+CATEGORIES=	audio
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Program for recording soundfiles with Jack
+WWW=		https://github.com/kmatheussen/jack_capture
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	bash:shells/bash
+LIB_DEPENDS=	libjack.so:audio/jack \
+		libsndfile.so:audio/libsndfile
+
+USES=		gmake localbase:ldflags pkgconfig
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	kmatheussen
+GH_PROJECT=	jack_capture
+
+BINARY_ALIAS=	gcc=${CC} g++=${CXX}
+
+PLIST_FILES=	bin/jack_capture
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/jack_capture
+
+.include <bsd.port.mk>
diff --git a/audio/jack-capture/distinfo b/audio/jack-capture/distinfo
new file mode 100644
index 000000000000..ad83f535e34e
--- /dev/null
+++ b/audio/jack-capture/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1667434636
+SHA256 (kmatheussen-jack_capture-0.9.73-38-g10cec47_GH0.tar.gz) = 7e18b347e86b6c84cecd7a3127c51aad57699cd01f9894ba392be38f074c25f0
+SIZE (kmatheussen-jack_capture-0.9.73-38-g10cec47_GH0.tar.gz) = 64645
diff --git a/audio/jack-capture/files/patch-Makefile b/audio/jack-capture/files/patch-Makefile
new file mode 100644
index 000000000000..85d5f2605d09
--- /dev/null
+++ b/audio/jack-capture/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig	2022-11-03 00:19:12 UTC
++++ Makefile
+@@ -13,7 +13,7 @@ OPTIMIZE=-O3
+ #OPTIMIZE=-O0 -g
+ 
+ COMPILEFLAGS=$(CFLAGS) $(OPTIMIZE) -DVERSION=\"$(VERSION)\" -Wall -Wextra -Wno-unused
+-LINKFLAGS=$(LDFLAGS) -ljack -lsndfile -lm -lpthread -latomic
++LINKFLAGS=$(LDFLAGS) -ljack -lsndfile -lm -lpthread
+ 
+ OS := $(shell uname)
+ ifneq ($(OS),Darwin)
diff --git a/audio/jack-capture/pkg-descr b/audio/jack-capture/pkg-descr
new file mode 100644
index 000000000000..43794cebfcc5
--- /dev/null
+++ b/audio/jack-capture/pkg-descr
@@ -0,0 +1,9 @@
+jack_capture is a program for recording soundfiles with jack.
+
+The default operation of the program is executed by writing "jack_capture"
+in the terminal without any extra command line options:
+
+$ jack_capture
+
+...which will record what you hear in your loudspeakers
+into a stereo wav file.