pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/alsa-plugins-oss Add an example .asoundrc to use...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/badffe232f8a
branches:  trunk
changeset: 770240:badffe232f8a
user:      pho <pho%pkgsrc.org@localhost>
date:      Sun Nov 28 06:42:46 2021 +0000

description:
Add an example .asoundrc to use this plugin by default

diffstat:

 audio/alsa-plugins-oss/MESSAGE                |  12 ++++++++++++
 audio/alsa-plugins-oss/Makefile               |  11 +++++++++--
 audio/alsa-plugins-oss/PLIST                  |   3 ++-
 audio/alsa-plugins-oss/files/asoundrc.example |  27 +++++++++++++++++++++++++++
 4 files changed, 50 insertions(+), 3 deletions(-)

diffs (86 lines):

diff -r b7606146e00e -r badffe232f8a audio/alsa-plugins-oss/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/MESSAGE    Sun Nov 28 06:42:46 2021 +0000
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2021/11/28 06:42:46 pho Exp $
+
+ALSA does not automatically use this plugin. To use it by default, copy
+
+       ${EGDIR}/asoundrc
+
+to your
+
+       ~/.asoundrc
+
+===========================================================================
diff -r b7606146e00e -r badffe232f8a audio/alsa-plugins-oss/Makefile
--- a/audio/alsa-plugins-oss/Makefile   Sun Nov 28 05:22:15 2021 +0000
+++ b/audio/alsa-plugins-oss/Makefile   Sun Nov 28 06:42:46 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2021/11/21 16:06:30 hauke Exp $
+# $NetBSD: Makefile,v 1.16 2021/11/28 06:42:46 pho Exp $
 
 DISTNAME=      alsa-plugins-1.2.5
 PKGNAME=       ${DISTNAME:S/plugins/plugins-oss/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    audio
 MASTER_SITES=  ftp://ftp.alsa-project.org/pub/plugins/
 EXTRACT_SUFX=  .tar.bz2
@@ -34,6 +34,13 @@
 
 BUILD_DIRS=    oss
 
+EGDIR=                 ${PREFIX}/share/examples/${PKGBASE}
+MESSAGE_SUBST+=                EGDIR=${EGDIR}
+INSTALLATION_DIRS+=    ${EGDIR}
+post-install:
+       ${INSTALL_DATA} "${FILESDIR}/asoundrc.example" \
+               "${DESTDIR}${EGDIR}/asoundrc"
+
 .include "../../audio/alsa-lib/buildlink3.mk"
 .include "../../mk/oss.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r b7606146e00e -r badffe232f8a audio/alsa-plugins-oss/PLIST
--- a/audio/alsa-plugins-oss/PLIST      Sun Nov 28 05:22:15 2021 +0000
+++ b/audio/alsa-plugins-oss/PLIST      Sun Nov 28 06:42:46 2021 +0000
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2021/05/12 14:14:38 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.3 2021/11/28 06:42:46 pho Exp $
 lib/alsa-lib/libasound_module_ctl_oss.la
 lib/alsa-lib/libasound_module_pcm_oss.la
 share/alsa/alsa.conf.d/50-oss.conf
 share/alsa/conf.d/50-oss.conf
+share/examples/alsa-plugins-oss/asoundrc
diff -r b7606146e00e -r badffe232f8a audio/alsa-plugins-oss/files/asoundrc.example
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-plugins-oss/files/asoundrc.example     Sun Nov 28 06:42:46 2021 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: asoundrc.example,v 1.1 2021/11/28 06:42:46 pho Exp $
+# We can't just use "type oss" for pcm.!default because
+# alsa-plugins-oss doesn't support FLOAT_NE, which Firefox uses. See
+# https://mail-index.netbsd.org/pkgsrc-users/2017/02/10/msg024431.html
+
+pcm.oss {
+    type oss
+}
+
+pcm.!default {
+    type plug
+    slave {
+        pcm oss
+        format S16_LE
+    }
+    hint {
+         show {
+              @func refer
+              name defaults.namehint.basic
+         }
+         description "Open Sound System"
+    }
+}
+
+ctl.!default {
+    type oss
+}



Home | Main Index | Thread Index | Old Index