diff options
author | Torsten Blum <torstenb@FreeBSD.org> | 1994-10-23 01:16:15 +0000 |
---|---|---|
committer | Torsten Blum <torstenb@FreeBSD.org> | 1994-10-23 01:16:15 +0000 |
commit | 3dd0bf6fecb29ce0cb5f494f1c5ddc6973e5ce26 (patch) | |
tree | 356421194959a1c3c3318efbc55928cda0fb140c /audio/sox | |
parent | 344c901d51e9f23aaf59d1982cdaeb43dbb4ad74 (diff) | |
download | ports-3dd0bf6fecb29ce0cb5f494f1c5ddc6973e5ce26.tar.gz ports-3dd0bf6fecb29ce0cb5f494f1c5ddc6973e5ce26.zip |
Notes
Diffstat (limited to 'audio/sox')
-rw-r--r-- | audio/sox/Makefile | 17 | ||||
-rw-r--r-- | audio/sox/files/patch-aa | 93 | ||||
-rw-r--r-- | audio/sox/files/patch-ab | 23 | ||||
-rw-r--r-- | audio/sox/pkg-comment | 1 | ||||
-rw-r--r-- | audio/sox/pkg-descr | 15 | ||||
-rw-r--r-- | audio/sox/pkg-plist | 3 |
6 files changed, 152 insertions, 0 deletions
diff --git a/audio/sox/Makefile b/audio/sox/Makefile new file mode 100644 index 000000000000..eb136ce68164 --- /dev/null +++ b/audio/sox/Makefile @@ -0,0 +1,17 @@ +# New ports collection makefile for: sox - Sound Exchange +# Version required: 10p11 +# Date created: 17 Oct 1994 +# Whom: torstenb +# +# $Id:$ +# + +DISTNAME= sox10p11 +MASTER_SITES= ftp://nic.switch.ch/software/sources/audio +EXTRACT_SUFX= .tar.Z + +pre-install: + mkdir -p ${PREFIX}/bin + mkdir -p ${PREFIX}/man + +.include <bsd.port.mk> diff --git a/audio/sox/files/patch-aa b/audio/sox/files/patch-aa new file mode 100644 index 000000000000..827485de2259 --- /dev/null +++ b/audio/sox/files/patch-aa @@ -0,0 +1,93 @@ +diff -c -r sbdsp.c.orig sbdsp.c +*** sbdsp.c.orig Mon Jul 26 21:58:00 1993 +--- sbdsp.c Mon Oct 17 16:07:59 1994 +*************** +*** 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 +*************** +*** 77,83 **** + ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, &off); + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); + #elif 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); +--- 77,87 ---- + ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, &off); + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); + #elif 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); +*************** +*** 143,149 **** + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); + #elif 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); +--- 147,157 ---- + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); + #elif 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 -c -r st.h.orig st.h +*** st.h.orig Mon Jul 26 21:58:00 1993 +--- st.h Mon Oct 17 16:19:26 1994 +*************** +*** 34,39 **** +--- 34,43 ---- + #include "amiga.h" + #endif /* AMIGA */ + ++ #ifdef bsd ++ #include <sys/param.h> ++ #endif ++ + /* + * Handler structure for each format. + */ +*************** +*** 211,218 **** +--- 215,226 ---- + #if defined(i386) || !defined(__STDC__) + /* usually be a const in stdlib.h ?? */ + /* this is turning out to be a headache */ ++ ++ #if BSD < 199306 + extern char *sys_errlist[]; + #define strerror(errno) sys_errlist[errno] ++ #endif ++ + #endif + #endif + diff --git a/audio/sox/files/patch-ab b/audio/sox/files/patch-ab new file mode 100644 index 000000000000..1aa5a032b825 --- /dev/null +++ b/audio/sox/files/patch-ab @@ -0,0 +1,23 @@ +*** Makefile.unx.orig Mon Jul 26 21:58:00 1993 +--- Makefile.unx Thu Oct 20 23:00:41 1994 +*************** +*** 122,128 **** +--- 122,139 ---- + # AR = ar r + # RANLIB = ranlib + ++ ++ # FreeBSD 1.x / 2.x ++ CFLAGS = -O -DLINUXSOUND -Dbsd ++ CC = cc ++ AR = ar r ++ RANLIB = ranlib ++ + all: sox ++ ++ install: ++ cp sox ${PREFIX}/bin/sox ++ cp sox.man ${PREFIX}/man/man1/sox.1 + + sox: sox.o $(SOUNDLIB) + $(CC) $(CFLAGS) -o sox sox.o $(SOUNDLIB) -lm diff --git a/audio/sox/pkg-comment b/audio/sox/pkg-comment new file mode 100644 index 000000000000..1c49268b17c2 --- /dev/null +++ b/audio/sox/pkg-comment @@ -0,0 +1 @@ +sox - SOund eXchange - universal sound sample translator diff --git a/audio/sox/pkg-descr b/audio/sox/pkg-descr new file mode 100644 index 000000000000..01c81932b855 --- /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 000000000000..cdcaf2d9bc4b --- /dev/null +++ b/audio/sox/pkg-plist @@ -0,0 +1,3 @@ +@cwd /usr/local +bin/sox +man/man1/sox.1 |