box86 and box64 git ebuilds (9999)
This commit is contained in:
parent
5cf60e5aaa
commit
d704b09c44
42
app-emulation/box64/box64-9999.ebuild
Normal file
42
app-emulation/box64/box64-9999.ebuild
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake git-r3 optfeature
|
||||
|
||||
DESCRIPTION="Linux Userspace x86_64 Emulator with a twist"
|
||||
HOMEPAGE="https://box86.org"
|
||||
EGIT_REPO_URI="https://github.com/ptitSeb/box64.git"
|
||||
#SRC_URI="https://github.com/ptitSeb/${PN}/archive/refs/heads/main.tar.gz -> ${P}.tar.gz"
|
||||
#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 aot)
|
||||
-DADLINK=ON
|
||||
)
|
||||
|
||||
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"
|
||||
}
|
40
app-emulation/box86/box86-9999.ebuild
Normal file
40
app-emulation/box86/box86-9999.ebuild
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake git-r3 optfeature flag-o-matic
|
||||
|
||||
DESCRIPTION="Linux Userspace x86 Emulator with a twist"
|
||||
HOMEPAGE="https://box86.org"
|
||||
EGIT_REPO_URI="https://github.com/ptitSeb/box86.git"
|
||||
#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)
|
||||
-DADLINK=ON
|
||||
)
|
||||
|
||||
use amd64 && mycmakeargs+=( -DLD80BITS=1 -DNOALIGN=1 )
|
||||
|
||||
#append-flags "-m32"
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "OpenGL for GLES devices" \
|
||||
"media-libs/gl4es"
|
||||
}
|
Loading…
Reference in a new issue