1 |
commit: 2f67555306927d6bf6e93328a2be6c45d654842b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 19 16:44:48 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 19 16:45:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f675553 |
7 |
|
8 |
games-emulation/mednafen: add 1.29.0 |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
games-emulation/mednafen/Manifest | 1 + |
13 |
games-emulation/mednafen/mednafen-1.29.0.ebuild | 80 +++++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/games-emulation/mednafen/Manifest b/games-emulation/mednafen/Manifest |
17 |
index 5ef17b7c8d8c..03d23eaad428 100644 |
18 |
--- a/games-emulation/mednafen/Manifest |
19 |
+++ b/games-emulation/mednafen/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST mednafen-1.27.1.tar.xz 3363540 BLAKE2B f74c251300af2348db00d68ef2cd998bdf4d6fb06873e03e0027d836b5b1217901b1e2cf922877b1db4c278ba4cc2674e4875a17fff52a3b8be5a447670a6385 SHA512 f55d86baa8c77fc98aae63a38235eb64f64131f180c40ed1ac7cd2ad845230348fbba05643eb5e6af203e56c39c8011b632d2bcecbd2c9f2c19b2447f6b99e83 |
22 |
+DIST mednafen-1.29.0.tar.xz 3512784 BLAKE2B bea5ecfe00f97d1cf81eccfe4264d8fea666c9c8543449ca8c1e4e064f89a100f6bbe77b23d42d5d9c4a7e005792006d599852a201f1d95a756742bc58ecda81 SHA512 375f0fb4f12907faf56b4e9ecdc44c1655b0660a3773240fe3118f2b261e171479b8eb254299f899fc442b54041c941eab2a5f343aec559d9731c3e92cde0569 |
23 |
|
24 |
diff --git a/games-emulation/mednafen/mednafen-1.29.0.ebuild b/games-emulation/mednafen/mednafen-1.29.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..a57c4dde457d |
27 |
--- /dev/null |
28 |
+++ b/games-emulation/mednafen/mednafen-1.29.0.ebuild |
29 |
@@ -0,0 +1,80 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit autotools flag-o-matic pax-utils toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="Argument-driven multi-system emulator utilizing OpenGL and SDL" |
38 |
+HOMEPAGE="https://mednafen.github.io/" |
39 |
+SRC_URI="https://mednafen.github.io/releases/files/${P}.tar.xz" |
40 |
+S="${WORKDIR}/${PN}" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="alsa cpu_flags_ppc_altivec flac jack" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ app-arch/zstd:= |
49 |
+ dev-libs/lzo:2 |
50 |
+ dev-libs/trio |
51 |
+ media-libs/libsdl2[joystick,opengl,video] |
52 |
+ media-libs/tremor |
53 |
+ media-sound/musepack-tools |
54 |
+ sys-libs/zlib:=[minizip] |
55 |
+ virtual/libintl |
56 |
+ alsa? ( media-libs/alsa-lib ) |
57 |
+ flac? ( media-libs/flac ) |
58 |
+ jack? ( virtual/jack )" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+BDEPEND=" |
61 |
+ sys-devel/gettext |
62 |
+ virtual/pkgconfig" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ |
67 |
+ # don't let the build system mess with CFLAGS more than necessary, |
68 |
+ # most are questionable (see README.PORTING/configure.ac comments) |
69 |
+ # -fwrapv: kept for bug #539992 |
70 |
+ sed -e '/CC_OPT.*CODEGEN_FLAGS/{/-fwrapv/!d}' \ |
71 |
+ -e '/CC_OPT.*NOPICPIE_FLAGS/d' \ |
72 |
+ -e '/CC_OPT.*NO_STACK_PROTECTOR_FLAGS/d' \ |
73 |
+ -e '/CC_OPT.*OPTIMIZER_FLAGS/c\:' \ |
74 |
+ -e '/CC_OPT.*-mtune.*SS_EXTRA_FLAGS/d' \ |
75 |
+ -e '/LINK_FLAG.*NOPICPIE_LDFLAGS/d' \ |
76 |
+ -i configure.ac || die |
77 |
+ eautoreconf |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ # disable unnecessary warnings not to confuse users (see src/types.h) |
82 |
+ append-cppflags -DMDFN_DISABLE_{NO_OPT,PICPIE}_ERRWARN |
83 |
+ |
84 |
+ local myeconfargs=( |
85 |
+ $(use_enable alsa) |
86 |
+ $(use_enable cpu_flags_ppc_altivec altivec) |
87 |
+ $(use_enable jack) |
88 |
+ $(use_with flac libflac) |
89 |
+ --with-external-{libzstd,lzo,mpcdec,tremor,trio} |
90 |
+ ) |
91 |
+ |
92 |
+ econf "${myeconfargs[@]}" |
93 |
+} |
94 |
+ |
95 |
+src_compile() { |
96 |
+ emake AR="$(tc-getAR)" |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ local DOCS=( |
101 |
+ ChangeLog |
102 |
+ Documentation/{cheats.txt,fname_format.txt,modules.def,settings.def} |
103 |
+ ) |
104 |
+ local HTML_DOCS=( Documentation/*.{css,html,png} ) |
105 |
+ |
106 |
+ default |
107 |
+ |
108 |
+ pax-mark m "${ED}"/usr/bin/mednafen |
109 |
+} |