summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-11-03 00:44:23 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2022-11-03 01:03:47 -0700
commit3757de8ddec4a011219feaf146ac78727e7a8d88 (patch)
tree0a52e1a0c3ff6e160d556d710d2103d255658058
parentaudio/py-pyjacklib: Fix PORTNAME, add PKGNAMEPREFIX and NO_ARCH (diff)
audio/jack-capture: New port: Program for recording soundfiles with Jack
-rw-r--r--audio/Makefile1
-rw-r--r--audio/jack-capture/Makefile30
-rw-r--r--audio/jack-capture/distinfo3
-rw-r--r--audio/jack-capture/files/patch-Makefile11
-rw-r--r--audio/jack-capture/pkg-descr9
5 files changed, 54 insertions, 0 deletions
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.