Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (56e88c06eddb7c3b3e941d23a132040fdfbadec9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (56e88c06eddb7c3b3e941d23a132040fdfbadec9)
  • Date: Wed, 12 Jun 2024 14:08:28 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog
| 1
emulators/virtualxt/BUILD
| 2
emulators/virtualxt/DEPENDS
| 1
emulators/virtualxt/DETAILS
| 22 ++++++++
emulators/virtualxt/HISTORY
| 4 +
emulators/virtualxt/INSTALL
| 4 +
emulators/virtualxt/PRE_BUILD
| 3 +

emulators/virtualxt/patches/0001-Define-_POSIX_C_SOURCE-to-expose-popen-pclose.patch
| 27 ++++++++++
8 files changed, 64 insertions(+)

New commits:
commit 56e88c06eddb7c3b3e941d23a132040fdfbadec9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

virtualxt: new spell, Turbo PC/XT emulator

diff --git a/ChangeLog b/ChangeLog
index 1e9f181..a9d41f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2024-06-12 Ismael Luceno <ismael AT sourcemage.org>
* devel/hare: new spell, The Hare standard library
+ * emulators/virtualxt: new spell, Turbo PC/XT emulator

2024-06-11 Ismael Luceno <ismael AT sourcemage.org>
* devel/shfmt: new spell, shfmt formats shell programs
diff --git a/emulators/virtualxt/BUILD b/emulators/virtualxt/BUILD
new file mode 100755
index 0000000..4a9582c
--- /dev/null
+++ b/emulators/virtualxt/BUILD
@@ -0,0 +1,2 @@
+premake5 --modules gmake2 &&
+make sdl2-frontend
diff --git a/emulators/virtualxt/DEPENDS b/emulators/virtualxt/DEPENDS
new file mode 100755
index 0000000..faebeb9
--- /dev/null
+++ b/emulators/virtualxt/DEPENDS
@@ -0,0 +1 @@
+depends sdl2
diff --git a/emulators/virtualxt/DETAILS b/emulators/virtualxt/DETAILS
new file mode 100755
index 0000000..67da7b0
--- /dev/null
+++ b/emulators/virtualxt/DETAILS
@@ -0,0 +1,22 @@
+# Watch: https://github.com/andreas-jonsson/virtualxt/tags
/refs/tags/v([0-9.]+)[.]tar
+ SPELL=virtualxt
+ VERSION=1.0
+ SOURCE="$SPELL-$VERSION.tar.gz"
+
SOURCE_URL[0]=https://github.com/andreas-jonsson/$SPELL/archive/refs/tags/v$VERSION.tar.gz
+
SOURCE_HASH=sha512:05b0d71cc41b912d0ef7adc65fec68d1d5a44a08fca838778d89d569070defc6d9b63da6e7fb76b4f212360f048124eff0169d086db8be609d9db35f55feae30
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE="https://phix.itch.io/virtualxt";
+ LICENSE[0]="BSD-3-Clause GPL-3.0-or-later"
+ ENTERED=20240404
+ KEYWORDS=""
+ SHORT="Turbo PC/XT emulator"
+cat << EOF
+VirtualXT is a Turbo PC/XT emulator that runs on modern hardware and
operating
+systems. It is designed to be simple and lightweight yet still capable enough
+to run a large library of old application and games.
+
+The default setup emulates a Intel 8088 CPU running at 4.77 Mhz just like the
+original IBM 5150/5160. This is quite a slow system and the original 8088
only
+operates in real-mode. This means that no protected-mode or 32 bit
applications
+will run. (Most MS-DOS software from the 90's requires a later CPU.)
+EOF
diff --git a/emulators/virtualxt/HISTORY b/emulators/virtualxt/HISTORY
new file mode 100644
index 0000000..407ec33
--- /dev/null
+++ b/emulators/virtualxt/HISTORY
@@ -0,0 +1,4 @@
+2024-06-12 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD,
+ patches/0001-Define-_POSIX_C_SOURCE-to-expose-popen-pclose.patch:
+ spell created
diff --git a/emulators/virtualxt/INSTALL b/emulators/virtualxt/INSTALL
new file mode 100755
index 0000000..b86ef78
--- /dev/null
+++ b/emulators/virtualxt/INSTALL
@@ -0,0 +1,4 @@
+install -vDm555 -t "$INSTALL_ROOT"/usr/bin \
+ build/bin/virtualxt
+install -vDm555 -t "$INSTALL_ROOT"/usr/lib \
+ build/bin/libvxt.so
diff --git a/emulators/virtualxt/PRE_BUILD b/emulators/virtualxt/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/emulators/virtualxt/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git
a/emulators/virtualxt/patches/0001-Define-_POSIX_C_SOURCE-to-expose-popen-pclose.patch

b/emulators/virtualxt/patches/0001-Define-_POSIX_C_SOURCE-to-expose-popen-pclose.patch
new file mode 100644
index 0000000..cb2573d
--- /dev/null
+++
b/emulators/virtualxt/patches/0001-Define-_POSIX_C_SOURCE-to-expose-popen-pclose.patch
@@ -0,0 +1,27 @@
+From 3120ed5e8a744ea018ad57ea538d3b7aead46b7a Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT iodev.co.uk>
+Date: Fri, 12 Apr 2024 17:47:34 +0200
+Subject: [PATCH] Define _POSIX_C_SOURCE to expose popen/pclose
+
+Origin: Source Mage
+Upstream-Status: Pending
+Signed-off-by: Ismael Luceno <ismael AT iodev.co.uk>
+---
+ front/sdl/main.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/front/sdl/main.c b/front/sdl/main.c
+index 8f088aa09e55..0faacad1efb0 100644
+--- a/front/sdl/main.c
++++ b/front/sdl/main.c
+@@ -21,6 +21,7 @@
+ //
+ // 3. This notice may not be removed or altered from any source
distribution.
+
++#define _POSIX_C_SOURCE 2
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdbool.h>
+--
+2.43.0
+


  • [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (56e88c06eddb7c3b3e941d23a132040fdfbadec9), Ismael Luceno, 06/12/2024

Archive powered by MHonArc 2.6.24.

Top of Page