mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
Tested with https://github.com/llopis/amstrad-diagnostics. All tests I can run pass--I don't have all the keys needed for the keyboard test or a joystick, but it seems to work. The source file is the same, but the old SRC_URI is dead, thus the Manifest wasn't updated--the hashes match :) Signed-off-by: Vivian Heisz (demize) <demize@unstable.systems>
54 lines
1.1 KiB
Bash
54 lines
1.1 KiB
Bash
# Copyright 2019-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
WX_GTK_VER="3.2-gtk3"
|
|
|
|
inherit cmake desktop wxwidgets
|
|
|
|
DESCRIPTION="Amstrad CPC emulator"
|
|
HOMEPAGE="https://www.cpcwiki.eu/index.php/Arnold_(Emulator)"
|
|
SRC_URI="https://cpctech.cpcwiki.de/arnsrc.zip -> ${P}.zip"
|
|
|
|
S=${WORKDIR}/src
|
|
|
|
LICENSE="GPL-2 LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="inkz80"
|
|
|
|
RDEPEND="
|
|
media-libs/libsdl2
|
|
virtual/opengl
|
|
x11-libs/wxGTK:${WX_GTK_VER}[X]
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="app-arch/unzip"
|
|
|
|
src_prepare() {
|
|
setup-wxwidgets
|
|
sed -i "4421s:=.*$:=wxT(\"/usr/share/${PN}/\");:" arngui/arnguiApp.cpp || die
|
|
# Prevent running at 150%
|
|
sed -i '390s/20000/30000/' arngui/sdl2/SDL2PlatformSpecific.cpp || die
|
|
cmake_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
mycmakeargs=(
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
-DCMAKE_SKIP_RPATH=YES
|
|
-DZ80_VERSION="USE_$(usex inkz80 INK ARN)Z80"
|
|
-DSDL_VERSION="USE_SDL2"
|
|
)
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cd "${WORKDIR}"/exe/${CMAKE_BUILD_TYPE}/${PN} || die
|
|
doicon "${FILESDIR}"/${PN}.png
|
|
insinto /usr/share/${PN}/
|
|
dobin arnold
|
|
doins *.*
|
|
}
|