mgba: update to 0.4.0.

This commit is contained in:
Juan RP 2016-02-07 07:00:06 +01:00
parent 9fcc1c9810
commit ee69410581
2 changed files with 15 additions and 18 deletions

View File

@ -1,17 +1,3 @@
--- src/platform/posix/threading.h.orig 2016-01-10 11:13:20.599813607 +0100
+++ src/platform/posix/threading.h 2016-01-10 11:14:20.503407791 +0100
@@ -82,8 +82,10 @@ static inline int ThreadSetName(const ch
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
pthread_set_name_np(pthread_self(), name);
return 0;
-#else
+#elif defined(__GLIBC__)
return pthread_setname_np(pthread_self(), name);
+#else
+ return 0;
#endif
}
--- src/gba/interface.h.orig 2016-01-10 11:17:39.121353660 +0100 --- src/gba/interface.h.orig 2016-01-10 11:17:39.121353660 +0100
+++ src/gba/interface.h 2016-01-10 11:17:50.208461559 +0100 +++ src/gba/interface.h 2016-01-10 11:17:50.208461559 +0100
@@ -6,6 +6,8 @@ @@ -6,6 +6,8 @@
@ -34,3 +20,14 @@
// This is a macro everywhere except MinGW and OpenBSD, it seems // This is a macro everywhere except MinGW and OpenBSD, it seems
using std::isnan; using std::isnan;
#endif #endif
--- src/platform/posix/threading.h.orig 2016-02-07 06:52:37.357857993 +0100
+++ src/platform/posix/threading.h 2016-02-07 06:53:21.030282483 +0100
@@ -86,7 +86,7 @@ static inline int ThreadSetName(const ch
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
pthread_set_name_np(pthread_self(), name);
return 0;
-#elif !defined(BUILD_PANDORA) // Pandora's glibc is too old
+#elif defined(__GLIBC__) // Pandora's glibc is too old
return pthread_setname_np(pthread_self(), name);
#else
UNUSED(name);

View File

@ -1,16 +1,16 @@
# Template file for 'mgba' # Template file for 'mgba'
pkgname=mgba pkgname=mgba
version=0.3.2 version=0.4.0
revision=2 revision=1
build_style=cmake build_style=cmake
hostmakedepends="cmake pkg-config" hostmakedepends="cmake pkg-config"
makedepends="ffmpeg-devel SDL2-devel MesaLib-devel zlib-devel libpng-devel libzip-devel libedit-devel libmagick-devel libzip-devel" makedepends="libepoxy-devel ffmpeg-devel SDL2-devel MesaLib-devel zlib-devel libpng-devel libzip-devel libedit-devel libmagick-devel libzip-devel"
short_desc="Game Boy Advance emulator written in C" short_desc="Game Boy Advance emulator written in C"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MPL-2" license="MPL-2"
homepage="https://ww.mgba.io/" homepage="https://ww.mgba.io/"
distfiles="https://github.com/mgba-emu/${pkgname}/archive/${version}.tar.gz" distfiles="https://github.com/mgba-emu/${pkgname}/archive/${version}.tar.gz"
checksum=119fae887df51b28adc807ffe264dfc0f4d872fdd75f60eb2855bd2662fd0b64 checksum=bec8cb17b366ed9a61ea41efe830716215dc8fa08706fc8cdebadfff723c0448
subpackages="libmgba" subpackages="libmgba"
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then