Mail archive
alpine-aports

[alpine-aports] [PATCH] main/libmad: fix build on mips*

From: alpine-mips-patches <info_at_mobile-stream.com>
Date: Mon, 26 Nov 2018 22:05:43 +0000

libmad uses the now unsupported inline asm constraint in the code
so switch mips* to generic high-precision version.

Keep pkgrel intact since other architectures are unaffected and
no previously built mips* apks exist.
---
 main/libmad/APKBUILD | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/main/libmad/APKBUILD b/main/libmad/APKBUILD
index d552568938..1f4248801f 100644
--- a/main/libmad/APKBUILD
+++ b/main/libmad/APKBUILD
_at_@ -30,10 +30,12 @@ prepare() {
 
 build() {
 	cd "$builddir"
+	case "$CARCH" in mips*) _enable_fpm_64bit="--enable-fpm=64bit";; esac
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
 		--prefix=/usr \
+		$_enable_fpm_64bit \
 		--enable-accuracy
 
 	make -j1
-- 
2.19.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Nov 26 2018 - 22:05:43 UTC