Commit 613a9cca authored by Natanael Copa's avatar Natanael Copa

main/libmad: build fix for automake-1.13

parent 29803823
......@@ -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"
--- ./configure.ac.orig 2012-12-31 20:07:03.710178583 +0000
+++ ./configure.ac 2012-12-31 20:07:21.443663905 +0000
@@ -28,7 +28,7 @@
AM_INIT_AUTOMAKE
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADER([config.h])
dnl System type.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment