mednafen: update to 1.24.1.

This commit is contained in:
Juan RP 2020-03-22 11:14:33 +01:00
parent 4ef2803a60
commit 929c5f2ab2
2 changed files with 4 additions and 42 deletions

View file

@ -1,25 +0,0 @@
This fixes arch detection on all ppc as well as some incorrect handling
of endianness on little endian ppc64.
--- configure.ac 2019-01-28 06:52:37.000000000 +0000
+++ configure.ac 2019-03-24 22:30:31.180000000 +0000
@@ -765,7 +765,7 @@
AM_CONDITIONAL(ARCH_X86_32, true)
;;
- powerpc)
+ powerpc*|ppc*)
AC_DEFINE([ARCH_POWERPC], [1], [Define if we are compiling for PPC architectures.])
AM_CONDITIONAL(ARCH_POWERPC, true)
--- src/snes/src/lib/nall/detect.hpp
+++ src/snes/src/lib/nall/detect.hpp
@@ -21,7 +21,7 @@
/* Endian detection */
-#if defined(__i386__) || defined(__amd64__) || defined(_M_IX86) || defined(_M_AMD64)
+#if defined(__i386__) || defined(__amd64__) || defined(_M_IX86) || defined(_M_AMD64) || defined(__LITTLE_ENDIAN__)
#define ARCH_LSB
#elif defined(__powerpc__) || defined(_M_PPC) || defined(__BIG_ENDIAN__)
#define ARCH_MSB

View file

@ -1,19 +1,19 @@
# Template file for 'mednafen'
pkgname=mednafen
version=1.22.2
revision=2
version=1.24.1
revision=1
wrksrc="$pkgname"
build_style=gnu-configure
configure_args="--with-libsndfile --enable-alsa $(vopt_enable altivec)
ac_cv_sizeof_off_t=8"
hostmakedepends="automake pkg-config libtool gettext-devel"
hostmakedepends="pkg-config libtool gettext-devel"
makedepends="libsndfile-devel glu-devel SDL2-devel zlib-devel"
short_desc="Portable, argument(command-line)-driven multi-system emulator"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://mednafen.github.io/"
distfiles="https://mednafen.github.io/releases/files/mednafen-${version}.tar.xz"
checksum=fad433ac694696d69ea38f6f4be1d0a6c1aa3609ec7f46ce75412be2f2df2f95
checksum=a47adf3faf4da66920bebb9436e28cbf87ff66324d0bb392033cbb478b675fe7
nopie=yes
build_options="altivec"
@ -23,16 +23,3 @@ case "$XBPS_TARGET_MACHINE" in
ppc64*) build_options_default="altivec";;
*) ;;
esac
pre_configure() {
# otherwise it tries to call aclocal-1.14 which we don't have
./autogen.sh
export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
export CXXFLAGS="$CXXFLAGS -D_FILE_OFFSET_BITS=64"
}
pre_build() {
# XXX not sure what's going on with those asserts.
sed -i '/assert/d' src/hash/sha{1,256}.cpp
}