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

From: alpine-mips-patches <[email-masked]>
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
@@ -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:  [email-masked]
Help:         [email-masked]
---