summaryrefslogtreecommitdiff
path: root/games-emulation/mednafen
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-07 00:30:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-07 00:30:44 +0100
commitd749d42b2ef572969f0b7fb5016888f25cc28a8d (patch)
tree7bda27a6c2d0ccc2dd2aa94c6e603ef6d00f57a2 /games-emulation/mednafen
parent68a32bc9fda17e8a546c0bba9d113c4c4659f6bb (diff)
gentoo auto-resync : 07:04:2024 - 00:30:43
Diffstat (limited to 'games-emulation/mednafen')
-rw-r--r--games-emulation/mednafen/Manifest2
-rw-r--r--games-emulation/mednafen/mednafen-1.32.1.ebuild82
2 files changed, 84 insertions, 0 deletions
diff --git a/games-emulation/mednafen/Manifest b/games-emulation/mednafen/Manifest
index 2aa41f9b4f0a..376b51ec8b3a 100644
--- a/games-emulation/mednafen/Manifest
+++ b/games-emulation/mednafen/Manifest
@@ -1,3 +1,5 @@
DIST mednafen-1.29.0.tar.xz 3512784 BLAKE2B bea5ecfe00f97d1cf81eccfe4264d8fea666c9c8543449ca8c1e4e064f89a100f6bbe77b23d42d5d9c4a7e005792006d599852a201f1d95a756742bc58ecda81 SHA512 375f0fb4f12907faf56b4e9ecdc44c1655b0660a3773240fe3118f2b261e171479b8eb254299f899fc442b54041c941eab2a5f343aec559d9731c3e92cde0569
+DIST mednafen-1.32.1.tar.xz 3571236 BLAKE2B 1cbc184b180c51ebfbdc5e9979f1767a19c4125b0c0067f74f3b8800cccc4b04c577e4602143049e0a85628a8b50c9c69a52134838a15a9dd6d1ab293b5e5715 SHA512 5a99c62561823ba9a59d4dfd3b454f87989c83b873f61d8d25e44af7e8fbf25a7513d26c7566672538a62aac400281f611f2db943e88fe839cd05d088087f8d9
EBUILD mednafen-1.29.0-r1.ebuild 1925 BLAKE2B ca204b673f883843d95f760dc805518a3fe3e98a8c86d159729f4bbc7a485a5d8c92fca3ee7eef763046f2ca555b5f0b042e5183250b7fdf3869d15f567a9078 SHA512 db03f014a387674c55f4f0db15a0809de77ce11471e06a44b22d8fe79db09ca84e9ff48b448973b6bbe528477b50afd0fcdb3ebdda1f579f72a784bfe3ff9a6c
+EBUILD mednafen-1.32.1.ebuild 1980 BLAKE2B 2a50eec8c5d9c44d24ca3636222f34663418db40749b5753f0f8151f678891a6e3b91cc7b2f4f6e150c54a7e048f1ee37b77649f3f2670152d00a6164a424e94 SHA512 82c76f5138162076c50e4dc2f5c4ca1a764951255040bba415457f7c6f1794a24dcbb7d8d41af730a036521de7e6fb9bf3fd312c258e307415d79ee314ba7175
MISC metadata.xml 332 BLAKE2B 94c24607fd634ac943de538dd00b5511e4976e2eb9d1724dd4b7e9fff1508b146caac910eb5fab93ef2049e2dc95598d787d738b1613d59739a1772b3bd58f9e SHA512 6c80eda23e81013c2cc990aea57ad62d592a777d8afbf0f767bb1eef2efc13103b3917b14f9d080db67e8b5899de7882d8bf2adc568274dae1014fa6b94f27df
diff --git a/games-emulation/mednafen/mednafen-1.32.1.ebuild b/games-emulation/mednafen/mednafen-1.32.1.ebuild
new file mode 100644
index 000000000000..779c7413188c
--- /dev/null
+++ b/games-emulation/mednafen/mednafen-1.32.1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic pax-utils toolchain-funcs
+
+DESCRIPTION="Argument-driven multi-system emulator utilizing OpenGL and SDL"
+HOMEPAGE="https://mednafen.github.io/"
+SRC_URI="https://mednafen.github.io/releases/files/${P}.tar.xz"
+S=${WORKDIR}/${PN}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa cpu_flags_ppc_altivec flac jack"
+
+RDEPEND="
+ app-arch/zstd:=
+ dev-libs/lzo:2
+ dev-libs/trio
+ media-libs/libsdl2[joystick,opengl,video]
+ media-libs/tremor
+ media-sound/musepack-tools
+ sys-libs/zlib:=[minizip]
+ virtual/libintl
+ alsa? ( media-libs/alsa-lib )
+ flac? ( media-libs/flac:= )
+ jack? ( virtual/jack )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ default
+
+ # do not let the build system mess with *FLAGS more than necessary,
+ # most are questionable and leaving it up to users to pick
+ # (please report if any skipped flags cause runtime issues)
+ sed -e '/APPEND_COMPILE_.*CODEGEN_FLAGS/d' \
+ -e '/APPEND_COMPILE_.*NOPICPIE_FLAGS/d' \
+ -e '/APPEND_COMPILE_.*NO_STACK_PROTECTOR_FLAGS/d' \
+ -e '/APPEND_COMPILE_.*OPTIMIZER_FLAGS/c\:' \
+ -e '/APPEND_COMPILE_.*-mtune.*SS_EXTRA_FLAGS/d' \
+ -e '/LINK_FLAG.*NOPICPIE_LDFLAGS/d' \
+ -i configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ # disable unnecessary warnings not to confuse users (see src/types.h)
+ append-cppflags -DMDFN_DISABLE_{NO_OPT,PICPIE}_ERRWARN
+
+ local myeconfargs=(
+ $(use_enable alsa)
+ $(use_enable cpu_flags_ppc_altivec altivec)
+ $(use_enable jack)
+ $(use_with flac libflac)
+ --with-external-{libzstd,lzo,mpcdec,tremor,trio}
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ local DOCS=(
+ ChangeLog
+ Documentation/{cheats.txt,fname_format.txt,modules.def,settings.def}
+ )
+ local HTML_DOCS=( Documentation/*.{css,html,png} )
+
+ default
+
+ pax-mark m "${ED}"/usr/bin/mednafen
+}