summaryrefslogtreecommitdiffstats
path: root/main/libmad/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-06 13:52:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-06 13:52:54 +0000
commit813042bf6af6ea4c3e459abcf2b18f4508257384 (patch)
treecf5369284264534190590bed422e44a27a10023d /main/libmad/APKBUILD
parent92d1bc8f9adebf61f15a0faeacd1aedecd5fe4de (diff)
downloadaports-813042bf6af6ea4c3e459abcf2b18f4508257384.tar.bz2
aports-813042bf6af6ea4c3e459abcf2b18f4508257384.tar.xz
main/libmad: new aport
A high-quality MPEG audio decoder http://www.underbit.com/products/mad/
Diffstat (limited to 'main/libmad/APKBUILD')
-rw-r--r--main/libmad/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/libmad/APKBUILD b/main/libmad/APKBUILD
new file mode 100644
index 000000000..72968faad
--- /dev/null
+++ b/main/libmad/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Sebastian Wicki <gandro@gmx.net>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libmad
+pkgver=0.15.1b
+pkgrel=0
+pkgdesc="A high-quality MPEG audio decoder"
+url="http://www.underbit.com/products/mad/"
+license="GPL"
+subpackages="$pkgname-dev"
+depends=
+makedepends="autoconf automake libtool"
+source="http://downloads.sourceforge.net/sourceforge/mad/$pkgname-$pkgver.tar.gz
+ libmad-0.15.1b-cflags-O2.patch
+ libmad-0.15.1b-cflags.patch
+ mad.pc
+ "
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ for i in ../*.patch; do
+ msg "Applying $i..."
+ patch -Np1 -i $i || return 1
+ done
+
+ aclocal && autoconf && ./missing --run automake --foreign \
+ && libtoolize --force || return 1
+
+ ./configure --prefix=/usr \
+ --enable-fpm=intel \
+ --enable-accuracy
+
+ make -j1 || return 1
+ make DESTDIR="$pkgdir" install
+ install -D -m644 "$srcdir"/mad.pc "$pkgdir"/usr/lib/pkgconfig/mad.pc
+}
+md5sums="1be543bc30c56fb6bea1d7bf6a64e66c libmad-0.15.1b.tar.gz
+fbda7a1821e2038221deb3f476da034d libmad-0.15.1b-cflags-O2.patch
+bcd6eab331fc316baf4e9c9882fe13f4 libmad-0.15.1b-cflags.patch
+89806934195402446d21d1a83f523b11 mad.pc"