diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-05 02:31:06 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-05 02:31:06 -0300 |
commit | 79c90303b271fc9e9b6cadb00dbee76eff04567c (patch) | |
tree | 44a9cdaabaf7f5b297f1b50e5991682880c09f3b /extra/soundtouch/PKGBUILD | |
parent | 224c60d01361115dde84dd2e0f9b6f70feb9122a (diff) |
Today's patches and updates
Diffstat (limited to 'extra/soundtouch/PKGBUILD')
-rw-r--r-- | extra/soundtouch/PKGBUILD | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/extra/soundtouch/PKGBUILD b/extra/soundtouch/PKGBUILD index fc876f4a3..3de1063b2 100644 --- a/extra/soundtouch/PKGBUILD +++ b/extra/soundtouch/PKGBUILD @@ -14,23 +14,39 @@ 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) -md5sums=('5456481d8707d2a2c27466ea64a099cb' 'f0204136c90ce4f6d4761073151eb4dc'\ - '0d856bb5b519b18c6ba3a2e1770bdfd2') -sha1sums=('c3e73419acec242a49a408b78c55883def937fc0' '39815091c4cb1817f8a56b8fb29fa684984514d1'\ - '95282cca856b3b8645fadb530ce5eb892074f193') + soundtouch-1.4.0-x86_64-asm-broken.patch + disable-mmx.patch) +md5sums=('5456481d8707d2a2c27466ea64a099cb' + 'f0204136c90ce4f6d4761073151eb4dc' + '0d856bb5b519b18c6ba3a2e1770bdfd2' + '3a5097f2a65ec9bd5f733f9935cd498b') +sha1sums=('c3e73419acec242a49a408b78c55883def937fc0' + '39815091c4cb1817f8a56b8fb29fa684984514d1' + '95282cca856b3b8645fadb530ce5eb892074f193' + '92d7851d1992a592dab5490f18c072df943afdda') build() { cd "${srcdir}/${pkgname}" - patch -Np1 -i "${srcdir}/soundtouch-1.4.0-mmx-sse-compile-fix.patch" || return 1 - patch -Np1 -i "${srcdir}/soundtouch-1.4.0-x86_64-asm-broken.patch" || return 1 - if [ "${CARCH}" = "x86_64" ]; then - ./configure --prefix=/usr --enable-shared --with-pic || return 1 - else - ./configure --prefix=/usr --enable-shared || return 1 + patch -Np1 -i "${srcdir}/soundtouch-1.4.0-mmx-sse-compile-fix.patch" + patch -Np1 -i "${srcdir}/soundtouch-1.4.0-x86_64-asm-broken.patch" + + if [ "${CARCH}" = "mips64el" ]; then + patch -Np1 -i "${srcdir}/disable-mmx.patch" fi - make || return 1 - make DESTDIR="${pkgdir}" pkgdocdir=/usr/share/doc/soundtouch install || return 1 + + case $CARCH in + i686) + ./configure --prefix=/usr --enable-shared + ;; + x86_64) + ./configure --prefix=/usr --enable-shared --with-pic + ;; + mips64el) + ./configure --prefix=/usr --enable-shared --with-pic + ;; + esac + make + make DESTDIR="${pkgdir}" pkgdocdir=/usr/share/doc/soundtouch install # Upstream changed pkgconfig filename ln -sf soundtouch-1.4.pc "${pkgdir}/usr/lib/pkgconfig/soundtouch-1.0.pc" || return 1 } |