Monday, September 16, 2024

[maintainer update] emulators/minivmac: Add additional FLAVOR

? files/minivmac-model-128k.desktop
Index: Makefile
===================================================================
RCS file: /cvs/ports/emulators/minivmac/Makefile,v
retrieving revision 1.3
diff -u -p -u -r1.3 Makefile
--- Makefile 19 Aug 2024 22:55:46 -0000 1.3
+++ Makefile 16 Sep 2024 22:32:10 -0000
@@ -3,7 +3,7 @@ ONLY_FOR_ARCHS = i386 amd64 powerpc
COMMENT = early macintosh emulator

V = 36.04
-REVISION = 1
+REVISION = 2

DISTNAME = minivmac-${V}

@@ -34,13 +34,16 @@ SETUP_FLAGS-amd64 = -t ob64
SETUP_FLAGS-i386 = -t obsd
SETUP_FLAGS-powerpc = -t obsd -cpu ppc

-FLAVORS = ii
+FLAVORS = ii m128k
FLAVOR ?=

MODEL = -m Plus
.if ${FLAVOR:Mii}
MODEL = -m II
SUFFIX = -${FLAVOR}
+.elif ${FLAVOR:Mm128k}
+MODEL = -m 128K
+SUFFIX = -${FLAVOR}
.endif

FULLPKGNAME = minivmac${SUFFIX}-${V}
Index: files/minivmac-m128k.desktop
===================================================================
RCS file: files/minivmac-m128k.desktop
diff -N files/minivmac-m128k.desktop
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/minivmac-m128k.desktop 16 Sep 2024 22:32:10 -0000
@@ -0,0 +1,9 @@
+[Desktop Entry]
+GenericName=Macintosh Emulator
+Name=Mini vMac (128k)
+Comment=Early Macintosh emulator
+Exec=minivmac-m128k
+Terminal=false
+Type=Application
+Categories=Emulator;Graphics;
+Icon=/usr/local/share/pixmaps/minivmac-m128k.ico
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/emulators/minivmac/pkg/DESCR,v
retrieving revision 1.2
diff -u -p -u -r1.2 DESCR
--- pkg/DESCR 19 Aug 2024 22:55:46 -0000 1.2
+++ pkg/DESCR 16 Sep 2024 22:32:10 -0000
@@ -4,3 +4,4 @@ based on Motorola's 680x0 microprocessor
Flavors:
default - Emulate the Macintosh Plus ("minivmac" package)
ii - Emulate the Macintosh II ("minivmac-ii" package)
+ m128k - Emulate the Macintosh 128k ("minivmac-m128k" package)
Index: pkg/README
===================================================================
RCS file: /cvs/ports/emulators/minivmac/pkg/README,v
retrieving revision 1.3
diff -u -p -u -r1.3 README
--- pkg/README 19 Aug 2024 22:55:46 -0000 1.3
+++ pkg/README 16 Sep 2024 22:32:10 -0000
@@ -5,9 +5,14 @@
Mini vMac can emulate early Macintoshes. The Macintosh Plus (minivmac)
and the Macintosh II (minivmac-ii) are supported on OpenBSD.

-Mini vMac requires a correct ROM for the Mac model to emulate, named either
-"vMac.ROM" or "MacII.ROM". This can be in the current directory before
-executing the "minivmac" command.
+Mini vMac requires a correct ROM for the Mac model to emulate. It will
+look for the following filenames depending on the build:
+
+- vMac.ROM for minivmac
+- MacII.ROM for minivmac-ii
+- Mac128K.ROM for minivmac-m128k
+
+These need to be in the current directory before executing Mini vMac.

Mini vMac can boot an image file (such as an OS). This can be named
"disk1.dsk" and if placed in the current directory before executing
The standard downloads available for Mini vMac are Macintosh Plus,
Macintosh II, and the very first Macintosh: Macintosh 128K.

https://www.gryphel.com/c/minivmac/download.html

This patch adds a -m128k FLAVOR to match the builds that are available
on the website. (Ideally just -128k, but a FLAVOR cannot start with a
digit.)

To test, I downloaded a ROM in:

https://archive.org/details/mac_rom_archive_-_as_of_8-19-2011

Then I renamed the file Macintosh-128k.ROM to Mac128K.ROM because this
is the filename that Mini vMac looks for. Then I ran the flavor
"minivmac-m128k" in the same directory as the ROM.

After that, I got a system disk from:

https://archive.org/details/brit-mac-system

Then dragged-and-dropped it into the Mini vMac window. Things seem to
work including sound.

I also updated the README and DESC to document the additional FLAVOR.

Thank you!

--
he/him
jagtalon.net
weirder.earth/@jag

No comments:

Post a Comment