diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-11 23:09:53 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-13 09:17:45 +0700 |
commit | 509630ceceff73d1f7d5ca42c37917b05faba3e2 (patch) | |
tree | b63d99ee6e377f07ccb50bb6e3c9b7a131e335c9 /system/bochs | |
parent | 3dd6111aaef18825f625ed5bb1efd4ae5c56dc32 (diff) |
system/bochs: Updated for version 2.7.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/bochs')
-rw-r--r-- | system/bochs/README | 2 | ||||
-rw-r--r-- | system/bochs/bochs.SlackBuild | 37 | ||||
-rw-r--r-- | system/bochs/bochs.info | 6 |
3 files changed, 21 insertions, 24 deletions
diff --git a/system/bochs/README b/system/bochs/README index 950bf998f463f..77603517234d2 100644 --- a/system/bochs/README +++ b/system/bochs/README @@ -1,3 +1,5 @@ +bochs (cross platform x86 emulator) + Bochs is a highly portable open source IA-32 (x86) emulator written in C++, that runs on most popular platforms. It include emulation of the Intel x86 CPU, common I/O devices, and a custom BIOS. Bochs can be diff --git a/system/bochs/bochs.SlackBuild b/system/bochs/bochs.SlackBuild index d23977a445422..bea5d9be03e35 100644 --- a/system/bochs/bochs.SlackBuild +++ b/system/bochs/bochs.SlackBuild @@ -26,23 +26,25 @@ # ChangeLog: # # * 2014-01-29: -# New upstream version (2.6.2). Solved the problem with dynamic -# linking on x86_64. +# New upstream version (2.6.2). Solved the problem with dynamic +# linking on x86_64. # * 2015-08-03: -# New upstream version (2.6.8). You can now override most of the -# configure options on the command line. +# New upstream version (2.6.8). You can now override most of the +# configure options on the command line. + +# 20220211 bkw: updated for v2.7, as 2.6.8 won't build on Slackware 15.0. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bochs -VERSION=${VERSION:-2.6.8} +VERSION=${VERSION:-2.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -94,13 +96,10 @@ SDL2=${SDL2:-no} # Note: buggy on my machine. # SDL and SDL2 interfaces are mutually exclusive. SDL interface seems to be # more stable, so default to SDL. if [ "$SDL" = "yes" -a "$SDL2" = "yes" ]; then - echo "Warning: You can't enable both SDL and SDL2. Defaulting to SDL." - SDL2=no + echo "Warning: You can't enable both SDL and SDL2. Defaulting to SDL." + SDL2=no fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -112,8 +111,8 @@ OUTPUT=${OUTPUT:-/tmp} DOCS="CHANGES COPYING PARAM_TREE.txt README* TESTFORM.txt TODO" -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -137,9 +136,9 @@ 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 {} \+ # We need this on x86_64 to fix a libtldl problem libtoolize -c @@ -196,15 +195,11 @@ CXXFLAGS="$SLKCFLAGS" \ --with-wx=${WX} \ --build=$ARCH-slackware-linux - - make make install DESTDIR=$PKG +strip $PKG/usr/bin/* $PKG/usr/lib*/$PRGNAM/plugins/lib*.so.?.?.? -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -# Move docs in the proper place +# Move docs to the proper place mkdir -p $PKG/usr/doc mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION rmdir $PKG/usr/share/doc diff --git a/system/bochs/bochs.info b/system/bochs/bochs.info index 93ea47b057443..e088560ee9e88 100644 --- a/system/bochs/bochs.info +++ b/system/bochs/bochs.info @@ -1,8 +1,8 @@ PRGNAM="bochs" -VERSION="2.6.8" +VERSION="2.7" HOMEPAGE="http://bochs.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/bochs/bochs-2.6.8.tar.gz" -MD5SUM="8a243e2b5f7562f32d2b26f3cebbba08" +DOWNLOAD="http://downloads.sourceforge.net/bochs/bochs-2.7.tar.gz" +MD5SUM="d77a43c21cfd8aa013eb2eaa35644f80" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |