distribution/packages/compat/box64/package.mk
fewtarius 96a7e11962
* Update emulators and cores, Linux firmware, and ES.
* Fix issue with fan control on AYANEO Air and Air Pro.
2023-06-27 21:09:15 +00:00

32 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2023-present Fewtarius
PKG_NAME="box64"
PKG_VERSION="dc0ab611c46502f115dc68c5d924f4834511216a"
PKG_ARCH="aarch64"
PKG_LICENSE="MIT"
PKG_SITE="https://github.com/ptitSeb/box64"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain gl4es ncurses SDL_sound"
PKG_LONGDESC="Box64 lets you run x86_64 Linux programs (such as games) on non-x86_64 Linux systems, like ARM."
PKG_TOOLCHAIN="cmake"
PKG_CMAKE_OPTS_TARGET+=" -DCMAKE_BUILD_TYPE=Release"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/share/box64/lib
cp ${PKG_BUILD}/x64lib/* ${INSTALL}/usr/share/box64/lib
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/.${TARGET_NAME}/box64 ${INSTALL}/usr/bin
cp ${PKG_BUILD}/tests/bash ${INSTALL}/usr/bin/bash-x64
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
mkdir -p ${INSTALL}/etc/binfmt.d
cp -f ${PKG_DIR}/config/box64.conf ${INSTALL}/etc/binfmt.d/box64.conf
}