aboutsummaryrefslogtreecommitdiff
path: root/audio/butt/butt.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/butt/butt.SlackBuild')
-rw-r--r--audio/butt/butt.SlackBuild25
1 files changed, 20 insertions, 5 deletions
diff --git a/audio/butt/butt.SlackBuild b/audio/butt/butt.SlackBuild
index 44b896a29a..80c9b15f2f 100644
--- a/audio/butt/butt.SlackBuild
+++ b/audio/butt/butt.SlackBuild
@@ -25,12 +25,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20250806 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix a couple of missing #include errors that were always there,
+# but exposed by upgrading fltk to 1.4 (because fltk's headers no
+# longer #include <stdlib.h> and <locale.h> as they did in 1.3).
+# - note that there are a few fltk deprecation warnings with 1.4, I
+# didn't try to fix them since they don't break the build. someday
+# someone may have to do something about those for some future
+# version of fltk.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=butt
-VERSION=${VERSION:-1.44.0}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-1.45.0}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -74,14 +82,21 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-1.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} + -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
+
+# 20250806 bkw: some fltk-1.3 header has "#include <locale.h>", and it's
+# removed in fltk-1.4, so butt.cpp needs to include locale.h itself.
+# same for <stdlib.h> to declare free() in the file chooser.
+sed -i '1i#include <locale.h>' src/butt.cpp
+sed -i '1i#include <stdlib.h>' src/FLTK/FL/Fl_My_Native_File_Chooser.H \
+ src/FLTK/Fl_My_Native_File_Chooser_GTK.cxx
# Add required time header
patch -Np1 -i $CWD/time-header.patch