diff options
author | B. Watson <yalhcru@gmail.com> | 2014-09-12 01:50:04 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-09-12 01:50:04 +0700 |
commit | a690951e27063ddd2135f01155ca4923832f4b4d (patch) | |
tree | ca12b95f3bcf62739d263fedfc6668c8e3153f6b /audio/sooperlooper/sooperlooper.SlackBuild | |
parent | 538723a8c78022162b9c06a063eee10aa0fd6712 (diff) | |
download | slackbuilds-a690951e27063ddd2135f01155ca4923832f4b4d.tar.gz |
audio/sooperlooper: Updated for version 1.7.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/sooperlooper/sooperlooper.SlackBuild')
-rw-r--r-- | audio/sooperlooper/sooperlooper.SlackBuild | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/audio/sooperlooper/sooperlooper.SlackBuild b/audio/sooperlooper/sooperlooper.SlackBuild index 02bf90e290..891892a341 100644 --- a/audio/sooperlooper/sooperlooper.SlackBuild +++ b/audio/sooperlooper/sooperlooper.SlackBuild @@ -6,8 +6,14 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20140910 bkw: +# - update for v1.7.2 +# - explicitly use the correct config script for wx, instead of relying +# on /usr/bin/wx-config +# - add option to build against wxGTK3 + PRGNAM=sooperlooper -VERSION=${VERSION:-1.7.0} +VERSION=${VERSION:-1.7.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,6 +46,14 @@ fi set -e +# We can't trust the /usr/bin/wx-config symlink. +# Find the correct wx-config, if it exists. User can override by setting WXVER +# in the env, or by setting WXCONFIG to the full path. +WXVER=${WXVER:-2.8} +WXMAYBE="$( ls /usr/lib$LIBDIRSUFFIX/wx/config/*-$WXVER 2>/dev/null | head -1 )" +WXCONFIG=${WXCONFIG:-$WXMAYBE} +WXCONFIG=${WXCONFIG:-/usr/bin/wx-config} + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -53,10 +67,14 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# allow building with wx 3.0, using a patch from Debian +[ "$WXVER" = "3.0" ] && patch -p1 < $CWD/04-build_with_wx_30.patch + # Note: the CFLAGS are actually ignored here. Oh well. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ + --with-wxconfig-path=$WXCONFIG \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ |