pkgsrc-Changes archive

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

CVS commit: pkgsrc/audio/alsa-plugins-oss



Module Name:    pkgsrc
Committed By:   pho
Date:           Sun Nov 28 06:42:46 UTC 2021

Modified Files:
        pkgsrc/audio/alsa-plugins-oss: Makefile PLIST
Added Files:
        pkgsrc/audio/alsa-plugins-oss: MESSAGE
        pkgsrc/audio/alsa-plugins-oss/files: asoundrc.example

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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/alsa-plugins-oss/MESSAGE
cvs rdiff -u -r1.15 -r1.16 pkgsrc/audio/alsa-plugins-oss/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/audio/alsa-plugins-oss/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/alsa-plugins-oss/files/asoundrc.example

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/alsa-plugins-oss/Makefile
diff -u pkgsrc/audio/alsa-plugins-oss/Makefile:1.15 pkgsrc/audio/alsa-plugins-oss/Makefile:1.16
--- pkgsrc/audio/alsa-plugins-oss/Makefile:1.15 Sun Nov 21 16:06:30 2021
+++ pkgsrc/audio/alsa-plugins-oss/Makefile      Sun Nov 28 06:42:46 2021
@@ -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 @@ LIBS+=               ${LIBOSSAUDIO}
 
 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"

Index: pkgsrc/audio/alsa-plugins-oss/PLIST
diff -u pkgsrc/audio/alsa-plugins-oss/PLIST:1.2 pkgsrc/audio/alsa-plugins-oss/PLIST:1.3
--- pkgsrc/audio/alsa-plugins-oss/PLIST:1.2     Wed May 12 14:14:38 2021
+++ pkgsrc/audio/alsa-plugins-oss/PLIST Sun Nov 28 06:42:46 2021
@@ -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

Added files:

Index: pkgsrc/audio/alsa-plugins-oss/MESSAGE
diff -u /dev/null pkgsrc/audio/alsa-plugins-oss/MESSAGE:1.1
--- /dev/null   Sun Nov 28 06:42:47 2021
+++ pkgsrc/audio/alsa-plugins-oss/MESSAGE       Sun Nov 28 06:42:46 2021
@@ -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
+
+===========================================================================

Index: pkgsrc/audio/alsa-plugins-oss/files/asoundrc.example
diff -u /dev/null pkgsrc/audio/alsa-plugins-oss/files/asoundrc.example:1.1
--- /dev/null   Sun Nov 28 06:42:47 2021
+++ pkgsrc/audio/alsa-plugins-oss/files/asoundrc.example        Sun Nov 28 06:42:46 2021
@@ -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