- update to 12.17.2

- take maintainer
- fetch from SourceForge
- add vorbis flavor
- no regress testing for now
- extensive DESCR
This commit is contained in:
naddy 2001-10-27 14:02:22 +00:00
parent dc269f5b4b
commit 04ce2486cf
10 changed files with 150 additions and 94 deletions

View File

@ -1,32 +1,46 @@
# $OpenBSD: Makefile,v 1.17 2001/04/13 03:24:21 obecian Exp $
# $OpenBSD: Makefile,v 1.18 2001/10/27 14:02:22 naddy Exp $
COMMENT= "SOund eXchange - universal sound sample translator"
DISTNAME= sox-12.17
DISTNAME= sox-12.17.2
CATEGORIES= audio
NEED_VERSION= 1.364
MASTER_SITES= http://home.sprynet.com/~cbagwell/
HOMEPAGE= http://sox.sourceforge.net/
HOMEPAGE= http://home.sprynet.com/~cbagwell/sox.html
MAINTAINER= Angelos D. Keromytis <angelos@openbsd.org>
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sox
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --enable-fast-alaw --enable-fast-ulaw \
--with-oss-dsp --without-sun_audio
--without-sun_audio
FLAVORS= gsm
FLAVORS= gsm vorbis
FLAVOR?=
.if ${FLAVOR:L} == "gsm"
LIB_DEPENDS= gsm.1::audio/gsm
.if ${FLAVOR:L:Mgsm}
LIB_DEPENDS+= gsm.1::audio/gsm
CONFIGURE_ARGS+= --with-gsminc="${LOCALBASE}/include" \
--with-gsmlib="${LOCALBASE}/lib"
.else
CONFIGURE_ARGS+= --with-gsminc=no
.endif
.if ${FLAVOR:L:Mvorbis}
LIB_DEPENDS+= vorbis.0,vorbisenc.0,vorbisfile.1::audio/libvorbis
CONFIGURE_ARGS+= --with-ogg-vorbisinc="${LOCALBASE}/include" \
--with-ogg-vorbislib="${LOCALBASE}/lib"
.else
CONFIGURE_ARGS+= --with-ogg-vorbisinc=no
.endif
NO_REGRESS= Yes
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (sox-12.17.tar.gz) = 4d3b2b60578a25b351c2385f40df742a
RMD160 (sox-12.17.tar.gz) = 5768dde4e725a773ba70066837328b72bf94a5f8
SHA1 (sox-12.17.tar.gz) = 93fadc737150092d05046a8ff683d4a68d03457c
MD5 (sox-12.17.2.tar.gz) = 9a21c9161cc2238426fc153917b0d2c8
RMD160 (sox-12.17.2.tar.gz) = 519eb9a2d71b16b7320bf011bef18c985a9ccb03
SHA1 (sox-12.17.2.tar.gz) = da350a90576aa9db1d942ca3e1184dfdbf4731e6

View File

@ -1,7 +1,8 @@
--- Makefile.in.orig Sun Sep 10 09:55:19 2000
+++ Makefile.in Sun Sep 10 09:59:15 2000
@@ -10,6 +10,8 @@
srcdir = @srcdir@
$OpenBSD: patch-Makefile.in,v 1.2 2001/10/27 14:02:22 naddy Exp $
--- Makefile.in.orig Wed Sep 5 18:06:01 2001
+++ Makefile.in Sun Oct 21 01:34:07 2001
@@ -11,6 +11,8 @@ srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
+DESTDIR =
@ -9,7 +10,16 @@
# Shell commands.
CC = @CC@
@@ -82,30 +84,30 @@
@@ -74,7 +76,7 @@ sox: libst.a sox.o
$(CC) $(LDFLAGS) -o sox sox.o $(LIBS)
soxmix.o: sox.c
- $(CC) $(CFLAGS) -DSOXMIX -c -o soxmix.o $<
+ $(CC) $(CFLAGS) -DSOXMIX -c -o soxmix.o $?
soxmix: libst.a soxmix.o
$(CC) $(LDFLAGS) -o soxmix soxmix.o $(LIBS)
@@ -95,30 +97,30 @@ PLAY_INSTALL_0 =
PLAY_INSTALL_1 = install-play
install: sox $(PLAY_INSTALL_$(PLAY_SUPPORT))
@ -37,7 +47,7 @@
+ if [ -f $(DESTDIR)$(MANDIR)/man1/rec.1 ]; then $(RM) $(DESTDIR)$(MANDIR)/man1/rec.1; fi
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(MANDIR)/man1
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(BINDIR)
+ $(INSTALL) -c -m 755 $(srcdir)/play $(DESTDIR)$(BINDIR)
+ $(INSTALL) -c -m 755 play $(DESTDIR)$(BINDIR)
+ $(INSTALL) -c -m 644 $(srcdir)/play.1 $(DESTDIR)$(MANDIR)/man1
+ cd $(DESTDIR)$(BINDIR) && ln -s play rec
+ cd $(DESTDIR)$(MANDIR)/man1 && ln -s play.1 rec.1

View File

@ -1,21 +1,16 @@
--- configure.in.orig Sun Sep 10 09:37:10 2000
+++ configure.in Sun Sep 10 09:52:43 2000
@@ -206,7 +206,7 @@
)
if test "$ac_cv_dev_oss_dsp" = yes
then
- AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h, oss_dsp=yes)
+ AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h, oss_dsp=yes)
if test "$oss_dsp" = auto
then
AC_WARN([No soundcard.h to compile with OSS /dev/dsp])
@@ -217,8 +217,9 @@
$OpenBSD: patch-configure.in,v 1.2 2001/10/27 14:02:22 naddy Exp $
--- configure.in.orig Sun Oct 21 00:49:21 2001
+++ configure.in Sun Oct 21 00:51:22 2001
@@ -194,11 +194,12 @@ fi
if test "$oss_dsp" = auto
then
- AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h, oss_dsp=yes)
+ AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h, oss_dsp=yes)
fi
if test "$oss_dsp" = yes
then
if test "$ac_cv_dev_oss_dsp" = ""
then
- AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h)
+ AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h)
fi
+ AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBS="$LIBS -lossaudio")
CFLAGS="$CFLAGS -DOSS_PLAYER"
NEED_OSS=1

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-ima_rw_c,v 1.1 2001/10/27 14:02:22 naddy Exp $
--- ima_rw.c.orig Sun Oct 21 01:17:00 2001
+++ ima_rw.c Sun Oct 21 01:17:10 2001
@@ -23,8 +23,8 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
-#include "ima_rw.h"
#include "st.h"
+#include "ima_rw.h"
/*
*

View File

@ -1,6 +1,7 @@
--- oss.c.orig Sun Sep 10 09:39:12 2000
+++ oss.c Sun Sep 10 09:39:38 2000
@@ -31,6 +31,9 @@
$OpenBSD: patch-oss.c,v 1.2 2001/10/27 14:02:22 naddy Exp $
--- oss.c.orig Wed Feb 21 21:57:01 2001
+++ oss.c Sun Oct 21 00:56:31 2001
@@ -30,6 +30,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>

View File

@ -1,15 +0,0 @@
--- play.orig Thu Aug 3 20:58:37 2000
+++ play Sun Sep 10 10:57:01 2000
@@ -180,6 +180,12 @@
device="/dev/dsp"
fi
;;
+ OpenBSD)
+ arch_defines="-t ossdsp"
+ if [ -z "$device" ]; then
+ device="/dev/sound"
+ fi
+ ;;
esac
# If name is "rec" then record else assume user is wanting to play

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-play_in,v 1.1 2001/10/27 14:02:22 naddy Exp $
--- play.in.orig Tue Sep 4 03:58:12 2001
+++ play.in Sun Oct 21 00:53:37 2001
@@ -186,6 +186,12 @@ case $arch in
device="/dev/audio"
fi
;;
+ OpenBSD)
+ arch_defines="-t ossdsp"
+ if [ -z "$device" ]; then
+ device="/dev/sound"
+ fi
+ ;;
esac
# If name is "rec" then record else assume user is wanting to play

View File

@ -1,27 +0,0 @@
--- rec.orig Sun Sep 10 10:36:20 2000
+++ rec Sun Sep 10 10:39:55 2000
@@ -121,8 +121,7 @@
esac
-else
- if [ "$arch" = "Linux" ]; then
+elif [ "$arch" = "Linux" ]; then
if [ "$device" = "" ]; then
device="/dev/dsp"
@@ -132,6 +131,14 @@
# if [ "$volume" != "" ] ; then
# mixer $volume
# fi
+
+ sox $volume -t ossdsp $device $fopts "$filename" $effects
+
+elif [ "$arch" = "OpenBSD" ]; then
+
+ if [ "$device" = "" ]; then
+ device="/dev/sound"
+ fi
sox $volume -t ossdsp $device $fopts "$filename" $effects
fi

View File

@ -1,17 +1,66 @@
sox translates sound samples between different file formats,
and performs various sound effects.
SoX (also known as Sound eXchange) translates sound samples between
different file formats, and optionally applies 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.
This release understands:
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.
o Raw files in various binary formats
o Raw textual data
o Amiga 8svx files
o Apple/SGI AIFF files
o SUN .au style files
o AVR files
o CD-R (music CD format)
o CVS and VMS files (continous variable slope)
o Macintosh HCOM files
o Amiga MAUD files
o IRCAM SoundFile files
o NIST SPHERE files
o Turtle beach SampleVision files.
o Soundtool (DOS) files
o Yamaha TX-16W sampler files.
o Sound Blaster .VOC files
o Microsoft .WAV files
o Psion (palmtop) A-law WVE files
o Pseudo-file fomats that allow direct playing/recording from audio devices
o Pseudo-nul file that reads and writes from/to nowhere
The sound effects include:
o Channel Averaging
o Band-pass filters
o Band-reject filter
o Chorus effect
o DCShift audio
o Move sound stage of CD audio to in front of you (for headphone use)
o Add an echo
o Add a sequence of echos
o Fade in and out
o Apply a flanger effect
o Apply a high-pass filter
o Apply a low-pass filter
o Pan sound between channels
o Change the pitch of a sound file
o Display a list of loops in a file
o Add masking noise to a signal
o Apply a phaser effect
o Convert from stereo to mono
o Change sampling rates using several different algorithms.
o Apply a reverb effect
o Reverse the sound samples
o Trim off silence from the beginning of end of a file.
o Change the speed of samples being played
o Convert from mono to stereo
o Display general stats on a sound sample
o Stretch/shorten the duration of a sound file.
o Swap stereo channels
o Create sounds with a simple synthesizer.
o Trim audio data from beginning and end of file.
o Add the world-famous Fender Vibro-Champ effect
o Adjust volume of samples
Available flavors that add support for additional file formats:
o gsm GSM lossy speech compression
o vorbis Ogg Vorbis compressed audio
WWW: ${HOMEPAGE}