Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/mupen64plus-audio-sdl/
Date: Sun, 15 Sep 2019 09:51:38
Message-Id: 1568541073.7c813772f741fe6030b61bcaa72cc5c317ee9ab2.mgorny@gentoo
1 commit: 7c813772f741fe6030b61bcaa72cc5c317ee9ab2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 15 08:46:58 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 15 09:51:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c813772
7
8 games-emulation/mupen64plus-audio-sdl: Bump to 2.5.9
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 games-emulation/mupen64plus-audio-sdl/Manifest | 1 +
13 .../mupen64plus-audio-sdl-2.5.9.ebuild | 84 ++++++++++++++++++++++
14 2 files changed, 85 insertions(+)
15
16 diff --git a/games-emulation/mupen64plus-audio-sdl/Manifest b/games-emulation/mupen64plus-audio-sdl/Manifest
17 index 079761aa8e6..aa7a496f84b 100644
18 --- a/games-emulation/mupen64plus-audio-sdl/Manifest
19 +++ b/games-emulation/mupen64plus-audio-sdl/Manifest
20 @@ -1 +1,2 @@
21 +DIST mupen64plus-audio-sdl-src-2.5.9.tar.gz 28884 BLAKE2B a32aeff100e86f610e3b514718c6a4a786c6f88911f8782dcbc9b8a2d238c31984e5d119e31533363d8f848bf840ff7350ba41dea70e716d50cce14f2398c836 SHA512 624f7061b4909a5de071fbb8cf6432fd4b6ad390ea3f7dc7ae7a874dc922afee55352e53d48fba43d45a3282e9382e6b5774814c2a7d9724e134a01188596ea9
22 DIST mupen64plus-audio-sdl-src-2.5.tar.gz 26147 BLAKE2B bcd0c76d1e4fffb55940889c329574760101177c7cc48bb6ea9a361be01515ec15261bf1254a8c605db2ebf8166d323b43620e8f7c978cc79603be3ad537a191 SHA512 0c63e16449c40f15abdeed968383a218ed9876a92b2c15cbeb6554b20008d6d12996c0fd3bc1c502084791596b8535340596e95a11fe5d27576342740e76db6a
23
24 diff --git a/games-emulation/mupen64plus-audio-sdl/mupen64plus-audio-sdl-2.5.9.ebuild b/games-emulation/mupen64plus-audio-sdl/mupen64plus-audio-sdl-2.5.9.ebuild
25 new file mode 100644
26 index 00000000000..5b2611dce5b
27 --- /dev/null
28 +++ b/games-emulation/mupen64plus-audio-sdl/mupen64plus-audio-sdl-2.5.9.ebuild
29 @@ -0,0 +1,84 @@
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 audio 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="libsamplerate oss speex"
46 +
47 +RDEPEND=">=games-emulation/mupen64plus-core-${PV}:0=
48 + media-libs/libsdl2:0=[sound]
49 + libsamplerate? ( media-libs/libsamplerate:0= )
50 + speex? ( media-libs/speex:0= )"
51 +DEPEND="${RDEPEND}
52 + virtual/pkgconfig"
53 +
54 +S=${WORKDIR}/${MY_P}
55 +
56 +src_prepare() {
57 + default
58 +
59 + # avoid implicitly appending CPU flags
60 + sed -i -e 's:-mmmx::g' -e 's:-msse::g' projects/unix/Makefile || die
61 +}
62 +
63 +src_compile() {
64 + MAKEARGS=(
65 + # Note: please keep this in sync in all of mupen64plus-* packages
66 +
67 + -C projects/unix
68 +
69 + # this basically means: GNU userspace
70 + UNAME=Linux
71 +
72 + # verbose output
73 + V=1
74 +
75 + CROSS_COMPILE="${CHOST}-"
76 + CC="$(tc-getCC)"
77 + CXX="$(tc-getCXX)"
78 + PKG_CONFIG="$(tc-getPKG_CONFIG)"
79 + # usual CFLAGS, CXXFLAGS and LDFLAGS are respected
80 + # so we can leave OPTFLAGS empty
81 + OPTFLAGS=
82 +
83 + # paths, some of them are used at compile time
84 + PREFIX=/usr
85 + LIBDIR=/usr/$(get_libdir)
86 +
87 + # disable unwanted magic
88 + LDCONFIG=:
89 + INSTALL_STRIP_FLAG=
90 +
91 + # Package-specific stuff
92 +
93 + # CROSS_COMPILE causes it to look for ${CHOST}-sdl2-config...
94 + SDL_CFLAGS="$($(tc-getPKG_CONFIG) --cflags sdl2)"
95 + SDL_LDLIBS="$($(tc-getPKG_CONFIG) --libs sdl2)"
96 +
97 + NO_SPEEX=$(usex speex 0 1)
98 + NO_SRC=$(usex libsamplerate 0 1)
99 + NO_OSS=$(usex oss 0 1)
100 + # not packaged (https://github.com/nemomobile/libaudioresource)
101 + USE_AUDIORESOURCE=0
102 + )
103 +
104 + use amd64 && MAKEARGS+=( HOST_CPU=x86_64 )
105 + use x86 && MAKEARGS+=( HOST_CPU=i386 )
106 +
107 + emake "${MAKEARGS[@]}" all
108 +}
109 +
110 +src_install() {
111 + emake "${MAKEARGS[@]}" DESTDIR="${D}" install
112 + dodoc RELEASE
113 +}