Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions srcpkgs/mame/patches/musl-netlist.patch
Original file line number Diff line number Diff line change
@@ -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 {

12 changes: 12 additions & 0 deletions srcpkgs/mame/patches/pulse-sound.patch
Original file line number Diff line number Diff line change
@@ -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>
8 changes: 4 additions & 4 deletions srcpkgs/mame/template
Original file line number Diff line number Diff line change
@@ -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*)
Expand Down