summaryrefslogtreecommitdiff
path: root/extra/soundtouch/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/soundtouch/PKGBUILD')
-rw-r--r--extra/soundtouch/PKGBUILD24
1 files changed, 15 insertions, 9 deletions
diff --git a/extra/soundtouch/PKGBUILD b/extra/soundtouch/PKGBUILD
index e27054573..326d569d5 100644
--- a/extra/soundtouch/PKGBUILD
+++ b/extra/soundtouch/PKGBUILD
@@ -3,31 +3,37 @@
pkgname=soundtouch
pkgver=1.6.0
-pkgrel=1
+pkgrel=1.1
pkgdesc="An audio processing library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.surina.net/soundtouch/"
license=('LGPL')
depends=('gcc-libs')
options=('!libtool')
source=(http://www.surina.net/soundtouch/${pkgname}-${pkgver}.tar.gz
soundtouch-1.4.0-mmx-sse-compile-fix.patch
- soundtouch-1.4.0-x86_64-asm-broken.patch)
+ soundtouch-1.4.0-x86_64-asm-broken.patch
+ disable-mmx.patch)
md5sums=('aa1c63d4d67b033f044a6a48d2be5bdd'
'108cd080b4b0ebe8ed1f950ff1315e7a'
- '0d856bb5b519b18c6ba3a2e1770bdfd2')
-sha1sums=('9871dcbf75a68665a3515bb9dda4727beb0358e7'
- '7a245aacadcb3003e73c1c202c8de0ecc09283ac'
- '95282cca856b3b8645fadb530ce5eb892074f193')
+ '0d856bb5b519b18c6ba3a2e1770bdfd2'
+ '36e859e7a74a21ec7f9a5282fed63117')
build() {
cd "${srcdir}/${pkgname}"
patch -p1 -i "${srcdir}/soundtouch-1.4.0-mmx-sse-compile-fix.patch"
patch -p1 -i "${srcdir}/soundtouch-1.4.0-x86_64-asm-broken.patch"
+ [ "${CARCH}" = "mips64el" ] && patch -p1 -i "${srcdir}/disable-mmx.patch"
- [ "${CARCH}" = "x86_64" ] && CONFIGFLAG="--with-pic"
./bootstrap
- ./configure --prefix=/usr --enable-shared ${CONFIGFLAG}
+ case $CARCH in
+ i686)
+ ./configure --prefix=/usr --enable-shared
+ ;;
+ *)
+ ./configure --prefix=/usr --enable-shared --with-pic
+ ;;
+ esac
make
}