summaryrefslogtreecommitdiff
path: root/audio/sox
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sox')
-rw-r--r--audio/sox/Makefile24
-rw-r--r--audio/sox/files/md51
-rw-r--r--audio/sox/patches/patch-aa61
-rw-r--r--audio/sox/patches/patch-ab16
-rw-r--r--audio/sox/patches/patch-ac11
-rw-r--r--audio/sox/pkg/COMMENT1
-rw-r--r--audio/sox/pkg/DESCR15
-rw-r--r--audio/sox/pkg/PLIST2
8 files changed, 131 insertions, 0 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile
new file mode 100644
index 00000000000..781d32573a9
--- /dev/null
+++ b/audio/sox/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: sox - Sound Exchange
+# Version required: 12p12
+# Date created: 17 Oct 1994
+# Whom: torstenb
+#
+# $Id: Makefile,v 1.1.1.1 1997/10/28 23:19:03 augustss Exp $
+#
+
+DISTNAME= soxgamma
+PKGNAME= sox-12.12
+CATEGORIES= audio
+MASTER_SITES= http://www.spies.com/Sox/Archive/
+
+MAINTAINER= torstenb@FreeBSD.ORG
+
+NO_WRKSUBDIR= yes
+MAKEFILE= Makefile.unx
+MAN1= sox.1
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/sox ${PREFIX}/bin
+ @${INSTALL_MAN} ${WRKSRC}/sox.man ${PREFIX}/man/man1/sox.1
+
+.include <bsd.port.mk>
diff --git a/audio/sox/files/md5 b/audio/sox/files/md5
new file mode 100644
index 00000000000..b325642f174
--- /dev/null
+++ b/audio/sox/files/md5
@@ -0,0 +1 @@
+MD5 (soxgamma.tar.gz) = ed5586a59ee9fed5e7cea90e46a6c51b
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);
+
diff --git a/audio/sox/pkg/COMMENT b/audio/sox/pkg/COMMENT
new file mode 100644
index 00000000000..85288a2b2fd
--- /dev/null
+++ b/audio/sox/pkg/COMMENT
@@ -0,0 +1 @@
+SOund eXchange - universal sound sample translator.
diff --git a/audio/sox/pkg/DESCR b/audio/sox/pkg/DESCR
new file mode 100644
index 00000000000..01c81932b85
--- /dev/null
+++ b/audio/sox/pkg/DESCR
@@ -0,0 +1,15 @@
+sox translates sound samples between different file formats,
+and performs various sound effects.
+
+This release understands "raw" files in various binary formats,
+raw textual data,
+Sound Blaster .VOC files, IRCAM SoundFile files, SUN Sparcstation
+.au files, mutant DEC .au files, Apple/SGI AIFF files,
+CD-R (music CD format), Macintosh HCOM files, Sounder files,
+NeXT .snd files, SUN ADPCM (compressed) .au files,
+and Soundtool (DOS) files.
+
+The sound effects include changing the sample rate, adding echo
+delay lines, applying low-, high, and band-pass filtering,
+reversing a sample in order to search for Satanic messages,
+and the infamous Fender Vibro effect.
diff --git a/audio/sox/pkg/PLIST b/audio/sox/pkg/PLIST
new file mode 100644
index 00000000000..8a16686b665
--- /dev/null
+++ b/audio/sox/pkg/PLIST
@@ -0,0 +1,2 @@
+bin/sox
+man/man1/sox.1.gz