aboutsummaryrefslogtreecommitdiff
path: root/audio/guitarix/guitarix.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/guitarix/guitarix.SlackBuild')
-rw-r--r--audio/guitarix/guitarix.SlackBuild100
1 files changed, 30 insertions, 70 deletions
diff --git a/audio/guitarix/guitarix.SlackBuild b/audio/guitarix/guitarix.SlackBuild
index 0b19d82a245b9..9c1db5768474e 100644
--- a/audio/guitarix/guitarix.SlackBuild
+++ b/audio/guitarix/guitarix.SlackBuild
@@ -6,14 +6,25 @@
# Modified by B. Watson <yalhcru@gmail.com>. Modified version released
# under the WTFPL, for details see http://www.wtfpl.net/txt/copying/
-# 20171223 bkw: Updated for 0.36.1.
-
-# 20170825 bkw:
-# - Updated for 0.35.6
-# - Install the bundled roboto font.
+# Note to self: git URL for guitarix is:
+# git://git.code.sf.net/p/guitarix/git/
+
+# 20180619 bkw:
+# - Updated for 0.37.1.
+# - Force building with bundled zita-convolver and resampler libs.
+# Previously, system libs would be linked if they were installed,
+# otherwise bundled libs were used... caused a problem if the
+# system zita-convolver was updated to an incompatible version.
+# - Add config options to re-enable ladspa and lv2 mod-gui stuff that
+# used to be enabled by default in 0.36.1.
+# - Add patches from upstream git, to fix segfaults when online
+# button gets clicked. Also if dbus isn't running, guitarix will now
+# actually say so, in its error message.
+# - Move old changelog entries to ChangeLog.old.
-# 20170725 bkw:
-# - Updated for 0.35.5
+# 20171223 bkw: Updated for 0.36.1.
+# 20170825 bkw: Updated for 0.35.6. Install the bundled roboto font.
+# 20170725 bkw: Updated for 0.35.5
# 20170710 bkw:
# - Updated for 0.35.4
@@ -30,70 +41,8 @@
# - Flip changelog comments right-side up
# - Stop writing outside of $TMP.
-# 20161016 bkw:
-# - Updated for 0.35.2
-
-# 20160806 bkw:
-# - Updated for 0.35.1
-# - removed WEBKIT=no option from README (it was removed from the
-# script in March, should have been removed from README then).
-# - removed webkitgtk from REQUIRES, as it's now optional (and
-# autodetected, no way to force-disable it).
-# - removed patches, since they're already included in the new release.
-# - remove unimplemented SSE=no option. Note that SSE support is still
-# autodetected, so if someone's trying this on e.g. ARCH=arm, it should
-# automatically build without SSE (I have no idea if the build will
-# actually complete, in that case).
-# - remove .desktop sed stuff, upstream fixed it.
-# - update man page.
-# - note: zita-convolver and zita-resampler are not requirements. they
-# will be linked if installed, otherwise guitarix's bundled copies will
-# be used. I only mention this here so I won't forget again...
-
-# 20160329 dbs:
-# - Updated for Slackware-14.2. Forced -msse in SLKCFLAGS.
-# This just won't build without SSE on 32 bit gcc-5.3.0 :(
-# xmmintrin.h:857:1: error: inlining failed in call to always_inline
-# ‘void _MM_SET_EXCEPTION_STATE(unsigned int)’: target specific option mismatch
-# Patch 0003-fix-build-even-for-gcc4.8.patch doesn't fix it, and there
-# are no further fixes upstream at this time.
-
-# 20151108 bkw:
-# - Updated for 0.34.0
-# - Added --disable-cxx11 to ./waf flags, as bluetooth.h uses the gcc
-# typeof() extension. Not sure if newer versions of bluez would have
-# this issue (but Slackware 14.1's bluez is pretty old by now).
-# - Added patch from upstream git to allow building without webkitgtk.
-# The author added support for downloading presets, but didn't make
-# it optional in 0.34.0. Also added a couple of bugfix patches.
-# - Support building 0.33.0 with VERSION=0.33.0 in the env.
-# - Add SSE=no option.
-# - Add WEBKIT=no option.
-# - Remove LV2=no option from README (but not from script).
-
-# 20150514 bkw:
-# - Updated for 0.32.3
-# - Fix some issues with the shared libs: they were being installed
-# to /usr/lib/ on 64-bit, and they were missing the +x bits.
-# - Made LV2 option default to yes, since upstream is requiring lilv
-# even if --no-lv2 is used. Also, the lv2 plugins were being
-# installed to /usr/lib/ on 64-bit. Grr.
-# - Upstream wants avahi by default. For now, hardcoded --no-avahi.
-
-# 20130430 bkw:
-# - Updated for 0.27.1
-# - Replaced slack-desc with updated text from guitarix site
-# - Added LV2 option
-
-# 20121216 bkw:
-# - Upgraded to guitarix2
-# - Added man page
-# - Added realtime capabilities
-# - Make .desktop file validate
-# - Add guitarix's README to /usr/doc
-
PRGNAM=guitarix
-VERSION=${VERSION:-0.36.1}
+VERSION=${VERSION:-0.37.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -143,6 +92,12 @@ 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 {} \+
+# Apply commits a4792a6b9c and 7278d18e0 from upstream, to stop
+# segfaulting when user clicks the online button. Note these are
+# -p2 patches (made with "git format-patch"), unusual for a slackbuild.
+patch -p2 < $CWD/patches/0001-fix-bug-59-Guitarix-crashes-when-click-online-for-pr.patch
+patch -p2 < $CWD/patches/0002-fix-bug-59-Guitarix-crashes-when-click-online-for-pr.patch
+
# guitarix wants to install the roboto font in the wrong place for
# slackware.
sed -i '/fonts/s,\<truetype\>,TTF,' wscript tools/undiag
@@ -163,6 +118,11 @@ LIBDIR="/usr/lib${LIBDIRSUFFIX}"
--no-avahi \
--no-ldconfig \
--no-desktop-update \
+ --includeresampler \
+ --includeconvolver \
+ --ladspa \
+ --new-ladspa \
+ --mod-lv2 \
$EXTRAOPT \
$LV2OPT
./waf build # -v # verbose, shows actual commands