summaryrefslogtreecommitdiff
path: root/audio/gmodplay/files
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gmodplay/files')
-rw-r--r--audio/gmodplay/files/md53
-rwxr-xr-xaudio/gmodplay/files/mod2wav57
-rw-r--r--audio/gmodplay/files/patch-sum10
3 files changed, 70 insertions, 0 deletions
diff --git a/audio/gmodplay/files/md5 b/audio/gmodplay/files/md5
new file mode 100644
index 00000000000..ebd8335ed04
--- /dev/null
+++ b/audio/gmodplay/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/03/19 19:35:52 wiz Exp $
+
+SHA1 (gmodplay-0.08.tar.gz) = fb19c21cfd08b96e5a4ef5bb802127803260c3bd
diff --git a/audio/gmodplay/files/mod2wav b/audio/gmodplay/files/mod2wav
new file mode 100755
index 00000000000..9cb452568e0
--- /dev/null
+++ b/audio/gmodplay/files/mod2wav
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# I wrote this shell script long ago to be able to master CDs from modules
+# in Un*x using gmodplay. -Ben
+
+CMD=$(basename $0)
+
+if [ x = x$1 ]
+then
+ echo "
+Usage: $CMD <module>
+for example \"$CMD funky.xm\" would create funky.xm.wav
+"
+ exit
+fi
+
+sox -V 2>&1 | grep sox >/dev/null 2>&1
+if [ $? -ne 0 ]
+then
+ echo "
+FATAL: I can't find sox in your path. Is it installed?
+"
+ exit
+fi
+
+WAVDIR=$(dirname $1)
+WAVNAME=$(basename $1|tr 'A-Z' 'a-z').wav
+
+echo -e "$1 -> $WAVDIR/$WAVNAME\c"
+
+
+echo -e " [step 1]\c"
+gmodplay -n -w $1 >/dev/null 2>&1
+if [ $? -ne 0 ]
+then
+ echo "
+FATAL: gmodplay returned an error.
+"
+ exit
+fi
+
+echo -e " [step 2]\c"
+chmod a+r output.raw
+sox -t raw -r 44100 -s -w -c 2 output.raw $WAVDIR/$WAVNAME >/dev/null 2>&1
+if [ $? -ne 0 ]
+then
+ echo "
+FATAL: sox returned an error.
+You may need to remove output.raw
+"
+ exit
+fi
+
+echo -e " [step 3]\c"
+rm -f output.raw
+
+echo " Finished!"
diff --git a/audio/gmodplay/files/patch-sum b/audio/gmodplay/files/patch-sum
new file mode 100644
index 00000000000..f855dd7f409
--- /dev/null
+++ b/audio/gmodplay/files/patch-sum
@@ -0,0 +1,10 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/03/19 19:35:52 wiz Exp $
+
+SHA1 (patch-aa) = fcf30254b109cc6b9d0cf5c54758421dca1be73b
+SHA1 (patch-ab) = bb3ab618f39109d9c528770feaf1ae8516c9162f
+SHA1 (patch-ac) = 9b40f06f51d509da4a03b219209c8aa7b6f5e6a7
+SHA1 (patch-ad) = 3cd04b588226e2e5f2fb2c899ca6c61297a5ccbf
+SHA1 (patch-ae) = 9ecff7f878ecbcb49241d0df19291813173826e3
+SHA1 (patch-af) = 1ff33b7a6ef109e1c6505f26d2d4137ac66dcebf
+SHA1 (patch-ag) = a8e1e1d54ecb17dfb8fbd438b5b7a81bf73c085b
+SHA1 (patch-ah) = 44073bbefd4b48414588e15e5eb2da073b815007