aboutsummaryrefslogtreecommitdiffstats
path: root/main/audacity/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-12-03 13:24:01 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-12-03 13:28:32 +0000
commitc676cda05a92b78d7962d8ed4ea69de730ed900d (patch)
treedd62b862839258f918352e9f47ac043a18c0127b /main/audacity/APKBUILD
parent25c75bab5e291a83f9d15dcab19005328da39125 (diff)
downloadaports-c676cda05a92b78d7962d8ed4ea69de730ed900d.tar.gz
aports-c676cda05a92b78d7962d8ed4ea69de730ed900d.tar.bz2
aports-c676cda05a92b78d7962d8ed4ea69de730ed900d.tar.xz
main/audacity: fix arm build
SSE is intel only, but still needs to be explicitly disabled for audacity to compile on arm
Diffstat (limited to 'main/audacity/APKBUILD')
-rw-r--r--main/audacity/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/audacity/APKBUILD b/main/audacity/APKBUILD
index 6e43b827ea..6137501f62 100644
--- a/main/audacity/APKBUILD
+++ b/main/audacity/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=audacity
pkgver=2.0.6
-pkgrel=0
+pkgrel=1
pkgdesc="Multitrack audio editor"
url="http://audacity.sourceforge.net"
arch="all"
@@ -29,7 +29,15 @@ prepare() {
}
build() {
+ local _arch
+
cd "$_builddir"
+
+ case "$CTARGET" in
+ x86|x86_64) _arch="--enable-sse";;
+ *) _arch="--disable-sse";;
+ esac
+
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -39,6 +47,7 @@ build() {
--with-libsndfile=system \
--with-libsamplerate=system \
--without-libresample \
+ $_arch \
|| return 1
make || return 1
}