2023-03-03 17:12:24 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2023-present Fewtarius
|
|
|
|
|
|
|
|
PKG_NAME="box64"
|
* Update emulators, cores, and emulation support packages.
* box64, a5200-lr, atari800-lr, beetle-pce-fast-lr, beetle-pce-lr, beetle-psx-lr, bsnes-lr, package.mk, desmume-lr, dosbox-pure-lr, fbneo-lr, flycast-lr, genesis-plus-gx-lr, genesis-plus-gx-wide-lr, handy-lr, package.mk, mame-lr, mame2003-plus-lr, mupen64plus-nx-lr, opera-lr, pcsx_rearmed-lr, picodrive-lr, play-lr, ppsspp-lr, stella-lr, swanstation-lr, tic80-lr, cemu-sa, duckstation-sa, hatarisa, package.mk, ppsspp-sa, primehack, retroarch, scummvmsa, yuzu-sa, glsl-shaders, slang-shaders, and retroarch-joypads.
* Fix pipewire package oops.
2023-08-11 20:52:46 +00:00
|
|
|
PKG_VERSION="e8972efca192e988cdd72fc765ef001defe9a5a4"
|
2023-03-03 17:12:24 +00:00
|
|
|
PKG_ARCH="aarch64"
|
|
|
|
PKG_LICENSE="MIT"
|
|
|
|
PKG_SITE="https://github.com/ptitSeb/box64"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2023-06-29 20:10:01 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain ncurses SDL_sound"
|
2023-03-03 17:12:24 +00:00
|
|
|
PKG_LONGDESC="Box64 lets you run x86_64 Linux programs (such as games) on non-x86_64 Linux systems, like ARM."
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
|
2023-06-29 20:10:01 +00:00
|
|
|
if [ "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" gl4es"
|
|
|
|
fi
|
|
|
|
|
2023-03-03 17:12:24 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DCMAKE_BUILD_TYPE=Release"
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-03-03 22:04:52 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/share/box64/lib
|
|
|
|
cp ${PKG_BUILD}/x64lib/* ${INSTALL}/usr/share/box64/lib
|
|
|
|
|
2023-03-03 17:12:24 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_BUILD}/.${TARGET_NAME}/box64 ${INSTALL}/usr/bin
|
2023-03-03 17:35:29 +00:00
|
|
|
cp ${PKG_BUILD}/tests/bash ${INSTALL}/usr/bin/bash-x64
|
2023-03-03 17:12:24 +00:00
|
|
|
|
2023-03-05 17:09:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/config
|
|
|
|
cp ${PKG_DIR}/config/box64.box64rc ${INSTALL}/usr/config/box64.box64rc
|
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/etc
|
|
|
|
ln -sf /storage/.config/box64.box64rc ${INSTALL}/etc/box64.box64rc
|
|
|
|
|
2023-03-03 17:12:24 +00:00
|
|
|
mkdir -p ${INSTALL}/etc/binfmt.d
|
2023-03-05 16:12:48 +00:00
|
|
|
cp -f ${PKG_DIR}/config/box64.conf ${INSTALL}/etc/binfmt.d/box64.conf
|
2023-03-03 17:12:24 +00:00
|
|
|
}
|