Skip to content
Snippets Groups Projects
Commit 9a8f3688 authored by Mike Sullivan's avatar Mike Sullivan Committed by Natanael Copa
Browse files

testing/advancemame: on ppc64le fix build error with unsupported float128

parent ffde8140
No related branches found
No related tags found
No related merge requests found
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=advancemame
pkgver=3.8
pkgrel=0
pkgrel=1
pkgdesc="A port of the MAME emulator for Arcade Monitors and TVs but also for LCDs and PC monitors"
url="http://www.advancemame.it"
arch="all"
......@@ -9,7 +9,8 @@ license="GPL"
makedepends="clang-dev sdl2-dev alsa-lib-dev freetype-dev zlib-dev expat-dev
slang-dev linux-headers"
subpackages="$pkgname-doc $pkgname-data::noarch $pkgname-mess $pkgname-menu"
source="https://github.com/amadvance/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
source="https://github.com/amadvance/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz
fix-ppc64le-float128.patch"
options="!check"
prepare() {
......@@ -63,4 +64,5 @@ menu() {
mv "$pkgdir"/usr/bin/advmenu "$subpkgdir"/usr/bin/
}
sha512sums="82a2366add559cdb1bcb681e7e45c5a383ab6a6364881a2d63f8239c2fcb6a0e6f7e17e58929e85ee1f55516e8a0df8d492214574127567958af22145f5c6f59 advancemame-3.8.tar.gz"
sha512sums="82a2366add559cdb1bcb681e7e45c5a383ab6a6364881a2d63f8239c2fcb6a0e6f7e17e58929e85ee1f55516e8a0df8d492214574127567958af22145f5c6f59 advancemame-3.8.tar.gz
d42a9b3c65c2d96be5287c7541eb1e911562b3f2aaf07c55c1849725592857716ce496405e3da2243edcbd4b7307226306533ddf66ef2e081b4c492412930d1b fix-ppc64le-float128.patch"
--- a/advance/d2/d2.cc
+++ b/advance/d2/d2.cc
@@ -21,6 +21,9 @@
#include <string>
#include <iostream>
#include <sstream>
+#if defined(__PPC64__)
+#define __STRICT_ANSI__
+#endif
#include <cstdlib>
#include <cstdio>
--- a/advance/lib/portable.h
+++ b/advance/lib/portable.h
@@ -67,6 +67,9 @@
/* Include some standard headers */
#include <stdio.h>
+#if defined(__PPC64__)
+#define __STRICT_ANSI__
+#endif
#include <stdlib.h> /* On many systems (e.g., Darwin), `stdio.h' is a prerequisite. */
#include <stdarg.h>
#include <string.h>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment