summaryrefslogtreecommitdiff
path: root/audio/aseqview/aseqview.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/aseqview/aseqview.SlackBuild')
-rw-r--r--audio/aseqview/aseqview.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/audio/aseqview/aseqview.SlackBuild b/audio/aseqview/aseqview.SlackBuild
index 2a18abcc55..2f7fca5abe 100644
--- a/audio/aseqview/aseqview.SlackBuild
+++ b/audio/aseqview/aseqview.SlackBuild
@@ -6,11 +6,14 @@
# 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,10 @@ 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/post-0.2.8-fixes.diff
+
# 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 +79,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-gtk2 \
--build=$ARCH-slackware-linux
make