pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

virtualxt: Import VirtualXT-0.9.0 as wip/virtualxt



Module Name:	pkgsrc-wip
Committed By:	Andreas T Jonsson <mail%andreasjonsson.se@localhost>
Pushed By:	phix
Date:		Tue Aug 22 14:51:18 2023 +0200
Changeset:	902c531a292654af8d20e59ba4dedd211f2f209b

Modified Files:
	Makefile
Added Files:
	virtualxt/DESCR
	virtualxt/Makefile
	virtualxt/PLIST
	virtualxt/distinfo
	virtualxt/files/virtualxt.freedos

Log Message:
virtualxt: Import VirtualXT-0.9.0 as wip/virtualxt

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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=902c531a292654af8d20e59ba4dedd211f2f209b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                          |  1 +
 virtualxt/DESCR                   | 21 +++++++++++++++++++
 virtualxt/Makefile                | 43 +++++++++++++++++++++++++++++++++++++++
 virtualxt/PLIST                   | 10 +++++++++
 virtualxt/distinfo                |  5 +++++
 virtualxt/files/virtualxt.freedos | 16 +++++++++++++++
 6 files changed, 96 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f2d474e174..52700b3d55 100644
--- a/Makefile
+++ b/Makefile
@@ -5674,6 +5674,7 @@ SUBDIR+=	virt-manager
 SUBDIR+=	virtualbox
 SUBDIR+=	virtualbox-svn
 SUBDIR+=	virtualjaguar-git
+SUBDIR+=	virtualxt
 SUBDIR+=	virus
 SUBDIR+=	vis
 SUBDIR+=	vis-editor
diff --git a/virtualxt/DESCR b/virtualxt/DESCR
new file mode 100644
index 0000000000..b0af92c51f
--- /dev/null
+++ b/virtualxt/DESCR
@@ -0,0 +1,21 @@
+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.
+
+Features:
+
+* Intel 8088 or NEC V20 CPU
+* Hardware CPU validator
+* CGA/HGC compatible graphics
+* GLaBIOS or Turbo XT BIOS 3.1 with extensions
+* Keyboard controller with 83-key XT-style keyboard
+* Serial port with Microsoft 2-button mouse
+* Floppy and hard disk controller
+* ISA passthrough using Arstech USB2ISA adapter
+* Direct file share with host
+* Flexible module system
+* Integerated GDB server
+* AdLib music synthesizer
+* EMS memory expansion
+* Ethernet adapter
diff --git a/virtualxt/Makefile b/virtualxt/Makefile
new file mode 100644
index 0000000000..014937d2ba
--- /dev/null
+++ b/virtualxt/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD$
+
+GITHUB_TAG=	refs/tags/v${PKGVERSION_NOREV}
+DISTNAME=	virtualxt-0.9
+CATEGORIES=	emulators
+MASTER_SITES=	${MASTER_SITE_GITHUB:=andreas-jonsson/}
+
+MAINTAINER=		mail%andreasjonsson.se@localhost
+HOMEPAGE=		https://virtualxt.org/
+COMMENT=		Portable, lightweight Turbo PC/XT emulator written in C
+LICENSE=		zlib
+
+USE_LANGUAGES=		c
+USE_CC_FEATURES=	c11
+
+TOOL_DEPENDS+=	premake5-5.0.*:../../devel/premake5
+USE_TOOLS+=	gmake
+
+INSTALLATION_DIRS=	bin share/virtualxt/bios share/virtualxt/boot
+BUILD_TARGET=		sdl2-frontend
+WRKSRC=			${WRKDIR}/${DISTNAME}
+
+post-extract:
+	${CP} ${FILESDIR}/virtualxt.freedos ${WRKSRC}
+
+pre-build:
+	cd ${WRKSRC} && premake5 --static --modules=-network gmake
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/build/bin/virtualxt ${DESTDIR}${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/virtualxt.freedos ${DESTDIR}${PREFIX}/bin
+
+	${INSTALL_DATA} ${WRKSRC}/bios/GLABIOS.ROM ${DESTDIR}${PREFIX}/share/virtualxt/bios
+	${INSTALL_DATA} ${WRKSRC}/bios/GLABIOS640.ROM ${DESTDIR}${PREFIX}/share/virtualxt/bios
+	${INSTALL_DATA} ${WRKSRC}/bios/pcxtbios.bin ${DESTDIR}${PREFIX}/share/virtualxt/bios
+	${INSTALL_DATA} ${WRKSRC}/bios/vxtx.bin ${DESTDIR}${PREFIX}/share/virtualxt/bios
+
+	${INSTALL_DATA} ${WRKSRC}/boot/freedos.img ${DESTDIR}${PREFIX}/share/virtualxt/boot
+	${INSTALL_DATA} ${WRKSRC}/boot/freedos_hd.img ${DESTDIR}${PREFIX}/share/virtualxt/boot
+	${INSTALL_DATA} ${WRKSRC}/boot/freedos_web_hd.img ${DESTDIR}${PREFIX}/share/virtualxt/boot
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/virtualxt/PLIST b/virtualxt/PLIST
new file mode 100644
index 0000000000..af29cbee0c
--- /dev/null
+++ b/virtualxt/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+bin/virtualxt
+bin/virtualxt.freedos
+share/virtualxt/bios/GLABIOS.ROM
+share/virtualxt/bios/GLABIOS640.ROM
+share/virtualxt/bios/pcxtbios.bin
+share/virtualxt/bios/vxtx.bin
+share/virtualxt/boot/freedos.img
+share/virtualxt/boot/freedos_hd.img
+share/virtualxt/boot/freedos_web_hd.img
diff --git a/virtualxt/distinfo b/virtualxt/distinfo
new file mode 100644
index 0000000000..86a549cb78
--- /dev/null
+++ b/virtualxt/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (virtualxt-0.9.tar.gz) = 219e3e0e1755adb1d55f6bed31fb9c3d543502c8ba0ead5cad208329b995331c
+SHA512 (virtualxt-0.9.tar.gz) = 2509e038dfb83291638dfddc6b5f74cd4cfe55cd48bc37225dbc0a608803ed917c7919cf3df0ba9125eb0bd2e836ec9d68e661dade32715d5a3a034ebe5647f6
+Size (virtualxt-0.9.tar.gz) = 92657477 bytes
diff --git a/virtualxt/files/virtualxt.freedos b/virtualxt/files/virtualxt.freedos
new file mode 100755
index 0000000000..a874aa4c3e
--- /dev/null
+++ b/virtualxt/files/virtualxt.freedos
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+HERE="$(cd "$(dirname "$0")" && pwd -P)"
+DATA=$HERE/../share/virtualxt
+
+mkdir -p $HOME/.virtualxt/boot
+if [ ! -f $HOME/.virtualxt/boot/freedos_hd.img ]; then
+    cp $DATA/boot/freedos_hd.img $HOME/.virtualxt/boot/
+fi
+
+export VXT_DEFAULT_MODULES_PATH=$DATA/modules
+export VXT_DEFAULT_BIOS_PATH=$DATA/bios/GLABIOS.ROM
+export VXT_DEFAULT_VXTX_BIOS_PATH=$DATA/bios/vxtx.bin
+export VXT_DEFAULT_HD_IMAGE=$HOME/.virtualxt/boot/freedos_hd.img
+
+exec "$HERE/virtualxt" "$@"


Home | Main Index | Thread Index | Old Index