summaryrefslogtreecommitdiff
path: root/extra/libmad/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libmad/PKGBUILD')
-rw-r--r--extra/libmad/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/libmad/PKGBUILD b/extra/libmad/PKGBUILD
new file mode 100644
index 000000000..31ec18b16
--- /dev/null
+++ b/extra/libmad/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 120663 2011-04-25 21:54:20Z eric $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+
+pkgname=libmad
+pkgver=0.15.1b
+pkgrel=5
+pkgdesc="A high-quality MPEG audio decoder"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.underbit.com/products/mad/"
+license=('GPL')
+depends=('glibc')
+makedepends=('autoconf')
+replaces=('mad')
+conflicts=('mad')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/sourceforge/mad/${pkgname}-${pkgver}.tar.gz
+ libmad.patch amd64-64bit.diff frame_length.diff optimize.diff)
+md5sums=('1be543bc30c56fb6bea1d7bf6a64e66c'
+ 'fbcca0267a423bae45389666f4cb04d5'
+ '8d8bd64a2842dd59153b3a6642059e23'
+ '3329b032118a68e18908197e65b3198d'
+ '3e52afe2103f367810a18bef9e82eb9f')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i "${srcdir}/libmad.patch"
+ patch -p1 -i "${srcdir}/amd64-64bit.diff"
+ patch -p1 -i "${srcdir}/frame_length.diff"
+ patch -p1 -i "${srcdir}/optimize.diff"
+ CFLAGS="$CFLAGS -ftree-vectorize -ftree-vectorizer-verbose=1"
+ autoconf
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}