amazing thank you for testing! i'm glad that it works well on powerpc. does it run at acceptable speeds?
i updated the port to reflect your recommendations thank you! i also took this opportunity to create a minivmac desktop entry so that users can select it in the menu and simply drag-and-drop the ROM and the dsk. let me know what you think! On 7/2/24 12:20 AM, George Koehler wrote: > On Sun, 30 Jun 2024 13:34:33 -0400 > Jag Talon <jag@aangat.lahat.computer> wrote: > >> successfully got it to build on powerpc by enabling the -cpu option in >> the Makefile. unfortunately i'm not able to test it out because i'm not >> able to run any graphics on it so i'd appreciate anyone who has a >> powerpc to try it out! :) > > Hi, your port of minivmac works on my powerpc. > > You might want ${V} in SITES = .../minivmac-${V}/ > > portcheck(1) found 2 issues with your port. > > 1. There are $OpenBSD$ lines in patches/. You can delete them, > we stopped putting $OpenBSD$ in ports. > 2. The port Makefile has a long line, more than 80 characters. > > You can use backslash \ in make(1) to continue long lines. I would > also use && to tell sh(1) to stop if a command fails, like > > do-gen: > cd ${WRKSRC} && \ > cc setup/tool.c -o setup_t && \ > ./setup_t -t ${SETUP_TARGET} -cpu ${SETUP_CPU} > gen && \ > sh ./gen > > Might not need "chmod" before "sh ./gen". > > make(1) can expand ${MACHINE_ARCH} in variable names; you might be > able to simplify the arch logic like > > SETUP_FLAGS-amd64 = -t ob64 > SETUP_FLAGS-i386 = -t obsd > SETUP_FLAGS-powerpc = -t obsd -cpu ppc > > and run "./setup_t ${SETUP_FLAGS-${MACHINE_ARCH}}". If someone wants > to add another arch, a -cpu list is in > https://www.gryphel.com/c/minivmac/develop.html > > This port ignores CFLAGS and uses cc -Os. I would not change this; > patching -Os to CFLAGS looks too difficult. > > My powerpc is a Mac PowerBook G4 from 2004, which is now emulating a > Mac Plus from 1986. I spent a few hours on my amd64 to learn minivmac > and prepare some disk images. (My amd64 has Firefox, which can run > another Mac emulator, Infinite Mac. I used Mac OS 7.6 in Infinite Mac > to extract 2 .sea.bin files and to convert 1 archive from StuffIt > .sit to Compact Pro .cpt; the old StuffIt Expander 4.0.1 in my > minivmac can't read newer .sit but can read .cpt.) I then copied a > Mac game (disk1.dsk + vMac.ROM) to my powerpc. I used thunar on > amd64 and PathFinder (pkg_add fox) on powerpc to drag files into > minivmac. I used unzip (pkg_add unzip) for .zip files. > > --gkoehler > -- jagtalon.net weirder.earth/@jag