mame: update to 0251.

This commit is contained in:
Krul Ceter 2023-01-19 00:57:43 +03:00 committed by Michael Aldridge
parent 756108b88e
commit 4392407288
3 changed files with 33 additions and 8 deletions

View File

@ -1,11 +1,24 @@
--- a/src/lib/netlist/plib/pexception.cpp 2017-01-24 23:44:30.000000000 +0100
+++ b/src/lib/netlist/plib/pexception.cpp 2017-01-25 06:48:09.658604647 +0100
@@ -10,7 +10,7 @@
#include "pexception.h"
#include "pfmtlog.h"
@@ -8,7 +8,7 @@
#include <cfloat>
#include <iostream>
-#if (defined(__x86_64__) || defined(__i386__)) && defined(__linux__)
+#if (defined(__x86_64__) || defined(__i386__)) && defined(__linux__) && defined(__GLIBC__)
#define HAS_FEENABLE_EXCEPT (1)
#else
#define HAS_FEENABLE_EXCEPT (0)
https://git.alpinelinux.org/aports/commit/testing/mame/fix-musl.patch?id=7f174f79c0ccd719a6592d356d1c8db82a426a00
--- a/src/lib/netlist/plib/ppmf.h
+++ b/src/lib/netlist/plib/ppmf.h
@@ -94,6 +94,7 @@
#ifndef PPMF_FORCE_TYPE
#define PPMF_FORCE_TYPE -1
#endif
+#include "stddef.h"
namespace plib {

View File

@ -0,0 +1,12 @@
https://git.alpinelinux.org/aports/commit/testing/mame/fix-musl.patch?id=0ca943c72056e9ce2cc8f26d9ca7797cf5d04575
--- a/src/osd/modules/sound/pulse_sound.cpp
+++ b/src/osd/modules/sound/pulse_sound.cpp
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <poll.h>
+#include <signal.h>
#include <thread>
#include <pulse/pulseaudio.h>

View File

@ -1,24 +1,24 @@
# Template file for 'mame'
pkgname=mame
version=0229
version=0251
revision=1
hostmakedepends="pkg-config python3 qt5-host-tools tar xz which"
makedepends="SDL2_ttf-devel fontconfig-devel glm libgomp-devel libjpeg-turbo-devel
lua-devel libutf8proc-devel libuv-devel portaudio-devel portmidi-devel
pugixml-devel rapidjson $(vopt_if qt 'qt5-devel')"
pugixml-devel rapidjson libXinerama-devel $(vopt_if qt 'qt5-devel')"
depends="liberation-fonts-ttf"
short_desc="Multiple Arcade Machine Emulator"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://mamedev.org"
distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz"
checksum=414921771ada0804a8c7f3540e33338e8495e16a3bca78a5a2b355abafa51e6a
checksum=6d97db4ebfb269b1eb0e530444495a50d3961d0a60bce13e11dc88bbebb2fbc1
nodebug=yes
replaces="sdlmame>=0 sdlmess>=0"
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3"
CXXFLAGS="$CFLAGS"
[ "$XBPS_TARGET_LIBC" = musl ] && CXXFLAGS+=" -DBX_CRT_MUSL=1"
[ "$XBPS_TARGET_LIBC" = "musl" ] && CXXFLAGS+=" -DBX_CRT_MUSL=1"
case "$XBPS_TARGET_MACHINE" in
ppc*)