summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-09-27 08:27:46 +0000
committeragc <agc@pkgsrc.org>1999-09-27 08:27:46 +0000
commit16f19b6c4cebb89e9f8272a085ed7f10539bcc83 (patch)
tree376524c7d2aeeab6728dade8869c198d91685ca5 /audio
parent58bdd31d6824bf7fee018bae16c4563f002fb7b8 (diff)
downloadpkgsrc-16f19b6c4cebb89e9f8272a085ed7f10539bcc83.tar.gz
Make this package compile on Solaris.
Diffstat (limited to 'audio')
-rw-r--r--audio/mpg123/Makefile8
-rw-r--r--audio/mpg123/patches/patch-ac12
2 files changed, 14 insertions, 6 deletions
diff --git a/audio/mpg123/Makefile b/audio/mpg123/Makefile
index 5f519264888..ade28a6a22d 100644
--- a/audio/mpg123/Makefile
+++ b/audio/mpg123/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 1999/09/07 03:14:22 hubertf Exp $
+# $NetBSD: Makefile,v 1.17 1999/09/27 08:27:47 agc Exp $
#
DISTNAME= mpg123-0.59r
@@ -21,7 +21,11 @@ ALL_TARGET= netbsd-i386
.elif (${MACHINE_ARCH} == "m68k")
ALL_TARGET= netbsd-m68k
.else
-ALL_TARGET= netbsd
+ALL_TARGET= ${LOWER_OPSYS}
+.endif
+
+.if ${OPSYS} == "SunOS"
+MAKE_ENV+= CPPFLAGS=""
.endif
MAKE_FLAGS+= PREFIX="${PREFIX}"
diff --git a/audio/mpg123/patches/patch-ac b/audio/mpg123/patches/patch-ac
index 1de9841f242..42803422ad5 100644
--- a/audio/mpg123/patches/patch-ac
+++ b/audio/mpg123/patches/patch-ac
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.2 1999/04/08 07:34:57 tron Exp $
+$NetBSD: patch-ac,v 1.3 1999/09/27 08:27:46 agc Exp $
---- audio_sun.c.orig Mon Jan 11 07:54:46 1999
-+++ audio_sun.c Wed Apr 7 16:12:21 1999
+--- audio_sun.c.orig Thu Feb 4 13:22:34 1999
++++ audio_sun.c Mon Sep 27 09:17:00 1999
@@ -17,6 +17,8 @@
#include "mpg123.h"
@@ -11,14 +11,18 @@ $NetBSD: patch-ac,v 1.2 1999/04/08 07:34:57 tron Exp $
#ifndef SPARCLINUX
#include <sys/filio.h>
#ifdef SUNOS
-@@ -78,6 +80,13 @@
+@@ -78,6 +80,17 @@
}
#ifndef NETBSD
+ AUDIO_INITINFO(&ainfo);
+ if(ioctl(ai->fn, AUDIO_GETINFO, &ainfo) == -1)
+ return -1;
++#ifdef SOLARIS
++ outburst = MAXOUTBURST;
++#else
+ outburst = ainfo.blocksize;
++#endif
+ if(outburst > MAXOUTBURST)
+ outburst = MAXOUTBURST;
+