diff options
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 \ |