summaryrefslogtreecommitdiffstats
path: root/audio/calf-ladspa/calf-ladspa.SlackBuild
diff options
context:
space:
mode:
author B. Watson2017-07-06 11:10:47 +0200
committer Willy Sudiarto Raharjo2017-07-08 02:11:17 +0200
commit362cf0b3c9fb0d847b734ba2e1afa0fcb4321d73 (patch)
treeb3e1b199bb0eb7c25654030db4de862836faa372 /audio/calf-ladspa/calf-ladspa.SlackBuild
parent3616ce8c0a708d668c0eebc6393d276dedc0a1a7 (diff)
downloadslackbuilds-362cf0b3c9fb0d847b734ba2e1afa0fcb4321d73.tar.gz
audio/calf-ladspa: Remove extra deps, prepare for gcc7.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'audio/calf-ladspa/calf-ladspa.SlackBuild')
-rw-r--r--audio/calf-ladspa/calf-ladspa.SlackBuild24
1 files changed, 21 insertions, 3 deletions
diff --git a/audio/calf-ladspa/calf-ladspa.SlackBuild b/audio/calf-ladspa/calf-ladspa.SlackBuild
index c49821ee7b..f78f393bc7 100644
--- a/audio/calf-ladspa/calf-ladspa.SlackBuild
+++ b/audio/calf-ladspa/calf-ladspa.SlackBuild
@@ -4,6 +4,15 @@
# Written by B. Watson (yalhcru@gmail.com)
+# 20170706 bkw:
+# - Patch source so it doesn't check for jack-audio-connection-kit or
+# fluidsynth. Previously they were required for the build to complete,
+# but the stuff that got built with support for them was being rm'ed
+# after make install (because the package only contains LADSPA plugins).
+# - Remove jack-audio-connection-kit and fluidsynth from REQUIRES.
+# - Add patch to support -current's gcc7. For now, it's commented out
+# in the SlackBuild, since 14.2 doesn't need it.
+
# 20151105 bkw:
# - Renamed to calf-ladspa. The main calf build is now for calf-0.0.60,
# which lacks LADSPA support. Removed LV2 and standalone support, use
@@ -58,9 +67,7 @@ fi
# leave it disabled here.
EXPOPT=disable
-# Unfortunately there's no way to disable building calfjackhost and
-# installing it and its support files. We'll disable what we can,
-# and go ahead & build calfjackhost and rm -rf it after install.
+# We'll disable what we can, and rm -rf what we don't need after install.
LADSPA_OPT="--with-ladspa-dir=/usr/lib${LIBDIRSUFFIX}/ladspa"
DSSI_OPT="--without-dssi"
LV2_OPT="--without-lv2"
@@ -82,6 +89,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# There are no --without or --disable options for jack and fluidsynth,
+# so patch the autoconf to skip them (they're not needed for the LADSPA
+# plugins).
+patch -p1 < $CWD/disable-jack-and-fluidsynth.diff
+
+# gcc 7 is very picky about the argument types of std::min() and std::max().
+# This patch replaces them with C-style MIN and MAX macros. Not actually
+# needed on Slack 14.2, so it's commented out, but I'm checking the actual
+# patch into git so I won't lose track of it.
+#patch -p1 < $CWD/minmax.diff
+
autoreconf -if
# Note: The build ignores the provided -O2 in the flags (but the