1 |
commit: 034d92a3e81929c519de809645eac16dd388fe2b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 15 08:52:02 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 15 09:51:14 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=034d92a3 |
7 |
|
8 |
games-emulation/mupen64plus-input-sdl: Bump to 2.5.9 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
games-emulation/mupen64plus-input-sdl/Manifest | 1 + |
13 |
.../mupen64plus-input-sdl-2.5.9.ebuild | 76 ++++++++++++++++++++++ |
14 |
2 files changed, 77 insertions(+) |
15 |
|
16 |
diff --git a/games-emulation/mupen64plus-input-sdl/Manifest b/games-emulation/mupen64plus-input-sdl/Manifest |
17 |
index 4d1537dd799..6718157a50a 100644 |
18 |
--- a/games-emulation/mupen64plus-input-sdl/Manifest |
19 |
+++ b/games-emulation/mupen64plus-input-sdl/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST mupen64plus-input-sdl-src-2.5.9.tar.gz 56403 BLAKE2B 56d6c390783aa4a7f25f72a5295eb11f1ca2a69f2ffe4f0232d4a0c329e9c0eba0a2cbf46e66adfdf0462d2ec5337f7c6c4587ae29de346cd4cfe1d240f4d5fd SHA512 b613396ee05e82aaaf15e955f83b5cb4e854df1fdb34d5e1c96cf0fddf0af79aa5af2ceb19cc9cfeaef707c2ecafd25e0814e3d7715a20b740482d0ece273f2f |
22 |
DIST mupen64plus-input-sdl-src-2.5.tar.gz 50580 BLAKE2B ab75c6e200c2979c75d35082a426266e7f835e0731058f8013d8788802ab9d65363b8820326fbfedc0b384facfaeccf6e04da66e01f79aee3d420f3ebe385461 SHA512 014a5e21feb88b14bcee44a74556a257393b799745308421a611eb3b6c11a390a589fdd393f07e69a128ca60426d4dcf8847bcbabed77b0d570be282550148d6 |
23 |
|
24 |
diff --git a/games-emulation/mupen64plus-input-sdl/mupen64plus-input-sdl-2.5.9.ebuild b/games-emulation/mupen64plus-input-sdl/mupen64plus-input-sdl-2.5.9.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..3d9194e5df2 |
27 |
--- /dev/null |
28 |
+++ b/games-emulation/mupen64plus-input-sdl/mupen64plus-input-sdl-2.5.9.ebuild |
29 |
@@ -0,0 +1,76 @@ |
30 |
+# Copyright 1999-2019 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+MY_P=${PN}-src-${PV} |
36 |
+inherit toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="A fork of Mupen64 Nintendo 64 emulator, SDL input plugin" |
39 |
+HOMEPAGE="https://www.mupen64plus.org/" |
40 |
+SRC_URI="https://github.com/mupen64plus/${PN}/releases/download/${PV}/${MY_P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2+" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="" |
46 |
+ |
47 |
+RDEPEND=">=games-emulation/mupen64plus-core-${PV}:0= |
48 |
+ media-libs/libsdl2:0=[joystick]" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ virtual/pkgconfig" |
51 |
+ |
52 |
+S=${WORKDIR}/${MY_P} |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ # avoid implicitly appending CPU flags |
58 |
+ sed -i -e 's:-mmmx::g' -e 's:-msse::g' projects/unix/Makefile || die |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ MAKEARGS=( |
63 |
+ # Note: please keep this in sync in all of mupen64plus-* packages |
64 |
+ |
65 |
+ -C projects/unix |
66 |
+ |
67 |
+ # this basically means: GNU userspace |
68 |
+ UNAME=Linux |
69 |
+ |
70 |
+ # verbose output |
71 |
+ V=1 |
72 |
+ |
73 |
+ CROSS_COMPILE="${CHOST}-" |
74 |
+ CC="$(tc-getCC)" |
75 |
+ CXX="$(tc-getCXX)" |
76 |
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" |
77 |
+ # usual CFLAGS, CXXFLAGS and LDFLAGS are respected |
78 |
+ # so we can leave OPTFLAGS empty |
79 |
+ OPTFLAGS= |
80 |
+ |
81 |
+ # paths, some of them are used at compile time |
82 |
+ PREFIX=/usr |
83 |
+ LIBDIR=/usr/$(get_libdir) |
84 |
+ |
85 |
+ # disable unwanted magic |
86 |
+ LDCONFIG=: |
87 |
+ INSTALL_STRIP_FLAG= |
88 |
+ |
89 |
+ # Package-specific stuff |
90 |
+ |
91 |
+ # CROSS_COMPILE causes it to look for ${CHOST}-sdl2-config... |
92 |
+ SDL_CFLAGS="$($(tc-getPKG_CONFIG) --cflags sdl2)" |
93 |
+ SDL_LDLIBS="$($(tc-getPKG_CONFIG) --libs sdl2)" |
94 |
+ ) |
95 |
+ |
96 |
+ use amd64 && MAKEARGS+=( HOST_CPU=x86_64 ) |
97 |
+ use x86 && MAKEARGS+=( HOST_CPU=i386 ) |
98 |
+ |
99 |
+ emake "${MAKEARGS[@]}" all |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ emake "${MAKEARGS[@]}" DESTDIR="${D}" install |
104 |
+ dodoc AUTHORS README.md RELEASE |
105 |
+} |