diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-31 20:10:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-31 20:10:29 +0000 |
commit | 613a9cca6a597c4d339e87d0697729de10ec9de6 (patch) | |
tree | 180d100c32893a23ca6aa0da22fb95bdf9fd37f9 /main/libmad/APKBUILD | |
parent | 2980382356f2bd8b3ed5163661a024771ea9c423 (diff) | |
download | aports-613a9cca6a597c4d339e87d0697729de10ec9de6.tar.bz2 aports-613a9cca6a597c4d339e87d0697729de10ec9de6.tar.xz |
main/libmad: build fix for automake-1.13
Diffstat (limited to 'main/libmad/APKBUILD')
-rw-r--r-- | main/libmad/APKBUILD | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/main/libmad/APKBUILD b/main/libmad/APKBUILD index 9688b7d523..8791a5d7fa 100644 --- a/main/libmad/APKBUILD +++ b/main/libmad/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libmad pkgver=0.15.1b -pkgrel=5 +pkgrel=6 pkgdesc="A high-quality MPEG audio decoder" url="http://www.underbit.com/products/mad/" arch="all" @@ -13,20 +13,24 @@ 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 + automake.patch mad.pc " -build () -{ - cd "$srcdir"/$pkgname-$pkgver - for i in ../*.patch; do - msg "Applying $i..." - patch -Np1 -i $i || return 1 +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac done - - aclocal && autoconf && ./missing --run automake --foreign \ + aclocal && autoconf && automake --add-missing --foreign \ && libtoolize --force || return 1 +} +build() { + cd "$_builddir" ./configure --prefix=/usr \ --enable-fpm=intel \ --enable-accuracy @@ -43,4 +47,5 @@ package() { md5sums="1be543bc30c56fb6bea1d7bf6a64e66c libmad-0.15.1b.tar.gz fbda7a1821e2038221deb3f476da034d libmad-0.15.1b-cflags-O2.patch bcd6eab331fc316baf4e9c9882fe13f4 libmad-0.15.1b-cflags.patch +399e83a145ea8ba0e9c9484235a1ee76 automake.patch 89806934195402446d21d1a83f523b11 mad.pc" |