mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
app-emulation/box64: new package, add 0.2.2
Signed-off-by: Richard-Rogalski <rrogalski@tutanota.com>
This commit is contained in:
39
app-emulation/box64/box64-0.2.2.ebuild
Normal file
39
app-emulation/box64/box64-0.2.2.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake optfeature
|
||||
|
||||
DESCRIPTION="Linux Userspace x86_64 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="~arm64 ~ppc64"
|
||||
IUSE="aot"
|
||||
REQUIRED_USE="aot? ( arm64 )"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
src_configure() {
|
||||
local -a mycmakeargs=(
|
||||
-DNOGIT=1
|
||||
-DARM_DYNAREC=$(usex jit)
|
||||
)
|
||||
|
||||
use ppc64 && mycmakeargs+=( -DPPC64LE=1 )
|
||||
use riscv && mycmakeargs+=( -DRV64=1 )
|
||||
use loong && mycmakeargs+=( -DLARCH64=1 )
|
||||
use amd64 && mycmakeargs+=( -DLD80BITS=1 -DNOALIGN=1 )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "OpenGL for GLES devices" \
|
||||
"media-libs/gl4es"
|
||||
}
|
||||
Reference in New Issue
Block a user