pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/alsa-lib Substitute pkgsrc paths in alsa.conf



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ca31eba55a3f
branches:  trunk
changeset: 769836:ca31eba55a3f
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Sat Nov 20 23:38:12 2021 +0000

description:
Substitute pkgsrc paths in alsa.conf

diffstat:

 audio/alsa-lib/Makefile                         |   9 +++++++--
 audio/alsa-lib/distinfo                         |   3 ++-
 audio/alsa-lib/patches/patch-src_conf_alsa.conf |  20 ++++++++++++++++++++
 3 files changed, 29 insertions(+), 3 deletions(-)

diffs (66 lines):

diff -r fb2b4ea54cb7 -r ca31eba55a3f audio/alsa-lib/Makefile
--- a/audio/alsa-lib/Makefile   Sat Nov 20 23:29:37 2021 +0000
+++ b/audio/alsa-lib/Makefile   Sat Nov 20 23:38:12 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.25 2021/08/10 20:39:51 triaxx Exp $
+# $NetBSD: Makefile,v 1.26 2021/11/20 23:38:12 hauke Exp $
 
 DISTNAME=      alsa-lib-1.2.5.1
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    audio
 MASTER_SITES=  ftp://ftp.alsa-project.org/pub/lib/
 EXTRACT_SUFX=  .tar.bz2
@@ -18,6 +18,11 @@
 
 PKGCONFIG_OVERRIDE+=   utils/alsa.pc.in
 
+SUBST_CLASSES+=                conf-path
+SUBST_STAGE.conf-path= pre-configure
+SUBST_FILES.conf-path= src/conf/alsa.conf
+SUBST_VARS.conf-path=  VARBASE PKG_SYSCONFDIR
+
 CONFIGURE_ARGS+=       --disable-python
 
 CPPFLAGS.SunOS+=       -D__EXTENSIONS__ -DBSD_COMP -DMAP_FILE=0
diff -r fb2b4ea54cb7 -r ca31eba55a3f audio/alsa-lib/distinfo
--- a/audio/alsa-lib/distinfo   Sat Nov 20 23:29:37 2021 +0000
+++ b/audio/alsa-lib/distinfo   Sat Nov 20 23:38:12 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2021/10/26 09:58:46 nia Exp $
+$NetBSD: distinfo,v 1.34 2021/11/20 23:38:12 hauke Exp $
 
 BLAKE2s (alsa-lib-1.2.5.1.tar.bz2) = e5212f8be6654397b93d9163942c75f9ec8eba53fb5502c8d4cb32829589afac
 SHA512 (alsa-lib-1.2.5.1.tar.bz2) = 01998ffa449e925ff552c13aea47f9540903afdc533086067c78dcaba4d239c347180d3d28bb0000e6d19b7779c7249fcc77a30057930ca22d18ba55e163fa1c
@@ -21,6 +21,7 @@
 SHA1 (patch-include_sound_uapi_asound.h) = 051616bbbab3339d20818ddb40cde8502295a026
 SHA1 (patch-include_type__compat.h) = 3cb245d8ea171f987859e1b5a89b0908c2037492
 SHA1 (patch-src_conf.c) = 432e04179798c54a76f5ce072dd9c0b79221df85
+SHA1 (patch-src_conf_alsa.conf) = 1a3d2a0ce15b2f903095bc7103c7765fcd6270c0
 SHA1 (patch-src_control_control__hw.c) = 07cfe3abe586b32f6b989403cd162599da07e865
 SHA1 (patch-src_pcm_pcm__mmap.c) = 6d2325ebbc029e0b964f3a2de0516705ca8263e2
 SHA1 (patch-src_seq_seq__midi__event.c) = cf4ff866cf2cff3e78dc589b43840e16a1cf40b1
diff -r fb2b4ea54cb7 -r ca31eba55a3f audio/alsa-lib/patches/patch-src_conf_alsa.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-lib/patches/patch-src_conf_alsa.conf   Sat Nov 20 23:38:12 2021 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_conf_alsa.conf,v 1.1 2021/11/20 23:38:12 hauke Exp $
+
+Substitute pkgsrc paths
+
+--- src/conf/alsa.conf.orig    2021-06-14 10:28:44.000000000 +0000
++++ src/conf/alsa.conf
+@@ -8,10 +8,9 @@
+       {
+               func load
+               files [
+-                      "/var/lib/alsa/conf.d"
+-                      "/usr/etc/alsa/conf.d"
+-                      "/etc/alsa/conf.d"
+-                      "/etc/asound.conf|||/usr/etc/asound.conf"
++                      "@VARBASE@/lib/alsa/conf.d"
++                      "@PKG_SYSCONFDIR@/alsa/conf.d"
++                      "@PKG_SYSCONFDIR@/asound.conf"
+                       "~/.asoundrc"
+                       {
+                               @func concat



Home | Main Index | Thread Index | Old Index