summaryrefslogtreecommitdiffstats
path: root/audio/ff8dls
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2014-03-07 00:25:54 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2014-03-07 00:25:54 +0700
commit42eb53a97a09cf8b572d47ae384508a424dff9b7 (patch)
treec3971fbf96289a0ef0d17917e70e51cc7ba3ace5 /audio/ff8dls
parent1a63d5f6b9b7ba88f3bb54c43f8768bf5cc84902 (diff)
downloadslackbuilds-42eb53a97a09cf8b572d47ae384508a424dff9b7.tar.gz
slackbuilds-42eb53a97a09cf8b572d47ae384508a424dff9b7.tar.xz
audio/ff8dls: Added (DLS soundfont for use with fmodapi).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/ff8dls')
-rw-r--r--audio/ff8dls/README11
-rw-r--r--audio/ff8dls/ff8dls.SlackBuild64
-rw-r--r--audio/ff8dls/ff8dls.info10
-rw-r--r--audio/ff8dls/slack-desc19
4 files changed, 104 insertions, 0 deletions
diff --git a/audio/ff8dls/README b/audio/ff8dls/README
new file mode 100644
index 0000000000..3ea305773b
--- /dev/null
+++ b/audio/ff8dls/README
@@ -0,0 +1,11 @@
+A soundfont to be used with DLS compatible MIDI devices, including the
+fmodapi package from slackbuilds.org.
+
+This is a General MIDI soundfont designed to sound like the PlayStation,
+specifically the game "Final Fantasy 8". It sounds pretty good with Doom
+source ports, too (zdoom, gzdoom, and skulltag support FMOD).
+
+To use with zdoom, gzdoom, or skulltag, set the MIDI device
+to FMOD from the in-game Options menu, and set the variable
+snd_midipatchset=/usr/share/sounds/dls/ff8.dls in the game console or
+the config file.
diff --git a/audio/ff8dls/ff8dls.SlackBuild b/audio/ff8dls/ff8dls.SlackBuild
new file mode 100644
index 0000000000..b220fa5c90
--- /dev/null
+++ b/audio/ff8dls/ff8dls.SlackBuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# Slackware build script for ff8dls
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# This may not be the best DLS soundfont to use with Doom, but it's
+# only one of two freely-available ones I found on the web. The other
+# is called "General MIDI DLS SoundFont", from CodeWeavers, and it's
+# missing too many samples to be worth using.
+
+PRGNAM=ff8dls
+VERSION=${VERSION:-1.39}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+ARCH=noarch
+
+set -e
+
+ZIPVER=$( echo $VERSION | sed 's/\.//g' )
+ZIPFILE=${PRGNAM}_v${ZIPVER}.zip
+DLSFILE=ff8.dls
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir -p $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+unzip -LL $CWD/$ZIPFILE $PRGNAM.exe readme.txt
+unrar x -cl $PRGNAM.exe
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# By analogy with fluid-soundfont's /usr/share/sounds/sf2...
+mkdir -p $PKG/usr/share/sounds/dls
+cat $DLSFILE > $PKG/usr/share/sounds/dls/$DLSFILE
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+
+# The readme contains instructions on how to use the soundfont with FF8
+# on Windows, but it also has some technical info, so it's not 100% useless
+# for our purposes.
+sed 's/\r//' readme.txt > $PKG/usr/doc/$PRGNAM-$VERSION/readme.txt
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/ff8dls/ff8dls.info b/audio/ff8dls/ff8dls.info
new file mode 100644
index 0000000000..78bd2ae2e7
--- /dev/null
+++ b/audio/ff8dls/ff8dls.info
@@ -0,0 +1,10 @@
+PRGNAM="ff8dls"
+VERSION="1.39"
+HOMEPAGE="http://ffsf.aaron-kelley.net/download_8.html"
+DOWNLOAD="http://aladore3viii4.free.fr/files/FF8/ff8dls_v139.zip"
+MD5SUM="85a9bffa1469b5c9ffde764858d21a30"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="unrar"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/audio/ff8dls/slack-desc b/audio/ff8dls/slack-desc
new file mode 100644
index 0000000000..404abc3d23
--- /dev/null
+++ b/audio/ff8dls/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+ff8dls: ff8dls (DLS soundfont for use with fmodapi)
+ff8dls:
+ff8dls: A soundfont to be used with DLS compatible MIDI devices, including
+ff8dls: the fmodapi package from slackbuilds.org.
+ff8dls:
+ff8dls: This is a General MIDI soundfont designed to sound like the
+ff8dls: PlayStation, specifically the game "Final Fantasy 8". It sounds
+ff8dls: pretty good with Doom source ports, too (gzdoom and skulltag
+ff8dls: support FMOD).
+ff8dls:
+ff8dls: