From 297577a3979238ca92eaf9d99abb5331e1034a76 Mon Sep 17 00:00:00 2001 From: Krul Ceter Date: Thu, 19 Jan 2023 00:57:43 +0300 Subject: [PATCH] mame: update to 0251. --- srcpkgs/mame/patches/musl-netlist.patch | 21 +++++++++++++++++---- srcpkgs/mame/patches/pulse-sound.patch | 12 ++++++++++++ srcpkgs/mame/template | 8 ++++---- 3 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/mame/patches/pulse-sound.patch diff --git a/srcpkgs/mame/patches/musl-netlist.patch b/srcpkgs/mame/patches/musl-netlist.patch index d87a967f806e..cb500ac7dce0 100644 --- a/srcpkgs/mame/patches/musl-netlist.patch +++ b/srcpkgs/mame/patches/musl-netlist.patch @@ -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 + #include + -#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 { + diff --git a/srcpkgs/mame/patches/pulse-sound.patch b/srcpkgs/mame/patches/pulse-sound.patch new file mode 100644 index 000000000000..f4774fefa5d3 --- /dev/null +++ b/srcpkgs/mame/patches/pulse-sound.patch @@ -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 + #include + #include ++#include + + #include + #include diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template index 93c5d5f74880..402aa08e17d3 100644 --- a/srcpkgs/mame/template +++ b/srcpkgs/mame/template @@ -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 " 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*)