summaryrefslogtreecommitdiffstats
path: root/audio/amp
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>1998-11-02 15:58:15 +0000
committervanilla <vanilla@FreeBSD.org>1998-11-02 15:58:15 +0000
commita1f2b09b4c45ce86cdc89037b1f4ec2dd9d2cbf1 (patch)
tree5ce3d48f961580a5c875f0008ca3f36d2996909c /audio/amp
parenta0fad1e42c392e96cfe5e6e52724ce22dbb24050 (diff)
downloadFreeBSD-ports-a1f2b09b4c45ce86cdc89037b1f4ec2dd9d2cbf1.zip
FreeBSD-ports-a1f2b09b4c45ce86cdc89037b1f4ec2dd9d2cbf1.tar.gz
Unbreak this ports.
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 5968574..7a857da 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 0000000..5457e02
--- /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");
+ }
+
OpenPOWER on IntegriCloud