Add minivmac standalone. (no integration)

This commit is contained in:
fewtarius 2022-11-14 07:45:09 -05:00
parent fc3c530fd8
commit cb528202b8
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
3 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,28 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2020-present Fewtarius
PKG_NAME="minivmacsa"
PKG_VERSION="37.03"
PKG_ARCH="any"
PKG_LICENSE="GPLv2"
PKG_SITE="https://www.gryphel.com/c/minivmac/"
PKG_URL="https://www.gryphel.com/d/minivmac/${PKG_NAME}-${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.src.tgz"
PKG_DEPENDS_TARGET="toolchain libX11"
PKG_PRIORITY="optional"
PKG_SECTION="emulators"
PKG_SHORTDESC="Virtual Macintosh Plus"
PKG_TOOLCHAIN="manual"
make_target() {
cd ${PKG_BUILD}
gcc setup/tool.c -o setup_t
./setup_t -t lx64 -emm 0 -fullscreen 1 > setup.sh
. setup.sh
make
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/minivmac ${INSTALL}/usr/bin
chmod 0755 ${INSTALL}/usr/bin/*
}

View file

@ -0,0 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present - Fewtarius
. /etc/profile
ARG=${1//[\\]/}
export SDL_AUDIODRIVER=alsa
echo "[${ARG}]"
${FAST_CORES} minivmac

View file

@ -44,6 +44,6 @@ case "${DEVICE}" in
PKG_DEPENDS_TARGET+=" duckstationsa common-shaders glsl-shaders"
;;
handheld)
PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa dolphin pcsx2sa pcsx2 desmume bsnes citra slang-shaders"
PKG_DEPENDS_TARGET+=" duckstationsa dolphinsa dolphin pcsx2sa pcsx2 desmume bsnes citra slang-shaders minivmac minivmacsa"
;;
esac