diff options
Diffstat (limited to 'system/86box')
-rw-r--r-- | system/86box/86box.SlackBuild | 50 | ||||
-rw-r--r-- | system/86box/86box.info | 10 | ||||
-rw-r--r-- | system/86box/README | 9 |
3 files changed, 48 insertions, 21 deletions
diff --git a/system/86box/86box.SlackBuild b/system/86box/86box.SlackBuild index c859af6ace..d93cd66fd7 100644 --- a/system/86box/86box.SlackBuild +++ b/system/86box/86box.SlackBuild @@ -8,10 +8,8 @@ # Notes: -# This thing uses the current directory for its config file. I thought -# about patching it to use ~/.86box.cfg or ~/.config/86Box/86box.cfg, -# but it might be considered a feature (create each VM in it own -# directory, with its own 86box.cfg). +# Version 4.x used to write the config file to the current directory. +# Starting with 5.0, it stores configs in ~/.config/86box. # We now have rtmidi in the repo. The build doesn't autodetect it and # disable it if it's missing, we have to help it out with -DRTMIDI=OFF @@ -23,9 +21,9 @@ # The other frontends are mac/windows only. # Anyway, it has a nice Qt GUI, I don't see why it needs a frontend. +# 20250829 bkw: update for v5.0. # 20240925 bkw: update for v4.2.1. # 20240812 bkw: update for v4.2. - # 20240311 bkw: update for v4.1. # - submitted a build for rtmidi, so it's now supported here as an # optional dep. @@ -34,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=86box SRCNAM=86Box -VERSION=${VERSION:-4.2.1} +VERSION=${VERSION:-5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -52,22 +50,43 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi +# 20250829 bkw: Starting with version 5.0, SSE2 is required at +# runtime, for x86 and x86_64. If we're somehow building on an ancient +# CPU that lacks SSE2, warn the user, but don't stop the build. +# There is probably a way to patch it to build without SSE2 on x86, +# but I'm not spending a lot of time to figure it out because I doubt +# anyone really needs it. +check_sse2() { + grep -q '\<sse2\>' /proc/cpuinfo && return + cat <<EOF + +******************************************************************** +* WARNING: 86box requires SSE2 extensions, but you are building on a +* system without SSE2. If you install the resulting package on this +* system, it will fail with "Illegal Instruction" errors. +* +* Press ^C within 5 seconds to abort the build, or wait 5 seconds to +* continue. +******************************************************************** + +EOF + sleep 5 +} + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" + SLKCFLAGS="-O2 -march=i586 -mtune=i686 -msse2" + check_sse2 elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" + SLKCFLAGS="-O2 -march=i686 -mtune=i686 -msse2" + check_sse2 elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -84,6 +103,7 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + # 20240311 bkw: rtmidi still not autodetected in 4.1. +# 20250829 bkw: or 5.0 either. if [ "${RTMIDI:-yes}" != "yes" ] || ! pkg-config --exists rtmidi; then RTMIDI="-DRTMIDI=OFF" fi @@ -92,11 +112,9 @@ mkdir -p build cd build cmake \ $RTMIDI \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DMAN_INSTALL_DIR=/usr/man \ -DCMAKE_BUILD_TYPE=Release .. make make install/strip DESTDIR=$PKG diff --git a/system/86box/86box.info b/system/86box/86box.info index 811fa49f9b..1d21965f78 100644 --- a/system/86box/86box.info +++ b/system/86box/86box.info @@ -1,10 +1,10 @@ PRGNAM="86box" -VERSION="4.2.1" +VERSION="5.0" HOMEPAGE="https://86box.net/" -DOWNLOAD="https://github.com/86Box/86Box/archive/v4.2.1/86Box-4.2.1.tar.gz \ - https://github.com/86Box/roms/archive/v4.2.1/roms-4.2.1.tar.gz" -MD5SUM="80067d3f51df6c693e699eeba3249d8e \ - 1c337b77aeaca8005a56b3434e94c41a" +DOWNLOAD="https://github.com/86Box/86Box/archive/v5.0/86Box-5.0.tar.gz \ + https://github.com/86Box/roms/archive/v5.0/roms-5.0.tar.gz" +MD5SUM="99cebc5a2ed57cb52e32431fc6cbca89 \ + 1cc493aa3338042710248b112dabc09b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libslirp" diff --git a/system/86box/README b/system/86box/README index 41469b1f1a..51f38977e7 100644 --- a/system/86box/README +++ b/system/86box/README @@ -30,3 +30,12 @@ Optional dependency: rtmidi (autodetected). If rtmidi is installed at build time, 86box will be built with support for it. If you have rtmidi installed but want to build without it, export RTMIDI=no in the environment. MIDI will still work without rtmidi. + +Optional dependency: gamemode. This is a runtime dependency, so it can +be installed at any time without having to rebuild 86box. + +Note: Starting with version 5.0, 86box requires SSE2 extensions to run +on 32-bit x86. Unless your CPU is over 20 years old, this shouldn't +cause a problem. It's still possible to *build* 86box on a system +that lacks SSE2, but not *run* it (you could install the package on a +different machine that has SSE2 and it would work). |