Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id A05C6781A76 for ; Sat, 7 Sep 2019 20:47:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 58AD5265CB for ; Sat, 7 Sep 2019 22:47:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QE6W8KCjzvrB; Sat, 7 Sep 2019 22:47:08 +0200 (CEST) From: Bart Ribbers DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1567889227; bh=dHbiHghMI4TWMz77tvyL/l0biwiAfSkoG0z1mvfWWLI=; h=From:To:Cc:Subject:Date; b=eFya/5cqi2bWpp1CAVYnFXMG/T339Y+sz/OjHV+oPlAxrZjYP7V5YlVbgAFB6/hTh WajX7EMpU34jSUj0x2psyObtrifPeishNBE127Q5W88BOwsFxcxXieBNixSVWAkCTx VVYek8S35pv60aiTEMvQhM5b2AA3T7pF3fJVXACqZ16uzrRgwRLoVEMAovNBh7Bl42 Ga+iy1fx9OhKgeny0Bu7u353FBLD3CGnzfQCi51jyrVmhcHkwNq9iWentQJLAT7/Xi LOzg0nJN1AEdpUZqO6js58/dj32q70mX1NEZSziZD9ipsPErOKtvuSpB+FAxt31z9g 2nyBqixopSZLw== To: alpine-aports@lists.alpinelinux.org Cc: Bart Ribbers Subject: [PATCH] testing/libpostal: fix building on non-x86 platforms Date: Sat, 7 Sep 2019 22:47:05 +0200 Message-Id: <20190907204705.1900-1-bribbers@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit --- testing/libpostal/APKBUILD | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/testing/libpostal/APKBUILD b/testing/libpostal/APKBUILD index ae57cb2d5c..b94bdda822 100644 --- a/testing/libpostal/APKBUILD +++ b/testing/libpostal/APKBUILD @@ -5,7 +5,7 @@ pkgver=1.0.0 pkgrel=0 pkgdesc="A C library for parsing/normalizing street addresses around the world" url="https://github.com/openvenues/libpostal" -arch="x86_64 x86" +arch="all" license="MIT" makedepends="autoconf automake libtool" subpackages="$pkgname-static $pkgname-dev" @@ -18,11 +18,18 @@ prepare() { ./bootstrap.sh } -build() { +build() { + case "$CARCH" in + x86|x86_64) sse2="--enable-sse2" ;; + *) sse2="--disable-sse2";; + esac + ./configure \ --prefix=/usr \ --datadir=/usr/local/share \ - --disable-data-download + --disable-data-download \ + $sse2 + make } -- 2.23.0