Set e.g., 800x600 with 60fps or fullscreen and it works!
Needs
sudo sysctl security.bsd.map_at_zero=1
#!/bin/sh | |
# This is a shell archive | |
echo x sheepshaver | |
mkdir -p sheepshaver > /dev/null 2>&1 | |
echo x sheepshaver/files | |
mkdir -p sheepshaver/files > /dev/null 2>&1 | |
echo x sheepshaver/ppc.log | |
test -e "sheepshaver/ppc.log" || :> "sheepshaver/ppc.log" | |
echo x sheepshaver/Makefile | |
sed 's/^X//' > sheepshaver/Makefile << 'SHAR_END' | |
X# $FreeBSD$ | |
X | |
XPORTNAME= sheepshaver | |
XDISTVERSION= master | |
XCATEGORIES= emulators | |
X | |
XMAINTAINER= probono@puredarwin.org | |
XCOMMENT= Run-time environment that allows you to run classic MacOS applications | |
X | |
XLICENSE= GPLv2 | |
XLICENSE_FILE= ${WRKSRC}/../../COPYING | |
X | |
XUSES= shebangfix gmake | |
XUSE_AUTOTOOLS= aclocal automake | |
XSHEBANG_GLOB= *.sh automake configure tunconfig | |
XSHEBANG_LANG= bash | |
Xbash_CMD= ${LOCALBASE}/bin/bash | |
X | |
XGNU_CONFIGURE= yes | |
XCONFIGURE_SHELL= bash | |
XCONFIGURE_ARGS= --enable-sdl-video --enable-standalone-gui | |
X | |
XLIB_DEPENDS= libstdc++.so:lang/gcc9 | |
XLIB_DEPENDS+=libfontconfig.so:x11-fonts/fontconfig | |
XLIB_DEPENDS+=libfreetype.so:print/freetype2 | |
XLIB_DEPENDS+=libfontconfig.so:x11-fonts/fontconfig | |
XLIB_DEPENDS+=libfreetype.so:print/freetype2 | |
XUSE_GNOME+=atk | |
XUSE_GNOME+=cairo | |
XUSE_GNOME+=gdkpixbuf2 | |
XUSE_GNOME+=glib20 | |
XUSE_GNOME+=gtk20 | |
XUSE_GNOME+=pango | |
XUSE_XORG+=ice | |
XUSE_XORG+=sm | |
XUSE_XORG+=x11 | |
XUSE_XORG+=xext | |
XUSE_XORG+=xxf86dga | |
XUSE_XORG+=xxf86vm | |
XUSES+=gettext-runtime | |
X | |
XUSE_SDL+=sdl | |
X | |
XUSE_GITHUB= yes | |
XGH_ACCOUNT= cebix | |
XGH_PROJECT= macemu | |
XGH_TAGNAME= 4671258 | |
X | |
XWRKSRC_SUBDIR=SheepShaver/src/Unix | |
XPATCH_WRKSRC= ${WRKSRC}/../../../ | |
X | |
X# https://lists.freebsd.org/pipermail/freebsd-ports/2016-October/105560.html | |
X | |
XPLIST_FILES= share/SheepShaver/keycodes \ | |
X share/SheepShaver/tunconfig \ | |
X bin/SheepShaver \ | |
X bin/SheepShaverGUI \ | |
X man/man1/SheepShaver.1.gz | |
X | |
Xpre-configure: | |
X (cd ${WRKSRC} && NO_CONFIGURE=1 ${LOCALBASE}/bin/bash ./autogen.sh) | |
X | |
X.include <bsd.port.mk> | |
SHAR_END | |
echo x sheepshaver/distinfo | |
sed 's/^X//' > sheepshaver/distinfo << 'SHAR_END' | |
XTIMESTAMP = 1617554782 | |
XSHA256 (cebix-macemu-master-4671258_GH0.tar.gz) = d229bdf87e6debd94d4414ce847e35390158fbd9d02b03c842f6967f0873301c | |
XSIZE (cebix-macemu-master-4671258_GH0.tar.gz) = 2849106 | |
SHAR_END | |
echo x sheepshaver/pkg-descr | |
sed 's/^X//' > sheepshaver/pkg-descr << 'SHAR_END' | |
XSheepShaver is a MacOS run-time environment that allows you to run classic MacOS | |
Xapplications. This means that both native and MacOS applications can run at the | |
Xsame time (usually in a window on the desktop) and data can be exchanged between | |
Xthem. | |
X : | |
XIf you are using a PowerPC-based system, applications will run at native speed | |
X(i.e. with no emulation involved). There is also a built-in PowerPC emulator for | |
Xnon-PowerPC systems. | |
X | |
XWWW: http://sheepshaver.cebix.net/ | |
SHAR_END | |
echo x sheepshaver/files/patch-SheepShaver_src_timer.cpp | |
sed 's/^X//' > sheepshaver/files/patch-SheepShaver_src_timer.cpp << 'SHAR_END' | |
X--- SheepShaver/src/timer.cpp.orig 2021-04-04 16:37:26 UTC | |
X+++ SheepShaver/src/timer.cpp | |
X@@ -293,7 +293,7 @@ void TimerExit(void) | |
X { | |
X #if PRECISE_TIMING | |
X // Quit timer thread | |
X- if (timer_thread > 0) { | |
X+ if (timer_thread > (void *)0) { | |
X #ifdef PRECISE_TIMING_BEOS | |
X status_t l; | |
X thread_active = false; | |
SHAR_END | |
exit |