summaryrefslogtreecommitdiffstats
path: root/libraries/stk
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/stk')
-rw-r--r--libraries/stk/README7
-rw-r--r--libraries/stk/stk.SlackBuild26
2 files changed, 22 insertions, 11 deletions
diff --git a/libraries/stk/README b/libraries/stk/README
index 0bc1bf34a6..ece20e0fb6 100644
--- a/libraries/stk/README
+++ b/libraries/stk/README
@@ -7,16 +7,15 @@ ease of use, and educational example code.
Optional dependencies:
* oss, for OSS audio API support
-* jack-audio-connection-kit, for JACK audio API support
+* jack, for JACK audio API support
Build Options:
-STK has 3 audio APIs to choose from, that you can control
+STK has 3 audio APIs to choose from, that you can control by
passing the AUDIOAPI variable value to the slackbuild.
AUDIOAPI=alsa (default, choose native ALSA API support)
AUDIOAPI=oss (choose native OSS API support, requires oss)
-AUDIOAPI=jack (choose native JACK server API support,
- requires jack-audio-connection-kit)
+AUDIOAPI=jack (choose native JACK server API support, requires jack)
diff --git a/libraries/stk/stk.SlackBuild b/libraries/stk/stk.SlackBuild
index 27fce8acd8..2893b7ccdc 100644
--- a/libraries/stk/stk.SlackBuild
+++ b/libraries/stk/stk.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for STK
@@ -22,26 +22,36 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=stk
VERSION=${VERSION:-4.4.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -115,8 +125,10 @@ cp -a \
find $PKG/usr/doc/$PRGNAM-$VERSION -iname "README-*.txt" -not -iname "*Linux*" -exec rm -f {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE