app-emulation/box86: new package, add 0.3.0

Signed-off-by: Richard-Rogalski <rrogalski@tutanota.com>
This commit is contained in:
Richard-Rogalski
2023-07-14 20:33:29 -05:00
parent f8032a02d2
commit f49b095e87
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake optfeature flag-o-matic
DESCRIPTION="Linux Userspace x86 Emulator with a twist"
HOMEPAGE="https://box86.org"
SRC_URI="https://github.com/ptitSeb/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~arm ~arm64"
IUSE="aot"
REQUIRED_USE="aot? ( || ( arm arm64 ) )" #depends on NEON, VFPv3, and non-thumb ABI, I see no good way to check
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_configure() {
local -a mycmakeargs=(
-DNOGIT=1
-DARM_DYNAREC=$(usex aot)
)
use amd64 && mycmakeargs+=( -DLD80BITS=1 -DNOALIGN=1 )
append-flags "-m32"
cmake_src_configure
}
pkg_postinst() {
optfeature "OpenGL for GLES devices" \
"media-libs/gl4es"
}