diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2015-05-13 01:11:13 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2015-05-13 01:11:13 +0000 |
commit | 1a2b7ab59c5dc4bb386ecde1b869ba61aa6b8dd8 (patch) | |
tree | 8e6fdbc91ba14b7b1c0deb8dfa22d0a8fa805f7b /games-emulation/mednafen | |
parent | update notation of bugs filed upstream (diff) | |
download | gentoo-2-1a2b7ab59c5dc4bb386ecde1b869ba61aa6b8dd8.tar.gz gentoo-2-1a2b7ab59c5dc4bb386ecde1b869ba61aa6b8dd8.tar.bz2 gentoo-2-1a2b7ab59c5dc4bb386ecde1b869ba61aa6b8dd8.zip |
version bump
(Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-emulation/mednafen')
5 files changed, 147 insertions, 1 deletions
diff --git a/games-emulation/mednafen/ChangeLog b/games-emulation/mednafen/ChangeLog index b688f17914aa..1da3fa214ee5 100644 --- a/games-emulation/mednafen/ChangeLog +++ b/games-emulation/mednafen/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for games-emulation/mednafen # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/ChangeLog,v 1.56 2015/04/27 06:49:14 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/ChangeLog,v 1.57 2015/05/13 01:11:13 mr_bones_ Exp $ + +*mednafen-0.9.38.4 (13 May 2015) + + 13 May 2015; Michael Sterrett <mr_bones_@gentoo.org> + +files/mednafen-0.9.38.4-automake-1.13.patch, + +files/mednafen-0.9.38.4-cflags.patch, +files/mednafen-0.9.38.4-zlib.patch, + +mednafen-0.9.38.4.ebuild: + version bump 27 Apr 2015; Michael Sterrett <mr_bones_@gentoo.org> mednafen-0.9.38.1.ebuild, metadata.xml: diff --git a/games-emulation/mednafen/files/mednafen-0.9.38.4-automake-1.13.patch b/games-emulation/mednafen/files/mednafen-0.9.38.4-automake-1.13.patch new file mode 100644 index 000000000000..14c69d94ef0e --- /dev/null +++ b/games-emulation/mednafen/files/mednafen-0.9.38.4-automake-1.13.patch @@ -0,0 +1,11 @@ +--- mednafen-0.9.28-wip/mednafen/configure.ac ++++ mednafen-0.9.28-wip/mednafen/configure.ac +@@ -13,7 +13,7 @@ + AC_CANONICAL_TARGET + AM_INIT_AUTOMAKE([mednafen], $MEDNAFEN_VERSION) + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) +-AM_CONFIG_HEADER([include/config.h:include/config.h.in]) ++AC_CONFIG_HEADERS([include/config.h:include/config.h.in]) + + AC_PROG_CC + AC_PROG_CPP diff --git a/games-emulation/mednafen/files/mednafen-0.9.38.4-cflags.patch b/games-emulation/mednafen/files/mednafen-0.9.38.4-cflags.patch new file mode 100644 index 000000000000..c43af818b6b8 --- /dev/null +++ b/games-emulation/mednafen/files/mednafen-0.9.38.4-cflags.patch @@ -0,0 +1,28 @@ +--- configure.ac.orig ++++ configure.ac +@@ -80,25 +80,6 @@ + AC_CHECK_LIB([z], [zlibVersion],[], AC_MSG_ERROR([*** zlib not found!])) + LIBS="$LIBS -lz" + +-OPTIMIZER_FLAGS="" +- +-dnl -ffast-math removed January 12, 2013. Don't re-add it, nor any of its sub-options(ESPECIALLY not -funsafe-math-optimizations), +-dnl it messes up certain code(NES resampler, for example) under certain conditions and alignments of the great celestial squid. +-dnl +-dnl In fact, let's explicitly disable it here with -fno-fast-math. +-dnl +-dnl -fomit-frame-pointer is required for some x86 inline assembly to compile. +-dnl +-dnl November 28, 2014: Use -fwrapv unconditionally instead of -fno-strict-overflow, -fno-strict-overflow is buggy +-dnl and does not work as documented/implied. +-dnl +-AX_CFLAGS_GCC_OPTION([-fno-fast-math], OPTIMIZER_FLAGS) +-AX_CFLAGS_GCC_OPTION([-fno-unsafe-math-optimizations], OPTIMIZER_FLAGS) +-AX_CFLAGS_GCC_OPTION([-fno-aggressive-loop-optimizations], OPTIMIZER_FLAGS) +-AX_CFLAGS_GCC_OPTION([-fomit-frame-pointer], OPTIMIZER_FLAGS) +-AX_CFLAGS_GCC_OPTION([-fwrapv], OPTIMIZER_FLAGS) +- +- + WARNING_FLAGS="" + AX_CFLAGS_GCC_OPTION([-Wall], WARNING_FLAGS) + AX_CFLAGS_GCC_OPTION([-Wshadow], WARNING_FLAGS) diff --git a/games-emulation/mednafen/files/mednafen-0.9.38.4-zlib.patch b/games-emulation/mednafen/files/mednafen-0.9.38.4-zlib.patch new file mode 100644 index 000000000000..5d930dae1b2c --- /dev/null +++ b/games-emulation/mednafen/files/mednafen-0.9.38.4-zlib.patch @@ -0,0 +1,27 @@ +--- mednafen.orig/src/compress/Makefile.am.inc ++++ mednafen/src/compress/Makefile.am.inc +@@ -1 +1 @@ +-mednafen_SOURCES += compress/minilzo.c compress/ioapi.c compress/unzip.c compress/GZFileStream.cpp compress/ZLInflateFilter.cpp ++mednafen_SOURCES += compress/minilzo.c compress/ioapi.c compress/GZFileStream.cpp compress/ZLInflateFilter.cpp +--- mednafen.orig/src/file.cpp ++++ mednafen/src/file.cpp +@@ -29,7 +29,7 @@ + #include <errno.h> + #include <trio/trio.h> + +-#include "compress/unzip.h" ++#include <minizip/unzip.h> + + #include "file.h" + #include "general.h" +--- mednafen.orig/src/Makefile.am ++++ mednafen/src/Makefile.am +@@ -6,7 +6,7 @@ + bin_PROGRAMS = mednafen + + mednafen_SOURCES = debug.cpp error.cpp mempatcher.cpp settings.cpp endian.cpp mednafen.cpp git.cpp file.cpp general.cpp memory.cpp netplay.cpp state.cpp state_rewind.cpp movie.cpp player.cpp PSFLoader.cpp tests.cpp qtrecord.cpp Stream.cpp MemoryStream.cpp FileStream.cpp IPSPatcher.cpp +-mednafen_LDADD = trio/libtrio.a ++mednafen_LDADD = trio/libtrio.a -lminizip + mednafen_DEPENDENCIES = trio/libtrio.a + + if HAVE_SDL diff --git a/games-emulation/mednafen/mednafen-0.9.38.4.ebuild b/games-emulation/mednafen/mednafen-0.9.38.4.ebuild new file mode 100644 index 000000000000..b9133a5a53a4 --- /dev/null +++ b/games-emulation/mednafen/mednafen-0.9.38.4.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/mednafen-0.9.38.4.ebuild,v 1.1 2015/05/13 01:11:13 mr_bones_ Exp $ + +EAPI=5 +inherit autotools eutils flag-o-matic pax-utils games + +DESCRIPTION="An advanced NES, GB/GBC/GBA, TurboGrafx 16/CD, NGPC and Lynx emulator" +HOMEPAGE="http://mednafen.sourceforge.net/" +SRC_URI="mirror://sourceforge/mednafen/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="alsa altivec cjk debugger jack nls pax_kernel" + +RDEPEND="virtual/opengl + media-libs/libsndfile + dev-libs/libcdio + media-libs/libsdl[sound,joystick,opengl,video] + media-libs/sdl-net + sys-libs/zlib[minizip] + alsa? ( media-libs/alsa-lib ) + jack? ( media-sound/jack-audio-connection-kit ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${PN} + +pkg_pretend() { + if has ccache ${FEATURES} ; then + ewarn + ewarn "If you experience build failure, try turning off ccache in FEATURES." + ewarn + fi +} + +src_prepare() { + sed -i \ + -e 's:$(datadir)/locale:/usr/share/locale:' \ + $(find . -name Makefile.am) \ + intl/Makefile.in || die + epatch \ + "${FILESDIR}"/${P}-zlib.patch \ + "${FILESDIR}"/${P}-cflags.patch \ + "${FILESDIR}"/${P}-automake-1.13.patch + eautoreconf +} + +src_configure() { + # very sensitive code (bug #539992) + strip-flags + append-flags -fomit-frame-pointer -fwrapv + egamesconf \ + $(use_enable alsa) \ + $(use_enable altivec) \ + $(use_enable cjk cjk-fonts) \ + $(use_enable debugger) \ + $(use_enable jack) \ + $(use_enable nls) +} + +src_install() { + DOCS="Documentation/cheats.txt ChangeLog TODO" \ + default + if use pax_kernel; then + pax-mark m "${D}${GAMES_BINDIR}"/mednafen || die + fi + prepgamesdirs +} |