mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
games-emulation/zsnes: add 2.3.2
The Makefile has some clang awareness now, so tried to drop the forced gcc and it "seems" fine. Not looked into dropping USE=custom-cflags yet, will give it more time. Possibly overlooked something, lot of things are getting changed around upstream and the diff is noisy. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST zsnes-2.2.3.tar.gz 1332451 BLAKE2B def6c74f63fc2bae0a7041306efc8cf7e35c24ca4c4a81ca51ff07b781ac7f990a23015ef8fc6af155c718a4ed67e2a37a91e1758e25c59a80a76918242b9334 SHA512 fb61d44fef6e80eb70c6c5e0658cce5fb2c365c96a2cb40c959b60672ef09665405f6fd0753ba95ff65ce3abab881bfe05c1a182e21da889710c41e12385b6b9
|
||||
DIST zsnes-2.3.0.tar.gz 2081330 BLAKE2B d919b123b9f83caf9ed916b4cfe9de90d91b5e28820b0a6d1286ba32814596230694017dbefee9fa8554003af38c7fd9bd6d0577576f587c56dfdf2d6ce3bb68 SHA512 0d1169ea6cb3248fc88af9e6b79285a451b5835d75b7a7ee0126e583e331f6ff12cc928aad0f15c630f73e21b9cbc1298af3472362c31af1277676cbdfbca9bb
|
||||
DIST zsnes-2.3.2.tar.gz 1439396 BLAKE2B 2d0eb4ab39be6a8d0c14c9726230bc72c2864564950250b16ba426bffaf30a0c3a1d66935747743306101db22336996bd46e3e8882970afbe48cd7bac389737f SHA512 253fa40ff40968e97c51074b97fc80169a8639c5af4a6556c2bf4304a25ce117021d4b5f456e6d1053448350e2374e519c040c11c845256923e481ccb5ac3461
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
inherit flag-o-matic python-any-r1 toolchain-funcs xdg
|
||||
|
||||
DESCRIPTION="Fork of the classic Super Nintendo emulator"
|
||||
HOMEPAGE="https://github.com/xyproto/zsnes/ https://www.zsnes.com/"
|
||||
SRC_URI="
|
||||
https://github.com/xyproto/zsnes/archive/refs/tags/${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ao custom-cflags pipewire"
|
||||
|
||||
RDEPEND="
|
||||
media-libs/libglvnd[X]
|
||||
media-libs/libpng:=
|
||||
media-libs/libsdl3[opengl]
|
||||
virtual/zlib:=
|
||||
ao? ( media-libs/libao )
|
||||
pipewire? ( media-video/pipewire:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
virtual/zlib:=
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.3.0-cc-quotes.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
# the old fragile ASM is gone, but the new C code is currently fragile too
|
||||
if use !custom-cflags; then
|
||||
strip-flags
|
||||
append-cppflags -U_FORTIFY_SOURCE # to disable =3, Makefile enables =2
|
||||
|
||||
# furthermore fails with -Werror=strict-aliasing+lto-type-mismatch
|
||||
# https://github.com/xyproto/zsnes/issues/59#issuecomment-5024118435
|
||||
append-cflags -fno-strict-aliasing
|
||||
filter-lto
|
||||
fi
|
||||
|
||||
tc-export CC PKG_CONFIG
|
||||
append-cflags ${CPPFLAGS}
|
||||
|
||||
ZSNES_MAKEARGS=(
|
||||
{ARCH,HOST_OS}=LINUX
|
||||
HOST_CPU="${CHOST%%-*}"
|
||||
OPT_FLAGS=
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
WITH_AO=$(usex ao)
|
||||
WITH_PIPEWIRE=$(usex pipewire)
|
||||
)
|
||||
|
||||
emake "${ZSNES_MAKEARGS[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${ZSNES_MAKEARGS[@]}" DESTDIR="${D}" install
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user