summaryrefslogtreecommitdiff
path: root/audio/amp
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>1998-11-02 15:58:15 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>1998-11-02 15:58:15 +0000
commit5320743c9d063671af0997545a0fc06fd487d1b5 (patch)
tree22f57bc91b041c3020ea8be7e08aa9b6ed3edcfa /audio/amp
parentmanpage was out of date WRT code (diff)
Unbreak this ports.
Notes
Notes: svn path=/head/; revision=14312
Diffstat (limited to 'audio/amp')
-rw-r--r--audio/amp/Makefile4
-rw-r--r--audio/amp/files/patch-aa35
2 files changed, 36 insertions, 3 deletions
diff --git a/audio/amp/Makefile b/audio/amp/Makefile
index 5968574ca462..7a857daff14f 100644
--- a/audio/amp/Makefile
+++ b/audio/amp/Makefile
@@ -3,7 +3,7 @@
# Date created: Jun 23 1997
# Whom: Vanilla I. Shu <vanilla@MinJe.com.TW>
#
-# $Id: Makefile,v 1.5 1998/04/29 22:55:19 vanilla Exp $
+# $Id: Makefile,v 1.6 1998/11/02 04:55:33 jseger Exp $
#
DISTNAME= amp-0.7.6
@@ -14,8 +14,6 @@ MASTER_SITES= ftp://ftp.clara.net/pub/unix/Audio/
MAINTAINER= vanilla@FreeBSD.ORG
-BROKEN= build
-
GNU_CONFIGURE= yes
USE_GMAKE= yes
diff --git a/audio/amp/files/patch-aa b/audio/amp/files/patch-aa
new file mode 100644
index 000000000000..5457e0207840
--- /dev/null
+++ b/audio/amp/files/patch-aa
@@ -0,0 +1,35 @@
+--- audioIO_Linux.c.orig Mon Nov 2 22:20:38 1998
++++ audioIO_Linux.c Mon Nov 2 22:22:38 1998
+@@ -26,7 +26,9 @@
+
+ /* optimal fragment size */
+
++#ifndef OS_BSD
+ int AUSIZ = 0;
++#endif
+
+ /* declare these static to effectively isolate the audio device */
+
+@@ -42,6 +44,9 @@
+ void
+ audioOpen(int frequency, int stereo, int volume)
+ {
++#ifdef OS_BSD
++ int temp;
++#endif
+ int supportedMixers, play_format=AFMT_S16_LE;
+
+ if ((audio_fd = open ("/dev/dsp", O_WRONLY, 0)) == -1)
+@@ -78,7 +83,12 @@
+ if (volume != -1)
+ audioSetVolume(volume);
+
++#ifdef OS_BSD
++ temp = AUSIZ;
++ if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &temp) == -1)
++#else
+ if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &AUSIZ) == -1)
++#endif
+ die("Unable to get fragment size\n");
+ }
+