From dad57087559e74e1e1caaefe1530a35dc8feae39 Mon Sep 17 00:00:00 2001 From: is Date: Mon, 2 Jun 2003 12:38:45 +0000 Subject: In audio_sun.o, obey the environment variable AUDIODEV. Allows for output on SunRay machines. --- audio/mad/Makefile | 3 ++- audio/mad/distinfo | 3 ++- audio/mad/patches/patch-ad | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 audio/mad/patches/patch-ad (limited to 'audio') diff --git a/audio/mad/Makefile b/audio/mad/Makefile index b83d22ca627..d588b483543 100644 --- a/audio/mad/Makefile +++ b/audio/mad/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.9 2002/11/30 11:46:04 salo Exp $ +# $NetBSD: Makefile,v 1.10 2003/06/02 12:38:45 is Exp $ # DISTNAME= mad-0.14.2b +PKGREVISION= 1 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mad/} \ ftp://ftp.mars.org/pub/mpeg/ diff --git a/audio/mad/distinfo b/audio/mad/distinfo index 0144cd9ee48..2817f95424e 100644 --- a/audio/mad/distinfo +++ b/audio/mad/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.6 2002/11/30 11:46:05 salo Exp $ +$NetBSD: distinfo,v 1.7 2003/06/02 12:38:45 is Exp $ SHA1 (mad-0.14.2b.tar.gz) = 07303e2a512a9956d63fef3451ae7823e5f03b68 Size (mad-0.14.2b.tar.gz) = 721345 bytes SHA1 (patch-ac) = 8d70ebc8823a876ee72fb89e14fbc4cfcd755c45 +SHA1 (patch-ad) = dff1f070265e8fd1c7c05cb52f95353eb4c2db68 diff --git a/audio/mad/patches/patch-ad b/audio/mad/patches/patch-ad new file mode 100644 index 00000000000..352113f00ce --- /dev/null +++ b/audio/mad/patches/patch-ad @@ -0,0 +1,20 @@ +--- audio_sun.c.orig Sat Nov 3 01:49:07 2001 ++++ audio_sun.c Mon Jun 2 14:18:03 2003 +@@ -26,6 +26,7 @@ + # include "global.h" + + # include ++# include + # include + # include + # include +@@ -60,6 +61,9 @@ + static + int init(struct audio_init *init) + { ++ if (init->path == 0) ++ init->path = getenv("AUDIODEV"); ++ + if (init->path == 0) + init->path = AUDIO_DEVICE; + -- cgit v1.2.3