aboutsummaryrefslogtreecommitdiff
path: root/system/dosbox-x/dosbox-x.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/dosbox-x/dosbox-x.SlackBuild')
-rw-r--r--system/dosbox-x/dosbox-x.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/dosbox-x/dosbox-x.SlackBuild b/system/dosbox-x/dosbox-x.SlackBuild
index a85e55ea3eb24..938c24106453a 100644
--- a/system/dosbox-x/dosbox-x.SlackBuild
+++ b/system/dosbox-x/dosbox-x.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for dosbox-x
# Copyright 2019-2020 Leonardo Citrolo, Italy
+# Copyright 2023 Yth | Pont-en-Royans, France | yth@ythogtha.org
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dosbox-x
-VERSION=${VERSION:-0.83.22}
+VERSION=${VERSION:-2023.05.01}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -73,7 +74,7 @@ cd $TMP
# in the sources tarball filename and/or main dirname
rm -rf $PRGNAM-v$VERSION $PRGNAM-$PRGNAM-v$VERSION
tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$PRGNAM-v$VERSION.tar.gz
-cd $PRGNAM-v$VERSION || cd $PRGNAM-$PRGNAM-v$VERSION
+cd $PRGNAM-v$VERSION 2>/dev/null || cd $PRGNAM-$PRGNAM-v$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -81,11 +82,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-./autogen.sh
-
+# Don't force make -j3
+sed -i 's#make -j3#make#' build-sdl2
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
+./build-sdl2 \
--prefix=/usr \
--mandir=/usr/man \
--build=$ARCH-slackware-linux \
@@ -93,7 +94,6 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-d3d9 \
--enable-d3d-shaders
-make
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \