mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
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.
This commit is contained in:
parent
625aa15d09
commit
c4fc46c766
@ -16,10 +16,16 @@ makedepends="$depends_dev intltool gettext"
|
||||
install=""
|
||||
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc"
|
||||
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-$_ver.tar.bz2
|
||||
arm-buildfix.patch"
|
||||
arm-buildfix.patch
|
||||
ppc64le.patch"
|
||||
|
||||
builddir="${srcdir}/${pkgname}-$_ver"
|
||||
|
||||
prepare() {
|
||||
update_config_guess || return 1
|
||||
default_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
CXXFLAGS="$CXXFLAGS -std=gnu++98" \
|
||||
@ -35,9 +41,6 @@ package() {
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
}
|
||||
|
||||
md5sums="f8f5353e7c201fce316f8b082ab408bb deadbeef-0.7.2.tar.bz2
|
||||
825397a941417e31cb28e6fc9202c3cf arm-buildfix.patch"
|
||||
sha256sums="8a63abdf00c2f37c33e018ae0b39d391873e037434074b84bb47381bf283c884 deadbeef-0.7.2.tar.bz2
|
||||
87b671ce5a8c2d0ef98c270ae1005648a4ae3e1298b408eb937974664def6a27 arm-buildfix.patch"
|
||||
sha512sums="9ea61a3820d9d57f038b80652ce63bd87e6781259c0f58a93b70607b02e71debbf5598f4a06d607d3840a804c3b7fc5039a4c4b0a8bb01e8e5107bba3f0bd980 deadbeef-0.7.2.tar.bz2
|
||||
57e25e3478b5516f0ebc34fa561c619bdca4cdf7e9f6dc1d81317c972b10bd073a4a761dfc2327047fd56433e79ff57bf501c9cfe77079c450b46f5a0315555b arm-buildfix.patch"
|
||||
57e25e3478b5516f0ebc34fa561c619bdca4cdf7e9f6dc1d81317c972b10bd073a4a761dfc2327047fd56433e79ff57bf501c9cfe77079c450b46f5a0315555b arm-buildfix.patch
|
||||
682629f5b677df106083d7187a01a832b92c6474f5a0a2e66e9aac36248aeb8c136fe8b13469e319df08e3eac634330aa62a2dea73f58a524254a6b3d1e92e09 ppc64le.patch"
|
||||
|
25
community/deadbeef/ppc64le.patch
Normal file
25
community/deadbeef/ppc64le.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user