pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio add audio/jack_umidi



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dfec543d9215
branches:  trunk
changeset: 768992:dfec543d9215
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Nov 05 22:29:57 2021 +0000

description:
add audio/jack_umidi

jack_umidi is a daemon that converts a BSD/OSS-style raw MIDI device into
a JACK MIDI device.

diffstat:

 audio/Makefile                               |   3 +-
 audio/jack_umidi/DESCR                       |   2 +
 audio/jack_umidi/Makefile                    |  32 ++++++++++++++++++++++++++
 audio/jack_umidi/PLIST                       |   3 ++
 audio/jack_umidi/distinfo                    |   6 ++++
 audio/jack_umidi/patches/patch-jack__umidi.c |  34 ++++++++++++++++++++++++++++
 6 files changed, 79 insertions(+), 1 deletions(-)

diffs (114 lines):

diff -r 07082ed968aa -r dfec543d9215 audio/Makefile
--- a/audio/Makefile    Fri Nov 05 22:28:28 2021 +0000
+++ b/audio/Makefile    Fri Nov 05 22:29:57 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.640 2021/09/11 23:44:48 nia Exp $
+# $NetBSD: Makefile,v 1.641 2021/11/05 22:29:57 nia Exp $
 #
 
 COMMENT=       Audio tools, players, and libraries
@@ -209,6 +209,7 @@
 SUBDIR+=       ifp-line
 SUBDIR+=       jack
 SUBDIR+=       jack-rack
+SUBDIR+=       jack_umidi
 SUBDIR+=       juke
 SUBDIR+=       kid3
 SUBDIR+=       ladspa
diff -r 07082ed968aa -r dfec543d9215 audio/jack_umidi/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack_umidi/DESCR    Fri Nov 05 22:29:57 2021 +0000
@@ -0,0 +1,2 @@
+jack_umidi is a daemon that converts a BSD/OSS-style raw MIDI device into
+a JACK MIDI device.
diff -r 07082ed968aa -r dfec543d9215 audio/jack_umidi/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack_umidi/Makefile Fri Nov 05 22:29:57 2021 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2021/11/05 22:29:58 nia Exp $
+
+DISTNAME=      jack_umidi-1.1.1
+CATEGORIES=    audio
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=hselasky/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/hselasky/jack_umidi
+COMMENT=       Raw/BSD/OSS MIDI to JACK MIDI daemon
+LICENSE=       2-clause-bsd
+
+MAKE_FLAGS+=   HAVE_MAN=yes
+MAKE_FLAGS+=   MANDIR=${PREFIX}/${PKGMANDIR}
+
+USE_BSD_MAKEFILE=      yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     jack_umidi.c
+SUBST_FILES.paths+=    jack_umidi.8
+SUBST_SED.paths=       -e 's,/dev/umidi0.0,/dev/rmidi0,g'
+.endif
+
+INSTALLATION_DIRS+=    sbin
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man8
+
+.include "../../audio/jack/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 07082ed968aa -r dfec543d9215 audio/jack_umidi/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack_umidi/PLIST    Fri Nov 05 22:29:57 2021 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/11/05 22:29:58 nia Exp $
+man/man8/jack_umidi.8
+sbin/jack_umidi
diff -r 07082ed968aa -r dfec543d9215 audio/jack_umidi/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack_umidi/distinfo Fri Nov 05 22:29:57 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/11/05 22:29:58 nia Exp $
+
+BLAKE2s (jack_umidi-1.1.1.tar.gz) = 2e61a8705cf1de7ae4f4202755d036043256fc0430e53df95399e050e1773a66
+SHA512 (jack_umidi-1.1.1.tar.gz) = 457c21a97e0d2b65134e35a11443c2735d84330b2cf0830da85e6b8946aaa3180b4f51887cb57389830cc46adf267d67b7fda68c4d801495fb3f5a2777a92f47
+Size (jack_umidi-1.1.1.tar.gz) = 6750 bytes
+SHA1 (patch-jack__umidi.c) = 407868e09040b3ffa301f0b62c151c2449d734e0
diff -r 07082ed968aa -r dfec543d9215 audio/jack_umidi/patches/patch-jack__umidi.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack_umidi/patches/patch-jack__umidi.c      Fri Nov 05 22:29:57 2021 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-jack__umidi.c,v 1.1 2021/11/05 22:29:58 nia Exp $
+
+Fix compilation on NetBSD.
+
+--- jack_umidi.c.orig  2021-06-02 15:38:42.000000000 +0000
++++ jack_umidi.c
+@@ -38,6 +38,7 @@
+ #include <fcntl.h>
+ #include <pthread.h>
+ #include <err.h>
++#include <errno.h>
+ #include <sysexits.h>
+ #include <sys/errno.h>
+ #ifdef HAVE_SYSCTL
+@@ -513,8 +514,8 @@ umidi_watchdog_sub(void)
+       }
+ }
+ 
+-static void *
+-umidi_watchdog(void *arg)
++static void
++umidi_watchdog(void)
+ {
+       while (1) {
+               /* check if we should close */
+@@ -751,7 +752,7 @@ retry:
+       if (jack_activate(jack_client))
+               errx(EX_UNAVAILABLE, "Cannot activate JACK client.");
+ 
+-      umidi_watchdog(NULL);
++      umidi_watchdog();
+ 
+       return (0);
+ }



Home | Main Index | Thread Index | Old Index