aboutsummaryrefslogtreecommitdiff
path: root/audio/SuperCollider/SuperCollider.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/SuperCollider/SuperCollider.SlackBuild')
-rw-r--r--audio/SuperCollider/SuperCollider.SlackBuild20
1 files changed, 11 insertions, 9 deletions
diff --git a/audio/SuperCollider/SuperCollider.SlackBuild b/audio/SuperCollider/SuperCollider.SlackBuild
index 793064bb322b1..3aca95ac5c6a6 100644
--- a/audio/SuperCollider/SuperCollider.SlackBuild
+++ b/audio/SuperCollider/SuperCollider.SlackBuild
@@ -5,10 +5,14 @@
# Written by Felix Pfeifer
# contact: pfeifer[dot]felix[at]googlemail[dot]com
+# 20220218 bkw: Modified by SlackBuilds.org: updated for v3.12.2 as
+# the previous version wouldn't build on Slackware 15.0. Build with
+# bundled yaml-cpp rather than depend on an external yaml-cpp.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=SuperCollider
-VERSION=${VERSION:-3.10.2}
+VERSION=${VERSION:-3.12.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -21,9 +25,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -49,15 +50,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-Source
-tar xvf $CWD/$PRGNAM-$VERSION-Source-linux.tar.?z*
-cd $PRGNAM-Source
+rm -rf $PRGNAM-$VERSION-Source
+tar xvf $CWD/$PRGNAM-$VERSION-Source.tar.bz2
+cd $PRGNAM-$VERSION-Source
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 \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
# Pass AVAHI=yes to the script to enable avahi support
if [ "${AVAHI:-no}" = "yes" ]; then avahi="OFF"; else avahi="ON"; fi
@@ -85,6 +86,7 @@ cd build
-DSC_WII="$cwiid" \
-DSC_EL="$emacs" \
-DSC_ED="2" \
+ -DSYSTEM_YAMLCPP=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG