summaryrefslogtreecommitdiff
path: root/audio/mad
diff options
context:
space:
mode:
authoris <is@pkgsrc.org>2003-06-02 12:38:45 +0000
committeris <is@pkgsrc.org>2003-06-02 12:38:45 +0000
commit53a3562505284cd3fa4f28ac029e31b6487e9029 (patch)
tree718b423974f9882533bdaa98c962d75a6694b911 /audio/mad
parent99b4e2e1ea358b581517dc2fb0b4f44ccaea9a02 (diff)
downloadpkgsrc-53a3562505284cd3fa4f28ac029e31b6487e9029.tar.gz
In audio_sun.o, obey the environment variable AUDIODEV. Allows for output
on SunRay machines.
Diffstat (limited to 'audio/mad')
-rw-r--r--audio/mad/Makefile3
-rw-r--r--audio/mad/distinfo3
-rw-r--r--audio/mad/patches/patch-ad20
3 files changed, 24 insertions, 2 deletions
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 <unistd.h>
++# include <stdlib.h>
+ # include <fcntl.h>
+ # include <sys/ioctl.h>
+ # include <sys/audioio.h>
+@@ -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;
+