aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorSean Eubanks <seanmeu@protonmail.com>2023-07-14 09:22:12 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-14 09:22:12 +0700
commit9d2b100ce5b3d2c500ba48b85a9fbbf80203828b (patch)
tree171fdcb9d556ca9abebd0ef42af9b275a37faa18 /system
parentb66a50ab224778f0a58e473096a0e38341c4375a (diff)
system/virtualxt: Updated for version 0.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/virtualxt/README36
-rw-r--r--system/virtualxt/virtualxt.SlackBuild22
-rw-r--r--system/virtualxt/virtualxt.info6
3 files changed, 53 insertions, 11 deletions
diff --git a/system/virtualxt/README b/system/virtualxt/README
index f694e1103364c..3c5be46b1ef00 100644
--- a/system/virtualxt/README
+++ b/system/virtualxt/README
@@ -3,6 +3,36 @@ hardware and operating systems. It is designed to be simple and
lightweight yet still capable enough to run a large library of old
applications and games.
+VirtualXT uses a module system that loads dynamic plugins, which are
+files that end with an extension of .vxt. By default, all modules will
+be built. Modules may be excluded by using the EXCLUDE_MODULES variable.
+
+For example:
+
+EXCLUDE_MODULES=network ./virtualxt.SlackBuild
+
+More than one module can be excluded as long as each module is separated
+by a comma.
+
+For example:
+
+EXCLUDE_MODULES=fdc,network ./virtualxt.SlackBuild
+
+The following modules cannot be excluded:
+
+adlib
+arstech_isa
+cga
+ch36x_isa
+chipset
+ctrl
+disk
+ems
+joystick
+mouse
+rifs
+serial_dbg
+
The virtualxt binary is built with an SDL2 frontend and meant to be run
by a non-root user. The user will need to be added to the "users"
group because the binary will open the provided boot images in read-
@@ -35,3 +65,9 @@ is installed.
For example:
virtualxt-wrapper.sh -a boot/freedos.img
+
+If after upgrading from a previous version of virtualxt the console
+fails to start, then you may need to generate a new config file as
+follows:
+
+virtualxt-wrapper.sh --clean
diff --git a/system/virtualxt/virtualxt.SlackBuild b/system/virtualxt/virtualxt.SlackBuild
index 92fce166ae1de..ea63c7692443b 100644
--- a/system/virtualxt/virtualxt.SlackBuild
+++ b/system/virtualxt/virtualxt.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=virtualxt
-VERSION=${VERSION:-0.8}
+VERSION=${VERSION:-0.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
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
@@ -73,7 +70,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf virtualxt-$VERSION
-unzip $CWD/virtualxt-$VERSION.zip
+unzip $CWD/$PRGNAM-$VERSION.zip
cd virtualxt-$VERSION
chown -R root:root .
find -L . \
@@ -83,20 +80,29 @@ find -L . \
-exec chmod 644 {} \;
# Build virtualxt with SDL2 frontend
-which premake5 && premake5 gmake
+which premake5
if [ "$?" -ne 0 ]; then
echo "ERROR: Cannot find required premake5 binary!"
exit 1
fi
-make sdl2-frontend
+if [ -z "$EXCLUDE_MODULES" ]; then
+ # Build all modules
+ premake5 --modules gmake
+else
+ # Build all modules except those specified in EXCLUDE_MODULES
+ premake5 --modules=-$EXCLUDE_MODULES gmake
+fi
+make sdl2-frontend modules
# Create destination directory structure and copy files
# virtualxt binary expects bios and boot directories to be in same directory
DSTDIR=$PKG/opt/$PRGNAM
mkdir -p $DSTDIR
install -D -m 0755 build/bin/virtualxt $DSTDIR/virtualxt
-mkdir $DSTDIR/bios && cp bios/*.bin $DSTDIR/bios/
+install -D -m 0755 build/bin/libvxt.so $DSTDIR/libvxt.so
+mkdir $DSTDIR/bios && cp bios/*.bin bios/*.ROM $DSTDIR/bios/
mkdir $DSTDIR/boot && cp boot/*.img $DSTDIR/boot/
+mkdir $DSTDIR/modules && cp modules/*.vxt $DSTDIR/modules/
# Allow all users read access
if [ "$(grep ^users /etc/group)" = "" ]; then
diff --git a/system/virtualxt/virtualxt.info b/system/virtualxt/virtualxt.info
index 2952378a78807..8369dc71f399b 100644
--- a/system/virtualxt/virtualxt.info
+++ b/system/virtualxt/virtualxt.info
@@ -1,8 +1,8 @@
PRGNAM="virtualxt"
-VERSION="0.8"
+VERSION="0.9"
HOMEPAGE="https://phix.itch.io/virtualxt"
-DOWNLOAD="https://github.com/andreas-jonsson/virtualxt/archive/v0.8/virtualxt-0.8.zip"
-MD5SUM="bb99122416d53552eacce2de9294ee1e"
+DOWNLOAD="https://github.com/andreas-jonsson/virtualxt/archive/v0.9/virtualxt-0.9.zip"
+MD5SUM="bd94d9d4d6e2d4f9f1ec9cd28a773ad5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="premake5"