summaryrefslogtreecommitdiffstats
path: root/audio/aseqview/aseqview.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/aseqview/aseqview.SlackBuild')
-rw-r--r--audio/aseqview/aseqview.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/audio/aseqview/aseqview.SlackBuild b/audio/aseqview/aseqview.SlackBuild
index 2a18abcc55..47c8e0e142 100644
--- a/audio/aseqview/aseqview.SlackBuild
+++ b/audio/aseqview/aseqview.SlackBuild
@@ -2,15 +2,18 @@
# Slackware build script for aseqview
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210805 bkw, BUILD=2:
+# - build with gtk2 rather than gtk1, apply a couple of upstream fixes.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=aseqview
VERSION=${VERSION:-0.2.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,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
@@ -60,6 +60,11 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# From upstream's github: fix a segfault and a possible autotools issue.
+# Commits b31044a and e40717b.
+patch -p1 < $CWD/b31044a.patch
+patch -p1 < $CWD/e40717b.patch
+
# 20180916 bkw: need this due to these:
# levelbar.o: In function `g_bit_nth_lsf':
# levelbar.c:(.text+0x410): multiple definition of `g_bit_nth_lsf'
@@ -75,6 +80,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-gtk2 \
--build=$ARCH-slackware-linux
make