summaryrefslogtreecommitdiffstats
path: root/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-01-16 21:06:00 +0100
committer Eric Hameleers <alien@slackware.com>2019-01-16 21:06:00 +0100
commit57362c3b2112726be159861f922faf7ae66858ca (patch)
tree0f803811bc2bcff3a4205608848c5adb78e2458e /deps/phonon-gstreamer/phonon-gstreamer.SlackBuild
parent03668e880f29dad79077029dd31fb7601acd7ae6 (diff)
downloadktown-57362c3b2112726be159861f922faf7ae66858ca.tar.gz
ktown-57362c3b2112726be159861f922faf7ae66858ca.tar.xz
Update the deps
New: SDL_sound, drumstick, perl-path-tiny, perl-template-toolkit, python3-random2, freecell-solver Updated: OpenAL, phonon, phonon-vlc Rebuilt: phonon-gstreamer
Diffstat (limited to 'deps/phonon-gstreamer/phonon-gstreamer.SlackBuild')
-rwxr-xr-xdeps/phonon-gstreamer/phonon-gstreamer.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild b/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild
index 27f441d..13b1e4e 100755
--- a/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild
+++ b/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright 2011, 2012, 2014, 2015, 2016 Eric Hameleers, Eindhoven, NL
+# Copyright 2011, 2012, 2014, 2015, 2016, 2019 Eric Hameleers, Eindhoven, NL
# Copyright 2011, 2012 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
@@ -23,18 +23,20 @@
# -----------------------------------------------------------------------------
+cd $(dirname $0) ; CWD=$(pwd)
+
PKGNAM=phonon-gstreamer
SRCNAM=phonon-backend-gstreamer
VERSION=${VERSION:-4.9.0}
BUILD=${BUILD:-2}
-NUMJOBS=${NUMJOBS:-" -j7 "}
+NUMJOBS=${NUMJOBS:-"-j$(nproc)"}
# Automatically determine the architecture we're building on:
MARCH=$( uname -m )
if [ -z "$ARCH" ]; then
case "$MARCH" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
@@ -42,8 +44,8 @@ if [ -z "$ARCH" ]; then
esac
fi
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=${ARCH} -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
@@ -59,7 +61,14 @@ else
LIBDIRSUFFIX=""
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 "$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.txz"
+ exit 0
+fi
+
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM