summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds@schoepfer.info>2019-11-22 23:40:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-22 23:40:13 +0700
commit0d453225a0aa923a62613a959b20fba97e08aac7 (patch)
treec5572af86b5c96a3d8375f7fe95ef41705bec09d /audio
parent9c42236371716c91a0ffd83a3e4e32f6371ba40a (diff)
downloadslackbuilds-0d453225a0aa923a62613a959b20fba97e08aac7.tar.gz
audio/setBfree: Added (A DSP Tonewheel Organ emulator).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/setBfree/README16
-rw-r--r--audio/setBfree/libdir.patch19
-rw-r--r--audio/setBfree/setBfree.SlackBuild118
-rw-r--r--audio/setBfree/setBfree.info10
-rw-r--r--audio/setBfree/slack-desc19
5 files changed, 182 insertions, 0 deletions
diff --git a/audio/setBfree/README b/audio/setBfree/README
new file mode 100644
index 0000000000..9265a24cbb
--- /dev/null
+++ b/audio/setBfree/README
@@ -0,0 +1,16 @@
+MIDI-controlled, software synthesizer designed to imitate the sound
+and properties of the electromechanical organs and sound modification
+devices that brought world-wide fame to the names and products of
+Laurens Hammond and Don Leslie.
+
+This package uses POSIX filesystem capabilities to execute with
+elevated privileges (required for realtime audio processing). This
+may be considered a security/stability risk. Please read
+http://www.slackbuilds.org/caps/ for more information. To disable
+capabilities, pass SETCAP=no to the script.
+
+jack2 may be used instead of jack-audio-connection-kit.
+lv2,liblo and ftgl are optional
+dependencies to build the standalone/lv2 OpenGL UI:
+For the LV2 GUI you need a LV2 host with Gtk support, like jalv.
+jalv.gtk -l ~/.config/setBfree http://gareus.org/oss/lv2/b_synth
diff --git a/audio/setBfree/libdir.patch b/audio/setBfree/libdir.patch
new file mode 100644
index 0000000000..a8782f3bdf
--- /dev/null
+++ b/audio/setBfree/libdir.patch
@@ -0,0 +1,19 @@
+--- common.mak.orig 2019-11-22 04:27:08.903418811 +0100
++++ common.mak 2019-11-22 04:29:32.031629463 +0100
+@@ -2,6 +2,7 @@
+
+ PREFIX ?= /usr/local
+ OPTIMIZATIONS ?= -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer -O3 -fno-finite-math-only
++LIBDIR ?= lib
+ ENABLE_CONVOLUTION ?= no
+ INSTALL_EXTRA_LV2 ?= no
+ FONTFILE?=/usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf
+@@ -20,7 +21,7 @@
+
+ bindir = $(PREFIX)/bin
+ sharedir = $(PREFIX)/share/setBfree
+-lv2dir = $(PREFIX)/lib/lv2
++lv2dir = $(PREFIX)/$(LIBDIR)/lv2
+
+ CFLAGS ?= $(OPTIMIZATIONS) -Wall
+ ifeq ($(XWIN),)
diff --git a/audio/setBfree/setBfree.SlackBuild b/audio/setBfree/setBfree.SlackBuild
new file mode 100644
index 0000000000..7ef2d960c9
--- /dev/null
+++ b/audio/setBfree/setBfree.SlackBuild
@@ -0,0 +1,118 @@
+#!/bin/sh
+
+# Slackware build script for setBfree
+
+# Copyright 2019 Johannes Schoepfer, Germany
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=setBfree
+VERSION=${VERSION:-0.8.10}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+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 {} \;
+
+patch -p0 < $CWD/libdir.patch
+
+make clean
+make \
+ PREFIX=/usr OPTIMIZATIONS="$SLKCFLAGS" \
+ FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf
+make \
+ PREFIX=/usr DESTDIR=$PKG LIBDIR="lib$LIBDIRSUFFIX" \
+ FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf \
+ install
+
+mkdir -p $PKG/usr/share/pixmaps
+cp doc/{$PRGNAM,x42-whirl}.png \
+ $PKG/usr/share/pixmaps/
+mkdir -p $PKG/usr/man/man1
+cp doc/*.1 $PKG/usr/man/man1/
+# remove jboverdrive man page, https://github.com/pantherb/setBfree/issues/46
+rm $PKG/usr/man/man1/jboverdrive.1
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS ChangeLog README.md doc/*.png \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+# Only add capability stuff if not disabled:
+if [ "${SETCAP:-yes}" = "yes" ]; then
+ # set realtime capabilities
+ echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$PRGNAM" >> $PKG/install/doinst.sh
+ echo "[ -x usr/bin/${PRGNAM}UI ] && \
+ /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/${PRGNAM}UI" >> $PKG/install/doinst.sh
+ # Only allow execution by audio group
+ chown root:audio $PKG/usr/bin/*
+ chmod 0750 $PKG/usr/bin/*
+fi
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/setBfree/setBfree.info b/audio/setBfree/setBfree.info
new file mode 100644
index 0000000000..5ea64e3121
--- /dev/null
+++ b/audio/setBfree/setBfree.info
@@ -0,0 +1,10 @@
+PRGNAM="setBfree"
+VERSION="0.8.10"
+HOMEPAGE="https://x42-plugins.com/x42/setBfree"
+DOWNLOAD="https://github.com/pantherb/setBfree/archive/v0.8.10/setBfree-0.8.10.tar.gz"
+MD5SUM="05ca24e68dd70f498a52f609ec3eb050"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="jack2"
+MAINTAINER="Johannes Schoepfer"
+EMAIL="slackbuilds@schoepfer.info"
diff --git a/audio/setBfree/slack-desc b/audio/setBfree/slack-desc
new file mode 100644
index 0000000000..a99caf6788
--- /dev/null
+++ b/audio/setBfree/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------------------------------------------------------|
+setBfree: setBfree (A DSP Tonewheel Organ emulator)
+setBfree:
+setBfree: MIDI-controlled, software synthesizer designed to imitate the sound
+setBfree: and properties of the electromechanical organs and sound modification
+setBfree: devices that brought world-wide fame to the names and products of
+setBfree: Laurens Hammond and Don Leslie.
+setBfree:
+setBfree: Homepage https://x42-plugins.com/x42/setBfree
+setBfree:
+setBfree:
+setBfree: