From ac82fb07dd26105ad80bfdb76ccbee1810278b8f Mon Sep 17 00:00:00 2001 From: jasoni Date: Sun, 28 Apr 2002 09:11:37 +0000 Subject: [PATCH] Import normalize. normalize is a tool for adjusting the volume of audio files to a standard level. This is useful for things like creating mixed CD's and mp3 collections, where different recording levels on different albums can cause the volume to vary greatly from song to song. --- audio/normalize/Makefile | 36 ++++++++++++++++ audio/normalize/distinfo | 3 ++ audio/normalize/patches/patch-src_Makefile_in | 42 +++++++++++++++++++ .../patches/patch-src_normalize-mp3_in | 18 ++++++++ .../normalize/patches/patch-test_test16bit_sh | 33 +++++++++++++++ .../normalize/patches/patch-test_test24bit_sh | 33 +++++++++++++++ .../normalize/patches/patch-test_test8bit_sh | 33 +++++++++++++++ audio/normalize/pkg/DESCR | 7 ++++ audio/normalize/pkg/MESSAGE | 10 +++++ audio/normalize/pkg/PLIST | 8 ++++ 10 files changed, 223 insertions(+) create mode 100644 audio/normalize/Makefile create mode 100644 audio/normalize/distinfo create mode 100644 audio/normalize/patches/patch-src_Makefile_in create mode 100644 audio/normalize/patches/patch-src_normalize-mp3_in create mode 100644 audio/normalize/patches/patch-test_test16bit_sh create mode 100644 audio/normalize/patches/patch-test_test24bit_sh create mode 100644 audio/normalize/patches/patch-test_test8bit_sh create mode 100644 audio/normalize/pkg/DESCR create mode 100644 audio/normalize/pkg/MESSAGE create mode 100644 audio/normalize/pkg/PLIST diff --git a/audio/normalize/Makefile b/audio/normalize/Makefile new file mode 100644 index 00000000000..de78086ae67 --- /dev/null +++ b/audio/normalize/Makefile @@ -0,0 +1,36 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2002/04/28 09:11:37 jasoni Exp $ + +COMMENT= "audio file volume normalizer" + +DISTNAME= normalize-0.7.3 +CATEGORIES= audio +NEED_VERSION= 1.522 +MASTER_SITES= http://www.cs.columbia.edu/~cvaill/normalize/ + +HOMEPAGE= http://www.cs.columbia.edu/~cvaill/normalize/ + +MAINTAINER= Jason Ish + +# GPL license +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MODULES= gettext + +CONFIGURE_STYLE=gnu + +# Do not build xmms plugin for now. +CONFIGURE_ARGS= --disable-xmms \ + --with-mad \ + --with-audiofile +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +LIB_DEPENDS+= mad::audio/mad \ + audiofile::devel/libaudiofile + +.include + + diff --git a/audio/normalize/distinfo b/audio/normalize/distinfo new file mode 100644 index 00000000000..5cb9f0de580 --- /dev/null +++ b/audio/normalize/distinfo @@ -0,0 +1,3 @@ +MD5 (normalize-0.7.3.tar.gz) = b29d7d59cb786a0c496a054bdc2d6400 +RMD160 (normalize-0.7.3.tar.gz) = 935f8ccf4f99bc50ab1696c57993cc959f97d5e8 +SHA1 (normalize-0.7.3.tar.gz) = b43c381fc34fa17ad4c3410e566e3914bcbef41b diff --git a/audio/normalize/patches/patch-src_Makefile_in b/audio/normalize/patches/patch-src_Makefile_in new file mode 100644 index 00000000000..437535a6182 --- /dev/null +++ b/audio/normalize/patches/patch-src_Makefile_in @@ -0,0 +1,42 @@ +$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2002/04/28 09:11:37 jasoni Exp $ +--- src/Makefile.in.orig Tue Mar 12 00:41:33 2002 ++++ src/Makefile.in Wed Apr 24 11:26:44 2002 +@@ -673,31 +673,31 @@ install-exec-hook: + # test program targets follow + + mktestwav: mktestwav.o riff.o version.o getopt.o getopt1.o +- $(LINK) $^ -lm ++ $(LINK) mktestwav.o riff.o version.o getopt.o getopt1.o -lm + + mktestwav.o: mktestwav.c riff.h + + riffwalk: riffwalk.o + + riffwalk.o: riff.c +- $(COMPILE) -DBUILD_RIFFWALK -c -o $@ $^ ++ $(COMPILE) -DBUILD_RIFFWALK -c -o $@ riff.c + + wavread: wavread.o + + wavread.o: riff.c +- $(COMPILE) -DBUILD_WAVREAD -c -o $@ $^ ++ $(COMPILE) -DBUILD_WAVREAD -c -o $@ riff.c + + test-wiener-af: test-wiener-af.o wav.o riff.o version.o +- $(LINK) $^ -lm ++ $(LINK) test-wiener-af.o wav.o riff.o version.o -lm + + test-wiener-af.o: testaf.c +- $(COMPILE) -DFORCE_NOAUDIOFILE -c -o $@ $^ ++ $(COMPILE) -DFORCE_NOAUDIOFILE -c -o $@ testaf.c + + test-real-af: test-real-af.o +- $(LINK) $^ -L/usr/local/lib -lm -laudiofile ++ $(LINK) test-real-af.o -L/usr/local/lib -lm -laudiofile + + test-real-af.o: testaf.c +- $(COMPILE) -DFORCE_AUDIOFILE -c -o $@ $^ ++ $(COMPILE) -DFORCE_AUDIOFILE -c -o $@ testaf.c + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/audio/normalize/patches/patch-src_normalize-mp3_in b/audio/normalize/patches/patch-src_normalize-mp3_in new file mode 100644 index 00000000000..9823cc4bc2b --- /dev/null +++ b/audio/normalize/patches/patch-src_normalize-mp3_in @@ -0,0 +1,18 @@ +$OpenBSD: patch-src_normalize-mp3_in,v 1.1.1.1 2002/04/28 09:11:37 jasoni Exp $ +--- src/normalize-mp3.in.orig Sat Feb 23 12:49:57 2002 ++++ src/normalize-mp3.in Wed Apr 24 11:59:06 2002 +@@ -27,10 +27,10 @@ + # %b becomes bitrate of re-encoded file, as specified by the -b option + # Example: $OGGENCODE="oggenc -Q -b %b -o %m %w" + +-$MP3DECODE = "@MP3DECODE@"; +-$MP3ENCODE = "@MP3ENCODE@"; +-$OGGDECODE = "@OGGDECODE@"; +-$OGGENCODE = "@OGGENCODE@"; ++$MP3DECODE = "mpg321 -q -w %w %m"; ++$MP3ENCODE = "lame --quiet -h -b %b %w %m"; ++$OGGDECODE = "ogg123 -q -d wav -f %w %m"; ++$OGGENCODE = "oggenc -Q -b %b -o %m %w"; + + $VORBISCOMMENT = "@VORBISCOMMENT@"; + diff --git a/audio/normalize/patches/patch-test_test16bit_sh b/audio/normalize/patches/patch-test_test16bit_sh new file mode 100644 index 00000000000..12799e3e57a --- /dev/null +++ b/audio/normalize/patches/patch-test_test16bit_sh @@ -0,0 +1,33 @@ +$OpenBSD: patch-test_test16bit_sh,v 1.1.1.1 2002/04/28 09:11:37 jasoni Exp $ +--- test/test16bit.sh.orig Sun Apr 21 22:07:55 2002 ++++ test/test16bit.sh Sun Apr 21 22:09:00 2002 +@@ -19,12 +19,12 @@ echo "Testing 16-bit wavs..." >&3 + ../src/mktestwav -a 0.5 -b 2 -c 2 stereo.wav + + # Check that the files written by mktestwav are correct +-CHKSUM=`tail -c +44 mono.wav | md5sum` ++CHKSUM=`tail -c +44 mono.wav | md5` + case "$CHKSUM" in + $MONO_BEFORE*) ;; + *) echo "FAIL: created mono.wav has bad checksum!" >&3; exit 1 ;; + esac +-CHKSUM=`tail -c +44 stereo.wav | md5sum` ++CHKSUM=`tail -c +44 stereo.wav | md5` + case "$CHKSUM" in + $STEREO_BEFORE*) ;; + *) echo "FAIL: created stereo.wav has bad checksum!" >&3; exit 1 ;; +@@ -53,12 +53,12 @@ echo "mono.wav and stereo.wav measured s + # Check that normalize correctly normalizes the volume of the files + ../src/normalize -q mono.wav + ../src/normalize -q stereo.wav +-CHKSUM=`tail -c +44 mono.wav | md5sum` ++CHKSUM=`tail -c +44 mono.wav | md5` + case "$CHKSUM" in + $MONO_AFTER*) ;; + *) echo "FAIL: adjusted mono.wav has bad checksum!" >&3; exit 1 ;; + esac +-CHKSUM=`tail -c +44 stereo.wav | md5sum` ++CHKSUM=`tail -c +44 stereo.wav | md5` + case "$CHKSUM" in + $STEREO_AFTER*) ;; + *) echo "FAIL: adjusted stereo.wav has bad checksum!" >&3; exit 1 ;; diff --git a/audio/normalize/patches/patch-test_test24bit_sh b/audio/normalize/patches/patch-test_test24bit_sh new file mode 100644 index 00000000000..75e2ad38592 --- /dev/null +++ b/audio/normalize/patches/patch-test_test24bit_sh @@ -0,0 +1,33 @@ +$OpenBSD: patch-test_test24bit_sh,v 1.1.1.1 2002/04/28 09:11:37 jasoni Exp $ +--- test/test24bit.sh.orig Sun Apr 21 22:08:02 2002 ++++ test/test24bit.sh Sun Apr 21 22:09:30 2002 +@@ -19,12 +19,12 @@ echo "Testing 24-bit wavs..." >&3 + ../src/mktestwav -a 0.5 -b 3 -c 2 stereo.wav + + # Check that the files written by mktestwav are correct +-CHKSUM=`tail -c +44 mono.wav | md5sum` ++CHKSUM=`tail -c +44 mono.wav | md5` + case "$CHKSUM" in + $MONO_BEFORE*) ;; + *) echo "FAIL: created mono.wav has bad checksum!" >&3; exit 1 ;; + esac +-CHKSUM=`tail -c +44 stereo.wav | md5sum` ++CHKSUM=`tail -c +44 stereo.wav | md5` + case "$CHKSUM" in + $STEREO_BEFORE*) ;; + *) echo "FAIL: created stereo.wav has bad checksum!" >&3; exit 1 ;; +@@ -53,12 +53,12 @@ echo "mono.wav and stereo.wav measured s + # Check that normalize correctly normalizes the volume of the files + ../src/normalize -q mono.wav + ../src/normalize -q stereo.wav +-CHKSUM=`tail -c +44 mono.wav | md5sum` ++CHKSUM=`tail -c +44 mono.wav | md5` + case "$CHKSUM" in + $MONO_AFTER*) ;; + *) echo "FAIL: adjusted mono.wav has bad checksum!" >&3; exit 1 ;; + esac +-CHKSUM=`tail -c +44 stereo.wav | md5sum` ++CHKSUM=`tail -c +44 stereo.wav | md5` + case "$CHKSUM" in + $STEREO_AFTER*) ;; + *) echo "FAIL: adjusted stereo.wav has bad checksum!" >&3; exit 1 ;; diff --git a/audio/normalize/patches/patch-test_test8bit_sh b/audio/normalize/patches/patch-test_test8bit_sh new file mode 100644 index 00000000000..0ad016e2bf8 --- /dev/null +++ b/audio/normalize/patches/patch-test_test8bit_sh @@ -0,0 +1,33 @@ +$OpenBSD: patch-test_test8bit_sh,v 1.1.1.1 2002/04/28 09:11:37 jasoni Exp $ +--- test/test8bit.sh.orig Sun Apr 21 22:08:08 2002 ++++ test/test8bit.sh Sun Apr 21 22:09:40 2002 +@@ -19,12 +19,12 @@ echo "Testing 8-bit wavs..." >&3 + ../src/mktestwav -a 0.5 -b 1 -c 2 stereo.wav + + # Check that the files written by mktestwav are correct +-CHKSUM=`tail -c +44 mono.wav | md5sum` ++CHKSUM=`tail -c +44 mono.wav | md5` + case "$CHKSUM" in + $MONO_BEFORE*) ;; + *) echo "FAIL: created mono.wav has bad checksum!" >&3; exit 1 ;; + esac +-CHKSUM=`tail -c +44 stereo.wav | md5sum` ++CHKSUM=`tail -c +44 stereo.wav | md5` + case "$CHKSUM" in + $STEREO_BEFORE*) ;; + *) echo "FAIL: created stereo.wav has bad checksum!" >&3; exit 1 ;; +@@ -53,12 +53,12 @@ echo "mono.wav and stereo.wav measured s + # Check that normalize correctly normalizes the volume of the files + ../src/normalize -q mono.wav + ../src/normalize -q stereo.wav +-CHKSUM=`tail -c +44 mono.wav | md5sum` ++CHKSUM=`tail -c +44 mono.wav | md5` + case "$CHKSUM" in + $MONO_AFTER*) ;; + *) echo "FAIL: adjusted mono.wav has bad checksum!" >&3; exit 1 ;; + esac +-CHKSUM=`tail -c +44 stereo.wav | md5sum` ++CHKSUM=`tail -c +44 stereo.wav | md5` + case "$CHKSUM" in + $STEREO_AFTER*) ;; + *) echo "FAIL: adjusted stereo.wav has bad checksum!" >&3; exit 1 ;; diff --git a/audio/normalize/pkg/DESCR b/audio/normalize/pkg/DESCR new file mode 100644 index 00000000000..32a51f1d102 --- /dev/null +++ b/audio/normalize/pkg/DESCR @@ -0,0 +1,7 @@ +normalize is a tool for adjusting the volume of audio files to a +standard level. This is useful for things like creating mixed +CD's and mp3 collections, where different recording levels on +different albums can cause the volume to vary greatly from song +to song. + +WWW: ${HOMEPAGE} diff --git a/audio/normalize/pkg/MESSAGE b/audio/normalize/pkg/MESSAGE new file mode 100644 index 00000000000..a0734f52746 --- /dev/null +++ b/audio/normalize/pkg/MESSAGE @@ -0,0 +1,10 @@ ++---------------------- +| +| Before the normalize-mp3 and normalize-ogg scripts can be +| used, you first need to install mpg321 and lame for normalize-mp3, +| add vorbis-tools for normalize-ogg. +| +| These extra packages are not required for normal operation of +| normalize. +| ++---------------------- \ No newline at end of file diff --git a/audio/normalize/pkg/PLIST b/audio/normalize/pkg/PLIST new file mode 100644 index 00000000000..311d0a3f97b --- /dev/null +++ b/audio/normalize/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2002/04/28 09:11:37 jasoni Exp $ +bin/normalize +bin/normalize-mp3 +bin/normalize-ogg +man/man1/normalize-mp3.1 +man/man1/normalize.1 +share/locale/en_GB/LC_MESSAGES/normalize.mo +share/locale/fr/LC_MESSAGES/normalize.mo