1 |
commit: ee06571bb3b9111c30cf168c6ac2a87a4134fb5f |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 3 19:32:14 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 3 19:40:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee06571b |
7 |
|
8 |
games-emulation/mupen64plus: Drop 1.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
games-emulation/mupen64plus/Manifest | 3 - |
13 |
.../files/README.gentoo-patches-20091123 | 55 --------- |
14 |
.../files/README.gentoo-patches-20100507 | 59 --------- |
15 |
.../files/ftbfs-gvariant-type-conflicts.patch | 27 ---- |
16 |
.../mupen64plus/files/mupen64plus-1.5-gcc46.patch | 11 -- |
17 |
.../files/mupen64plus-1.5-libpng14.patch | 34 ----- |
18 |
.../files/mupen64plus-1.5-minizip.patch | 35 ------ |
19 |
.../mupen64plus/mupen64plus-1.5-r1.ebuild | 129 ------------------- |
20 |
.../mupen64plus/mupen64plus-1.5-r2.ebuild | 137 --------------------- |
21 |
9 files changed, 490 deletions(-) |
22 |
|
23 |
diff --git a/games-emulation/mupen64plus/Manifest b/games-emulation/mupen64plus/Manifest |
24 |
deleted file mode 100644 |
25 |
index bf3a3996592..00000000000 |
26 |
--- a/games-emulation/mupen64plus/Manifest |
27 |
+++ /dev/null |
28 |
@@ -1,3 +0,0 @@ |
29 |
-DIST Mupen64Plus-1-5-src.tar.gz 2348443 SHA256 58b2da6095ed8f3bcdcb5d7612bb0f1ba81cda1861ca784ef7e46991fd73cf3f SHA512 548be341e69eee543288a0a347ee117341847a032cc0a668a75ab7aaa881e876b6d143d2da9f8ec7580e4b1bbd2b36a3c8f99a0cb8c2301e4b03b593cdee5eb4 WHIRLPOOL fe5e63f07cc50676ef796a96d19e51eef38744f40e1626fd59471a65e530ac78109253ceb4f25cb9df2b4d33f4eecd47be1b9c7fa1a5d7a2304b98bdab0ef137 |
30 |
-DIST mupen64plus-1.5-patches-20091123.tar.bz2 25579 SHA256 b4bebb8105d7ca083b1e3d96d23dea9f2170703d53b0ea75e09b428e73e43187 SHA512 1fccfaed0d0a6d4bc3382a21b1529a173faa4fc718fd4dc6d94a850f5ad3788103041a202774c09f6db9a409b4de256a8b4a746f58860f13c8f69cc6243a9c3f WHIRLPOOL 5ed3fa14eb8a9c0b4fad71d70495125ebfe2313d23edf6155b7056fe9b583ceaeb860cf6b6df574caca315db54af786fda66871621bc1547f929f8f6e6161193 |
31 |
-DIST mupen64plus-1.5-patches-20100507.tar.bz2 33484 SHA256 372e437ab9d53eda23fd63cede33be38114efe527f239ef41b0c904fe208e2ce SHA512 f0265cbcc2e60bac906611a74bb7f5ea94a625d3abeee127fa105a308e9388258e2854ad91256fe14343f9b8837dfe43cb4eca16176a375f07c1259729045213 WHIRLPOOL c3fa3562bda7bd8a01fbc1644fbc7caa511bffec0efde7da479e40066bb8e31952bf98c718ab96b12211429835c458a9ab94c8fe8da540c301c83806e3bb1af1 |
32 |
|
33 |
diff --git a/games-emulation/mupen64plus/files/README.gentoo-patches-20091123 b/games-emulation/mupen64plus/files/README.gentoo-patches-20091123 |
34 |
deleted file mode 100644 |
35 |
index 96994d798b7..00000000000 |
36 |
--- a/games-emulation/mupen64plus/files/README.gentoo-patches-20091123 |
37 |
+++ /dev/null |
38 |
@@ -1,55 +0,0 @@ |
39 |
-All patches below 500 are from the Debian git repository (Nov 23 12:35 CET 2009): |
40 |
- |
41 |
-http://git.debian.org/?p=collab-maint/mupen64plus.git;a=tree;f=debian/patches;hb=master |
42 |
- |
43 |
-Patches included: |
44 |
-================= |
45 |
- |
46 |
-fix-desktop-file.patch |
47 |
-destdir.patch |
48 |
-dejavu-font.patch |
49 |
-as-needed.patch |
50 |
-system-libpng.patch |
51 |
-system-zlib.patch |
52 |
-system-libbz2.patch |
53 |
-remove-gln64.patch |
54 |
-remove-nondfsg-icons.patch |
55 |
-glide64-noasm.patch |
56 |
-rice-texturepack-crash.patch |
57 |
-rice-screenflickering.patch |
58 |
-static-binutils-libs.patch |
59 |
-fix-7z-subfolder.patch |
60 |
-ftbfs-dynarec.patch |
61 |
-ftbfs-kfreebsd.patch |
62 |
-ftbfs-debugger.patch |
63 |
-debian-archs.patch |
64 |
-ftbfs-glibc210.patch |
65 |
-version-string.patch |
66 |
-default-optimisations.patch |
67 |
-gtk-open-filter.patch |
68 |
-noexecstack.patch |
69 |
-fix_readpng.patch |
70 |
-jttl_fix_romclosed.patch |
71 |
-rice_nodebug.patch |
72 |
-interpreter_x86_fldcw.patch |
73 |
-correct_fpr32_mapping.patch |
74 |
-load_aidacrate.patch |
75 |
-load_vistatus.patch |
76 |
-fix_r0_override.patch |
77 |
-resume_on_start.patch |
78 |
-osd-pause-crash.patch |
79 |
-system-liblzma.patch |
80 |
-- system-liblzma got changed to work without the droped xdg-basedir.patch |
81 |
- |
82 |
-Patches excluded: |
83 |
-================= |
84 |
- |
85 |
-plugin-searchpath.patch |
86 |
-xdg-basedir.patch |
87 |
-- Because Gentoo uses different locations like /usr/games/lib(64) and /usr/share/games. |
88 |
- The usage of xdg patch location standards would ne nice though. |
89 |
- |
90 |
-A big thanks to all the authors of the patches. |
91 |
- |
92 |
-Have fun |
93 |
-Christian Birchinger <joker@g.o> |
94 |
|
95 |
diff --git a/games-emulation/mupen64plus/files/README.gentoo-patches-20100507 b/games-emulation/mupen64plus/files/README.gentoo-patches-20100507 |
96 |
deleted file mode 100644 |
97 |
index e6b857a07d4..00000000000 |
98 |
--- a/games-emulation/mupen64plus/files/README.gentoo-patches-20100507 |
99 |
+++ /dev/null |
100 |
@@ -1,59 +0,0 @@ |
101 |
-All patches below 500 are from the Debian git repository (May 07 2010): |
102 |
- |
103 |
-http://git.debian.org/?p=collab-maint/mupen64plus.git;a=tree;f=debian/patches;hb=master |
104 |
- |
105 |
-Patches included: |
106 |
-================= |
107 |
- |
108 |
-fix-desktop-file.patch |
109 |
-destdir.patch |
110 |
-- dejavu-font.patch adjusted the font path to the font location on Gentoo systems |
111 |
-as-needed.patch |
112 |
-system-libpng.patch |
113 |
-system-zlib.patch |
114 |
-system-libbz2.patch |
115 |
-remove-gln64.patch |
116 |
-remove-nondfsg-icons.patch |
117 |
-glide64-noasm.patch |
118 |
-rice-texturepack-crash.patch |
119 |
-rice-screenflickering.patch |
120 |
-static-binutils-libs.patch |
121 |
-fix-7z-subfolder.patch |
122 |
-ftbfs-dynarec.patch |
123 |
-ftbfs-kfreebsd.patch |
124 |
-ftbfs-debugger.patch |
125 |
-debian-archs.patch |
126 |
-ftbfs-glibc210.patch |
127 |
-version-string.patch |
128 |
-default-optimisations.patch |
129 |
-gtk-open-filter.patch |
130 |
-noexecstack.patch |
131 |
-fix_readpng.patch |
132 |
-jttl_fix_romclosed.patch |
133 |
-rice_nodebug.patch |
134 |
-interpreter_x86_fldcw.patch |
135 |
-correct_fpr32_mapping.patch |
136 |
-load_aidacrate.patch |
137 |
-load_vistatus.patch |
138 |
-fix_r0_override.patch |
139 |
-resume_on_start.patch |
140 |
-osd-pause-crash.patch |
141 |
-system-liblzma.patch |
142 |
-ftbfs-gvariant-type-conflicts.path |
143 |
-rsp_ucode2_reset.patch |
144 |
-rsp_hle_bigendian.patch |
145 |
-rice-crash-vendorstring.patch |
146 |
-- system-liblzma got changed to work without the droped xdg-basedir.patch |
147 |
- |
148 |
-Patches excluded: |
149 |
-================= |
150 |
- |
151 |
-plugin-searchpath.patch |
152 |
-xdg-basedir.patch |
153 |
-- Because Gentoo uses different locations like /usr/games/lib(64) and /usr/share/games. |
154 |
- The usage of xdg patch location standards would ne nice though. |
155 |
- |
156 |
-A big thanks to all the authors of the patches. |
157 |
- |
158 |
-Have fun |
159 |
-Christian Birchinger <joker@g.o> |
160 |
|
161 |
diff --git a/games-emulation/mupen64plus/files/ftbfs-gvariant-type-conflicts.patch b/games-emulation/mupen64plus/files/ftbfs-gvariant-type-conflicts.patch |
162 |
deleted file mode 100644 |
163 |
index e76da170728..00000000000 |
164 |
--- a/games-emulation/mupen64plus/files/ftbfs-gvariant-type-conflicts.patch |
165 |
+++ /dev/null |
166 |
@@ -1,27 +0,0 @@ |
167 |
-Description: Fix FTBFS due to glib gvariant type definitions |
168 |
-Forwarded: not-needed |
169 |
-Bug-Debian: http://bugs.debian.org/577329 |
170 |
-Author: Sven Eckelmann <sven.eckelmann@×××.de> |
171 |
- |
172 |
---- |
173 |
-diff --git a/rice_video/typedefs.h b/rice_video/typedefs.h |
174 |
-index 4cded542b06445f043fa1fabf77e4d20c9d52920..b7e16e9c4ba3248f9fed9762f79349c137ee2026 100644 |
175 |
---- a/rice_video/typedefs.h |
176 |
-+++ b/rice_video/typedefs.h |
177 |
-@@ -20,10 +20,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
178 |
- #ifndef _TYPEDEFS_H_ |
179 |
- #define _TYPEDEFS_H_ |
180 |
- |
181 |
--#define uchar unsigned char |
182 |
--#define uint16 unsigned short |
183 |
--#define uint32 unsigned int |
184 |
--#define uint64 unsigned long long |
185 |
-+#include <stdint.h> |
186 |
-+ |
187 |
-+typedef uint8_t uchar; |
188 |
-+typedef uint16_t uint16; |
189 |
-+typedef uint32_t uint32; |
190 |
-+typedef uint64_t uint64; |
191 |
- |
192 |
- typedef unsigned char uint8; |
193 |
- |
194 |
|
195 |
diff --git a/games-emulation/mupen64plus/files/mupen64plus-1.5-gcc46.patch b/games-emulation/mupen64plus/files/mupen64plus-1.5-gcc46.patch |
196 |
deleted file mode 100644 |
197 |
index 2608fcd32a7..00000000000 |
198 |
--- a/games-emulation/mupen64plus/files/mupen64plus-1.5-gcc46.patch |
199 |
+++ /dev/null |
200 |
@@ -1,11 +0,0 @@ |
201 |
---- pre.mk.old 2011-04-14 20:39:21.000000000 +0200 |
202 |
-+++ pre.mk 2011-04-14 20:39:57.000000000 +0200 |
203 |
-@@ -319,7 +319,7 @@ |
204 |
- # tweak flags for 32-bit build on 64-bit system |
205 |
- ifeq ($(ARCH), 64BITS_32) |
206 |
- CFLAGS += -m32 |
207 |
-- LDFLAGS += -m32 -m elf_i386 |
208 |
-+ LDFLAGS += -m32 -Wl,-m,elf_i386 |
209 |
- endif |
210 |
- endif |
211 |
- ifeq ($(CPU_ENDIANNESS), BIG) |
212 |
|
213 |
diff --git a/games-emulation/mupen64plus/files/mupen64plus-1.5-libpng14.patch b/games-emulation/mupen64plus/files/mupen64plus-1.5-libpng14.patch |
214 |
deleted file mode 100644 |
215 |
index 8d0b447fe96..00000000000 |
216 |
--- a/games-emulation/mupen64plus/files/mupen64plus-1.5-libpng14.patch |
217 |
+++ /dev/null |
218 |
@@ -1,34 +0,0 @@ |
219 |
-http://bugs.gentoo.org/show_bug.cgi?id=308753 |
220 |
- |
221 |
---- rice_video/liblinux/pngrw.c |
222 |
-+++ rice_video/liblinux/pngrw.c |
223 |
-@@ -136,9 +136,9 @@ |
224 |
- if (end_info != NULL) |
225 |
- png_destroy_read_struct((png_structp *) &png_ptr, (png_infop *) &info_ptr, (png_infop *) &end_info); |
226 |
- else if (info_ptr != NULL) |
227 |
-- png_destroy_read_struct((png_structp *) &png_ptr, (png_infop *) &info_ptr, png_infopp_NULL); |
228 |
-+ png_destroy_read_struct((png_structp *) &png_ptr, (png_infop *) &info_ptr, NULL); |
229 |
- else if (png_ptr != NULL) |
230 |
-- png_destroy_read_struct((png_structp *) &png_ptr, png_infopp_NULL, png_infopp_NULL); |
231 |
-+ png_destroy_read_struct((png_structp *) &png_ptr, NULL, NULL); |
232 |
- if (rows) |
233 |
- { |
234 |
- if (rows[0]) |
235 |
-@@ -162,7 +162,7 @@ |
236 |
- |
237 |
- /* check the signature */ |
238 |
- fread( signature, 1, 8, file ); |
239 |
-- if ( !png_check_sig( signature, 8 ) ) |
240 |
-+ if ( png_sig_cmp( signature, 0, 8 ) ) |
241 |
- longjmp( err_jmp, (int)errUnsupportedFileFormat ); |
242 |
- |
243 |
- /* create a pointer to the png read structure */ |
244 |
-@@ -199,7 +199,7 @@ |
245 |
- |
246 |
- /* extract the data we need to form the HBITMAP from the PNG header */ |
247 |
- png_get_IHDR( png_ptr, info_ptr, &Width, &Height, &BitDepth, &ColorType, |
248 |
-- &InterlaceType, int_p_NULL, int_p_NULL); |
249 |
-+ &InterlaceType, (int *) NULL, (int *) NULL); |
250 |
- |
251 |
- img->width = Width; |
252 |
- img->height = Height; |
253 |
|
254 |
diff --git a/games-emulation/mupen64plus/files/mupen64plus-1.5-minizip.patch b/games-emulation/mupen64plus/files/mupen64plus-1.5-minizip.patch |
255 |
deleted file mode 100644 |
256 |
index 9ed3d7a0b25..00000000000 |
257 |
--- a/games-emulation/mupen64plus/files/mupen64plus-1.5-minizip.patch |
258 |
+++ /dev/null |
259 |
@@ -1,35 +0,0 @@ |
260 |
-use minizip from system zlib |
261 |
- |
262 |
-https://bugs.gentoo.org/383845 |
263 |
- |
264 |
---- a/Makefile |
265 |
-+++ b/Makefile |
266 |
-@@ -101,8 +101,6 @@ |
267 |
- main/plugin.o \ |
268 |
- main/rom.o \ |
269 |
- main/savestates.o \ |
270 |
-- main/zip/ioapi.o \ |
271 |
-- main/zip/unzip.o \ |
272 |
- main/7zip/7zAlloc.o \ |
273 |
- main/7zip/7zBuffer.o \ |
274 |
- main/7zip/7zCrc.o \ |
275 |
-@@ -229,7 +227,7 @@ |
276 |
- # set primary objects and libraries for all outputs |
277 |
- ALL = mupen64plus $(PLUGINS) |
278 |
- OBJECTS = $(OBJ_CORE) $(OBJ_DYNAREC) $(OBJ_OPENGL) |
279 |
--LIBS = $(SDL_LIBS) $(LIBGL_LIBS) $(LZMA_LIBS) -lbz2 |
280 |
-+LIBS = $(SDL_LIBS) $(LIBGL_LIBS) $(LZMA_LIBS) -lbz2 -lminizip |
281 |
- STATIC_LIBS = |
282 |
- CFLAGS+= $(LZMA_FLAGS) |
283 |
- |
284 |
---- a/main/rom.c |
285 |
-+++ b/main/rom.c |
286 |
-@@ -27,7 +27,7 @@ |
287 |
- #include <limits.h> |
288 |
- #include <zlib.h> |
289 |
- |
290 |
--#include "zip/unzip.h" |
291 |
-+#include "minizip/unzip.h" |
292 |
- #include <bzlib.h> |
293 |
- #include <lzma.h> |
294 |
- #include "7zip/7zExtract.h" |
295 |
|
296 |
diff --git a/games-emulation/mupen64plus/mupen64plus-1.5-r1.ebuild b/games-emulation/mupen64plus/mupen64plus-1.5-r1.ebuild |
297 |
deleted file mode 100644 |
298 |
index cda3eb2b212..00000000000 |
299 |
--- a/games-emulation/mupen64plus/mupen64plus-1.5-r1.ebuild |
300 |
+++ /dev/null |
301 |
@@ -1,129 +0,0 @@ |
302 |
-# Copyright 1999-2015 Gentoo Foundation |
303 |
-# Distributed under the terms of the GNU General Public License v2 |
304 |
- |
305 |
-EAPI="2" |
306 |
- |
307 |
-inherit eutils flag-o-matic games |
308 |
- |
309 |
-MY_P="Mupen64Plus-${PV/./-}-src" |
310 |
- |
311 |
-PATCH_VERSION="20091123" |
312 |
- |
313 |
-DESCRIPTION="A fork of Mupen64 Nintendo 64 emulator" |
314 |
-HOMEPAGE="http://www.mupen64plus.org/" |
315 |
-SRC_URI="https://mupen64plus.googlecode.com/files/${MY_P}.tar.gz mirror://gentoo/${P}-patches-${PATCH_VERSION}.tar.bz2" |
316 |
- |
317 |
-LICENSE="GPL-2" |
318 |
-SLOT="0" |
319 |
-KEYWORDS="~amd64 ~x86" |
320 |
-IUSE="+gtk libsamplerate lirc qt4 cpu_flags_x86_sse" |
321 |
- |
322 |
-# GTK+ is currently required by plugins even if no GUI support is enabled |
323 |
-RDEPEND="virtual/opengl |
324 |
- media-libs/freetype:2 |
325 |
- media-libs/libpng |
326 |
- media-libs/libsdl |
327 |
- media-libs/sdl-ttf |
328 |
- sys-libs/zlib |
329 |
- x11-libs/gtk+:2 |
330 |
- libsamplerate? ( media-libs/libsamplerate ) |
331 |
- lirc? ( app-misc/lirc ) |
332 |
- qt4? ( dev-qt/qtgui:4 |
333 |
- dev-qt/qtcore:4 ) |
334 |
- app-arch/xz-utils" |
335 |
- |
336 |
-DEPEND="${RDEPEND} |
337 |
- dev-lang/yasm |
338 |
- virtual/pkgconfig" |
339 |
- |
340 |
-S="${WORKDIR}/${MY_P}" |
341 |
- |
342 |
-pkg_setup() { |
343 |
- if ! use gtk && ! use qt4; then |
344 |
- ewarn "Building ${PN} without any GUI! To get one, enable USE=gtk or USE=qt4." |
345 |
- elif use gtk && use qt4; then |
346 |
- ewarn "Only one GUI can be built, using GTK+ one." |
347 |
- fi |
348 |
- |
349 |
- games_pkg_setup |
350 |
-} |
351 |
- |
352 |
-src_prepare() { |
353 |
- EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ |
354 |
- epatch |
355 |
- |
356 |
- epatch "${FILESDIR}"/${P}-libpng14.patch |
357 |
- |
358 |
- # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577329 |
359 |
- epatch "${FILESDIR}"/ftbfs-gvariant-type-conflicts.patch |
360 |
- |
361 |
- sed -i \ |
362 |
- -e "s:/usr/local/share/mupen64plus:${GAMES_DATADIR}/mupen64plus:" \ |
363 |
- -e "s:%PUT_PLUGIN_PATH_HERE%:$(games_get_libdir)/${PN}/plugins/:" \ |
364 |
- main/main.c || die "sed failed" |
365 |
- |
366 |
- # Fix 010_all_fix-desktop-file.patch instead of using sed on the next major bump |
367 |
- sed -i \ |
368 |
- -e "s:^Icon=mupen64plus-large.xpm:Icon=mupen64plus:" \ |
369 |
- mupen64plus.desktop.in || die "sed failed" |
370 |
-} |
371 |
- |
372 |
-get_opts() { |
373 |
- if use amd64 || use x86 ; then |
374 |
- echo -n "CPU=X86 ARCH=64BITS$(use x86 && echo -n _32) " |
375 |
- fi |
376 |
- |
377 |
- use libsamplerate || echo -n "NO_RESAMP=1 " |
378 |
- use lirc && echo -n "LIRC=1 " |
379 |
- use cpu_flags_x86_sse || echo -n "NO_ASM=1 " |
380 |
- |
381 |
- echo -n GUI= |
382 |
- if use gtk; then |
383 |
- echo -n GTK2 |
384 |
- elif use qt4; then |
385 |
- echo -n QT4 |
386 |
- else |
387 |
- echo -n NONE |
388 |
- fi |
389 |
-} |
390 |
- |
391 |
-src_compile() { |
392 |
- use x86 && use cpu_flags_x86_sse && append-flags -fomit-frame-pointer |
393 |
- emake $(get_opts) DBGSYM=1 all || die "make failed" |
394 |
-} |
395 |
- |
396 |
-src_install() { |
397 |
- # These are: |
398 |
- # 1) prefix - not used really, printed only |
399 |
- # 2) SHAREDIR |
400 |
- # 3) BINDIR |
401 |
- # 4) 'LIBDIR' - where to put plugins in |
402 |
- # 5) 'MANDIR' - exact directory to put man file in |
403 |
- # 6) APPLICATIONSDIR - where to put .desktop in |
404 |
- |
405 |
- ./install.sh "${D}" \ |
406 |
- "${D}${GAMES_DATADIR}/${PN}" \ |
407 |
- "${D}${GAMES_BINDIR}" \ |
408 |
- "${D}$(games_get_libdir)/${PN}/plugins" \ |
409 |
- "${D}/usr/share/man/man1" \ |
410 |
- "${D}/usr/share/applications" \ |
411 |
- || or die "install.sh failed" |
412 |
- |
413 |
- # Copy icon into system-wide location |
414 |
- newicon icons/mupen64plus-large.png ${PN}.png || die "newicon failed" |
415 |
- |
416 |
- # 'Move' docs into correct dir |
417 |
- rm -r "${D}${GAMES_DATADIR}/${PN}/doc" |
418 |
- dodoc README RELEASE TODO doc/*.txt "${FILESDIR}/README.gentoo-patches-${PATCH_VERSION}" || die "dodoc failed" |
419 |
- |
420 |
- prepgamesdirs |
421 |
-} |
422 |
- |
423 |
-pkg_postinst() { |
424 |
- games_pkg_postinst |
425 |
- |
426 |
- if use lirc; then |
427 |
- elog "For lirc configuration see:" |
428 |
- elog "https://code.google.com/p/mupen64plus/wiki/LIRC" |
429 |
- fi |
430 |
-} |
431 |
|
432 |
diff --git a/games-emulation/mupen64plus/mupen64plus-1.5-r2.ebuild b/games-emulation/mupen64plus/mupen64plus-1.5-r2.ebuild |
433 |
deleted file mode 100644 |
434 |
index da9baaa2206..00000000000 |
435 |
--- a/games-emulation/mupen64plus/mupen64plus-1.5-r2.ebuild |
436 |
+++ /dev/null |
437 |
@@ -1,137 +0,0 @@ |
438 |
-# Copyright 1999-2015 Gentoo Foundation |
439 |
-# Distributed under the terms of the GNU General Public License v2 |
440 |
- |
441 |
-EAPI="2" |
442 |
- |
443 |
-inherit eutils flag-o-matic games toolchain-funcs |
444 |
- |
445 |
-MY_P="Mupen64Plus-${PV/./-}-src" |
446 |
- |
447 |
-PATCH_VERSION="20100507" |
448 |
- |
449 |
-DESCRIPTION="A fork of Mupen64 Nintendo 64 emulator" |
450 |
-HOMEPAGE="http://www.mupen64plus.org/" |
451 |
-SRC_URI="https://mupen64plus.googlecode.com/files/${MY_P}.tar.gz mirror://gentoo/${P}-patches-${PATCH_VERSION}.tar.bz2" |
452 |
- |
453 |
-LICENSE="GPL-2" |
454 |
-SLOT="0" |
455 |
-KEYWORDS="~amd64 ~x86" |
456 |
-IUSE="+gtk libsamplerate lirc qt4 cpu_flags_x86_sse" |
457 |
- |
458 |
-# GTK+ is currently required by plugins even if no GUI support is enabled |
459 |
-RDEPEND="virtual/opengl |
460 |
- media-libs/freetype:2 |
461 |
- media-libs/libpng |
462 |
- media-libs/libsdl |
463 |
- media-libs/sdl-ttf |
464 |
- media-fonts/dejavu |
465 |
- sys-libs/zlib[minizip] |
466 |
- x11-libs/gtk+:2 |
467 |
- libsamplerate? ( media-libs/libsamplerate ) |
468 |
- lirc? ( app-misc/lirc ) |
469 |
- qt4? ( dev-qt/qtgui:4 |
470 |
- dev-qt/qtcore:4 ) |
471 |
- app-arch/xz-utils" |
472 |
- |
473 |
-DEPEND="${RDEPEND} |
474 |
- dev-lang/yasm |
475 |
- virtual/pkgconfig" |
476 |
- |
477 |
-S="${WORKDIR}/${MY_P}" |
478 |
- |
479 |
-pkg_setup() { |
480 |
- if [[ ! $(tc-getCC) =~ gcc ]]; then |
481 |
- eerror |
482 |
- eerror "Compilers like clang and icc are not supported at this point" |
483 |
- eerror |
484 |
- die "You need gcc to build ${PN}" |
485 |
- fi |
486 |
- |
487 |
- if ! use gtk && ! use qt4; then |
488 |
- ewarn "Building ${PN} without any GUI! To get one, enable USE=gtk or USE=qt4." |
489 |
- elif use gtk && use qt4; then |
490 |
- ewarn "Only one GUI can be built, using GTK+ one." |
491 |
- fi |
492 |
- |
493 |
- games_pkg_setup |
494 |
-} |
495 |
- |
496 |
-src_prepare() { |
497 |
- EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ |
498 |
- epatch |
499 |
- |
500 |
- rm -rf main/zip |
501 |
- epatch "${FILESDIR}"/${P}-minizip.patch #383845 |
502 |
- |
503 |
- sed -i \ |
504 |
- -e "s:/usr/local/share/mupen64plus:${GAMES_DATADIR}/mupen64plus:" \ |
505 |
- -e "s:%PUT_PLUGIN_PATH_HERE%:$(games_get_libdir)/${PN}/plugins/:" \ |
506 |
- main/main.c || die "sed failed" |
507 |
- |
508 |
- # Fix 010_all_fix-desktop-file.patch instead of using sed on the next major bump |
509 |
- sed -i \ |
510 |
- -e "s:^Icon=mupen64plus-large.xpm:Icon=mupen64plus:" \ |
511 |
- mupen64plus.desktop.in || die "sed failed" |
512 |
- epatch "${FILESDIR}"/${P}-gcc46.patch |
513 |
-} |
514 |
- |
515 |
-get_opts() { |
516 |
- if use amd64 || use x86 ; then |
517 |
- echo -n "CPU=X86 ARCH=64BITS$(use x86 && echo -n _32) " |
518 |
- fi |
519 |
- |
520 |
- use libsamplerate || echo -n "NO_RESAMP=1 " |
521 |
- use lirc && echo -n "LIRC=1 " |
522 |
- use cpu_flags_x86_sse || echo -n "NO_ASM=1 " |
523 |
- |
524 |
- echo -n GUI= |
525 |
- if use gtk; then |
526 |
- echo -n GTK2 |
527 |
- elif use qt4; then |
528 |
- echo -n QT4 |
529 |
- else |
530 |
- echo -n NONE |
531 |
- fi |
532 |
-} |
533 |
- |
534 |
-src_compile() { |
535 |
- tc-export CC CXX |
536 |
- use x86 && use cpu_flags_x86_sse && append-flags -fomit-frame-pointer |
537 |
- emake $(get_opts) DBGSYM=1 CC="${CC}" CXX="${CXX}" LD="${CC}" all || die "make failed" |
538 |
-} |
539 |
- |
540 |
-src_install() { |
541 |
- # These are: |
542 |
- # 1) prefix - not used really, printed only |
543 |
- # 2) SHAREDIR |
544 |
- # 3) BINDIR |
545 |
- # 4) 'LIBDIR' - where to put plugins in |
546 |
- # 5) 'MANDIR' - exact directory to put man file in |
547 |
- # 6) APPLICATIONSDIR - where to put .desktop in |
548 |
- |
549 |
- ./install.sh "${D}" \ |
550 |
- "${D}${GAMES_DATADIR}/${PN}" \ |
551 |
- "${D}${GAMES_BINDIR}" \ |
552 |
- "${D}$(games_get_libdir)/${PN}/plugins" \ |
553 |
- "${D}/usr/share/man/man1" \ |
554 |
- "${D}/usr/share/applications" \ |
555 |
- || or die "install.sh failed" |
556 |
- |
557 |
- # Copy icon into system-wide location |
558 |
- newicon icons/mupen64plus-large.png ${PN}.png || die "newicon failed" |
559 |
- |
560 |
- # 'Move' docs into correct dir |
561 |
- rm -r "${D}${GAMES_DATADIR}/${PN}/doc" |
562 |
- dodoc README RELEASE TODO doc/*.txt "${FILESDIR}/README.gentoo-patches-${PATCH_VERSION}" || die "dodoc failed" |
563 |
- |
564 |
- prepgamesdirs |
565 |
-} |
566 |
- |
567 |
-pkg_postinst() { |
568 |
- games_pkg_postinst |
569 |
- |
570 |
- if use lirc; then |
571 |
- elog "For lirc configuration see:" |
572 |
- elog "https://code.google.com/p/mupen64plus/wiki/LIRC" |
573 |
- fi |
574 |
-} |