aboutsummaryrefslogtreecommitdiffstats
path: root/community/deadbeef/ppc64le.patch
diff options
context:
space:
mode:
authorBreno Leitao <breno.leitao@gmail.com>2017-04-07 22:30:22 +0000
committerBreno Leitao <breno.leitao@gmail.com>2017-04-07 22:32:42 +0000
commitc4fc46c7669fd80de4b09851a01df1b47eb83eb8 (patch)
tree828a3de6a29a5f4c239b805a9c1534c3b1a4b675 /community/deadbeef/ppc64le.patch
parent625aa15d09d4e3704ba949f7e86ea50b66cc1017 (diff)
downloadaports-c4fc46c7669fd80de4b09851a01df1b47eb83eb8.tar.bz2
aports-c4fc46c7669fd80de4b09851a01df1b47eb83eb8.tar.xz
community/deadbeef: Fix build on ppc64le
Currently deadbeef FTBFS on ppc64le due to two issues: 1) config.guess is outdated 2) deadbeef is not able to identify endianess on PPC machines. Fixing both of the issues to enable deadbeef to build on ppc64le.
Diffstat (limited to 'community/deadbeef/ppc64le.patch')
-rw-r--r--community/deadbeef/ppc64le.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/deadbeef/ppc64le.patch b/community/deadbeef/ppc64le.patch
new file mode 100644
index 0000000000..d8106c77a7
--- /dev/null
+++ b/community/deadbeef/ppc64le.patch
@@ -0,0 +1,25 @@
+Author: Breno Leitao <breno.leitao@gmail.com>
+Date: Fri Apr 7 22:00:01 2017 +0000
+
+ blargg_endian: Fails to build on non-x86 with musl
+
+ Currently blargg_endian fails to detect endiness on non-x86, as ppc64le,
+ when not using glibc.
+
+ In my case, I am using musl on ppc64le, and deadbeef fails to compile
+ because the endianess is not known.
+
+ This patch defines BLARGG_LITTLE_ENDIAN if the system is ppc64le.
+
+--- a/plugins/gme/game-music-emu-0.6pre/gme/blargg_endian.h
++++ b/plugins/gme/game-music-emu-0.6pre/gme/blargg_endian.h
+@@ -16,6 +16,9 @@
+ defined (__POWERPC__) || defined (__powerc)
+ #define BLARGG_CPU_POWERPC 1
+ #define BLARGG_CPU_RISC 1
++ #if defined(__LITTLE_ENDIAN__)
++ #define BLARGG_LITTLE_ENDIAN 1
++ #endif
+ #endif
+
+ // BLARGG_BIG_ENDIAN, BLARGG_LITTLE_ENDIAN: Determined automatically, otherwise only