summaryrefslogtreecommitdiff
path: root/audio/sox/patches
diff options
context:
space:
mode:
authoraugustss <augustss>1997-10-28 23:18:20 +0000
committeraugustss <augustss>1997-10-28 23:18:20 +0000
commitf8e906be96435c1ec9f3f8dba3ab6d8698cb08be (patch)
treecc8ee8439ae9a5d7d4a09af2bda1536118792658 /audio/sox/patches
parent3492a1d2d3c36ad01439a85ba2bad6462bb0288d (diff)
downloadpkgsrc-f8e906be96435c1ec9f3f8dba3ab6d8698cb08be.tar.gz
Initial import of FreeBSD audio packages.
Diffstat (limited to 'audio/sox/patches')
-rw-r--r--audio/sox/patches/patch-aa61
-rw-r--r--audio/sox/patches/patch-ab16
-rw-r--r--audio/sox/patches/patch-ac11
3 files changed, 88 insertions, 0 deletions
diff --git a/audio/sox/patches/patch-aa b/audio/sox/patches/patch-aa
new file mode 100644
index 00000000000..090adb37503
--- /dev/null
+++ b/audio/sox/patches/patch-aa
@@ -0,0 +1,61 @@
+*** sbdsp.c.orig Thu Aug 18 06:11:01 1994
+--- sbdsp.c Mon Jan 27 02:47:53 1997
+***************
+*** 21,27 ****
+ #include <i386/isa/sblast.h>
+ #else
+ #ifdef LINUXSOUND
+! #include <linux/soundcard.h>
+ #else
+ #include <sys/sb.h>
+ #endif
+--- 21,27 ----
+ #include <i386/isa/sblast.h>
+ #else
+ #ifdef LINUXSOUND
+! #include <machine/soundcard.h>
+ #else
+ #include <sys/sb.h>
+ #endif
+***************
+*** 78,84 ****
+ ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate);
+ #else
+ #if defined(LINUXSOUND)
+! ioctl(fileno(ft->fp), SNDCTL_DSP_SPEED, ft->info.rate);
+ #else
+ ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 0);
+ ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate);
+--- 78,88 ----
+ ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate);
+ #else
+ #if defined(LINUXSOUND)
+! #if SOUND_VERSION >= 200
+! ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, &ft->info.rate);
+! #else
+! ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, ft->info.rate);
+! #endif
+ #else
+ ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 0);
+ ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate);
+***************
+*** 148,154 ****
+ #else
+ #if defined(LINUXSOUND)
+ ioctl(fileno(ft->fp), SNDCTL_DSP_SYNC, 0);
+! ioctl(fileno(ft->fp), SNDCTL_DSP_SPEED, ft->info.rate);
+ #else
+ ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 1);
+ ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate);
+--- 152,162 ----
+ #else
+ #if defined(LINUXSOUND)
+ ioctl(fileno(ft->fp), SNDCTL_DSP_SYNC, 0);
+! #if SOUND_VERSION >= 200
+! ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, &ft->info.rate);
+! #else
+! ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, ft->info.rate);
+! #endif
+ #else
+ ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 1);
+ ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate);
diff --git a/audio/sox/patches/patch-ab b/audio/sox/patches/patch-ab
new file mode 100644
index 00000000000..e00a39ff672
--- /dev/null
+++ b/audio/sox/patches/patch-ab
@@ -0,0 +1,16 @@
+--- Makefile.unx.orig Sat Oct 8 09:14:48 1994
++++ Makefile.unx Mon Jan 27 15:09:32 1997
+@@ -153,6 +153,13 @@
+ # RM = del /q
+
+
++
++# FreeBSD 1.x / 2.x / 3.x
++CFLAGS = -O -DLINUXSOUND -D_HAVE_PARAM_H
++CC = cc
++AR = ar r
++RANLIB = ranlib
++
+ all: sox
+
+ sox: sox.o $(SOUNDLIB)
diff --git a/audio/sox/patches/patch-ac b/audio/sox/patches/patch-ac
new file mode 100644
index 00000000000..3cbfe90b75f
--- /dev/null
+++ b/audio/sox/patches/patch-ac
@@ -0,0 +1,11 @@
+--- au.c.orig Wed Aug 3 22:13:29 1994
++++ au.c Thu Apr 24 13:37:59 1997
+@@ -299,6 +299,8 @@
+ wblong(ft, magic);
+
+ /* hdr_size = SUN_HDRSIZE; /* + strlen(ft->comment); */
++ if (ft->comment == NULL)
++ ft->comment = "";
+ hdr_size = SUN_HDRSIZE + strlen(ft->comment);
+ wblong(ft, hdr_size);
+