Gentoo Archives: gentoo-commits

From: "Christian Birchinger (joker)" <joker@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-emulation/mupen64plus: mupen64plus-1.5.ebuild ChangeLog metadata.xml
Date: Fri, 28 Aug 2009 02:40:51
Message-Id: E1MgwDh-0002Wb-6a@stork.gentoo.org
1 joker 09/08/28 07:50:01
2
3 Added: mupen64plus-1.5.ebuild ChangeLog metadata.xml
4 Log:
5 Initial import.
6 (Portage version: 2.1.6.13/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 games-emulation/mupen64plus/mupen64plus-1.5.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/mupen64plus/mupen64plus-1.5.ebuild?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/mupen64plus/mupen64plus-1.5.ebuild?rev=1.1&content-type=text/plain
13
14 Index: mupen64plus-1.5.ebuild
15 ===================================================================
16 # Copyright 1999-2009 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/games-emulation/mupen64plus/mupen64plus-1.5.ebuild,v 1.1 2009/08/28 07:50:00 joker Exp $
19
20 EAPI="2"
21
22 inherit eutils flag-o-matic games
23
24 MY_P="Mupen64Plus-${PV/./-}-src"
25
26 DESCRIPTION="A fork of Mupen64 Nintendo 64 emulator"
27 HOMEPAGE="http://code.google.com/p/mupen64plus/"
28 SRC_URI="http://mupen64plus.googlecode.com/files/${MY_P}.tar.gz"
29
30 LICENSE="GPL-2"
31 SLOT="0"
32 KEYWORDS="~amd64"
33 IUSE="+gtk libsamplerate lirc qt4 sse"
34
35 # GTK+ is currently required by plugins even if no GUI support is enabled
36 RDEPEND="virtual/opengl
37 media-libs/freetype:2
38 media-libs/libpng
39 media-libs/libsdl
40 media-libs/sdl-ttf
41 sys-libs/zlib
42 x11-libs/gtk+:2
43 libsamplerate? ( media-libs/libsamplerate )
44 lirc? ( app-misc/lirc )
45 qt4? ( x11-libs/qt-gui:4
46 x11-libs/qt-core:4 )"
47
48 DEPEND="${RDEPEND}
49 dev-lang/yasm
50 dev-util/pkgconfig"
51
52 S="${WORKDIR}/${MY_P}"
53
54 pkg_setup() {
55 if ! use gtk && ! use qt4; then
56 ewarn "Building ${PN} without any GUI! To get one, enable USE=gtk or USE=qt4."
57 elif use gtk && use qt4; then
58 ewarn "Only one GUI can be built, using GTK+ one."
59 fi
60
61 games_pkg_setup
62 }
63
64 src_prepare() {
65 # unbundle bzip2
66 epatch "${FILESDIR}"/${P}-unbundle-bzip2.patch
67 # XXX: try to unbundle more?
68
69 # fix compilation with gcc4.4
70 epatch "${FILESDIR}"/${P}-glide64-gcc44.patch
71
72 # first prepare to replace plugin path
73 epatch "${FILESDIR}"/${P}-plugindir.patch
74
75 # disable stripping, don't replace CFLAGS
76 epatch "${FILESDIR}"/${P}-flags.patch
77
78 # and then do real path replace
79 sed -i \
80 -e "s:/usr/local/share/mupen64plus:${GAMES_DATADIR}/mupen64plus:" \
81 -e "s:%PUT_PLUGIN_PATH_HERE%:$(games_get_libdir)/${PN}/plugins/:" \
82 main/main.c || die "sed failed"
83
84 # replace absolute icon path with relative one
85 sed -i -e "s:^Icon=.*$:Icon=${PN}:" \
86 ${PN}.desktop.in || die "sed failed"
87 }
88
89 get_opts() {
90 use libsamplerate || echo -n "NO_RESAMP=1 "
91 use lirc && echo -n "LIRC=1 "
92 use sse || echo -n "NO_ASM=1 "
93
94 echo -n GUI=
95 if use gtk; then
96 echo -n GTK2
97 elif use qt4; then
98 echo -n QT4
99 else
100 echo -n NONE
101 fi
102 }
103
104 src_compile() {
105 emake $(get_opts) all || die "make failed"
106 }
107
108 src_install() {
109 # These are:
110 # 1) prefix - not used really, printed only
111 # 2) SHAREDIR
112 # 3) BINDIR
113 # 4) 'LIBDIR' - where to put plugins in
114 # 5) 'MANDIR' - exact directory to put man file in
115 # 6) APPLICATIONSDIR - where to put .desktop in
116
117 ./install.sh "${D}" \
118 "${D}${GAMES_DATADIR}/${PN}" \
119 "${D}${GAMES_BINDIR}" \
120 "${D}$(games_get_libdir)/${PN}/plugins" \
121 "${D}/usr/share/man/man1" \
122 "${D}/usr/share/applications" \
123 || or die "install.sh failed"
124
125 # Copy icon into system-wide location
126 newicon icons/mupen64plus-large.png ${PN}.png || die "newicon failed"
127
128 # 'Move' docs into correct dir
129 rm -r "${D}${GAMES_DATADIR}/${PN}/doc"
130 dodoc README RELEASE TODO doc/*.txt || die "dodoc failed"
131
132 prepgamesdirs
133 }
134
135 pkg_postinst() {
136 games_pkg_postinst
137
138 if use lirc; then
139 elog "For lirc configuration see:"
140 elog "http://code.google.com/p/mupen64plus/wiki/LIRC"
141 fi
142 }
143
144
145
146 1.1 games-emulation/mupen64plus/ChangeLog
147
148 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/mupen64plus/ChangeLog?rev=1.1&view=markup
149 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/mupen64plus/ChangeLog?rev=1.1&content-type=text/plain
150
151 Index: ChangeLog
152 ===================================================================
153 # ChangeLog for games-emulation/mupen64plus
154 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
155 # $Header: /var/cvsroot/gentoo-x86/games-emulation/mupen64plus/ChangeLog,v 1.1 2009/08/28 07:50:00 joker Exp $
156
157 *mupen64plus-1.5 (28 Aug 2009)
158
159 28 Aug 2009; Christian Birchinger <joker@g.o>
160 Initial import. Thanks alot to Michał Górny (sedzimir) <gentoo@××××××××××.pl>
161 and all the other contributors of this ebuild.
162
163 01 Aug 2009; Michał Górny (sedzimir) <gentoo@××××××××××.pl>
164 mupen64plus-1.5.ebuild, +files/mupen64plus-1.5-flags.patch:
165 Drop custom-cflags and add a patch to drop default CFLAGS/STRIP instead of
166 using sed. Thanks to Tommy[D] for suggestions.
167
168 27 Jul 2009; Michał Górny (sedzimir) <gentoo@××××××××××.pl>
169 +mupen64plus-1.5.ebuild, +files/mupen64plus-1.5-glide64-gcc44.patch,
170 +files/mupen64plus-1.5-plugindir.patch,
171 +files/mupen64plus-1.5-unbundle-bzip2.patch, +metadata.xml:
172 Ebuild for games-emulation/mupen64plus (bug #215426). Thanks to all Bugzilla
173 thread contributors.
174
175
176
177
178 1.1 games-emulation/mupen64plus/metadata.xml
179
180 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/mupen64plus/metadata.xml?rev=1.1&view=markup
181 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/mupen64plus/metadata.xml?rev=1.1&content-type=text/plain
182
183 Index: metadata.xml
184 ===================================================================
185 <?xml version="1.0" encoding="UTF-8"?>
186 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
187 <pkgmetadata>
188 <maintainer>
189 <email>joker@g.o</email>
190 <name>Christian Birchinger</name>
191 </maintainer>
192 <herd>games</herd>
193 <longdescription>
194 Mupen64Plus is a plugin-based N64 emulator for Linux which is capable of accurately playing many games.
195 Included are four MIPS R4300 CPU emulators, with dynamic recompilers for 32-bit x86 and 64-bit amd64 systems,
196 and necessary plugins for audio, graphical rendering (RDP), signal co-processor (RSP), and input.
197 There are 3 OpenGL video plugins included: glN64, RiceVideoLinux, and Glide64.
198 </longdescription>
199 </pkgmetadata>