diff --git a/srcpkgs/mame/patches/musl-bgfx.patch b/srcpkgs/mame/patches/musl-bgfx.patch new file mode 100644 index 0000000000..93c2e3bc16 --- /dev/null +++ b/srcpkgs/mame/patches/musl-bgfx.patch @@ -0,0 +1,12 @@ +--- 3rdparty/bgfx/src/bgfx.cpp 2017-01-24 23:44:30.000000000 +0100 ++++ 3rdparty/bgfs/src/bgfx.cpp 2017-01-25 06:24:41.519845947 +0100 +@@ -4,6 +4,9 @@ + */ + + #include ++#if !defined(__GLIBC__) ++#include ++#endif + #if BX_PLATFORM_WINDOWS + // BK - Remotery needs WinSock, but on VS2015/Win10 build + // fails if WinSock2 is included after Windows.h?! diff --git a/srcpkgs/mame/patches/musl-netlist.patch b/srcpkgs/mame/patches/musl-netlist.patch new file mode 100644 index 0000000000..d109477341 --- /dev/null +++ b/srcpkgs/mame/patches/musl-netlist.patch @@ -0,0 +1,11 @@ +--- src/lib/netlist/plib/pexception.cpp 2017-01-24 23:44:30.000000000 +0100 ++++ src/lib/netlist/plib/pexception.cpp 2017-01-25 06:48:09.658604647 +0100 +@@ -10,7 +10,7 @@ + #include "pexception.h" + #include "pfmtlog.h" + +-#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) diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template index 264f78c7db..c7a1a64196 100644 --- a/srcpkgs/mame/template +++ b/srcpkgs/mame/template @@ -1,6 +1,6 @@ # Template file for 'mame' pkgname=mame -version=0181 +version=0182 revision=1 wrksrc="mame-mame${version}" homepage="http://mamedev.org" @@ -8,7 +8,7 @@ distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz" short_desc="The Multiple Arcade Machine Emulator" maintainer="Jürgen Buchmüller " license="GPL-2" -checksum=66a9d0ec3e31f82fea90956ed68a8bcd3369305f8d081781c463c0c06f7ab04d +checksum=9ecb35afaa6006ccf027f4dfc91ac818d3a894e6e4c3732b6f3706ee40ed240b hostmakedepends="perl pkg-config python automoc4" makedepends="libstdc++-devel SDL2_ttf-devel $(vopt_if qt qt5-devel) lua-devel @@ -21,7 +21,7 @@ case "$XBPS_TARGET_MACHINE" in i686*) nodebug=yes esac -CXXFLAGS="-std=c++14 -DUSE_INTERNAL_CBEGIN_CEND=1 -I${XBPS_CROSS_BASE}/usr/include/lua5.3" +CXXFLAGS="-std=c++14 -I${XBPS_CROSS_BASE}/usr/include/lua5.3" LDFLAGS="-Wl,-fuse-ld=gold" build_options="qt"