Commit 7b0015a0 authored by Natanael Copa's avatar Natanael Copa

main/faad2: fix building with automak-1.13

parent f829b49c
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=faad2
pkgver=2.7
pkgrel=5
pkgrel=6
pkgdesc="ISO AAC audio decoder"
url="http://www.audiocoding.com/"
arch="all"
......@@ -9,26 +9,37 @@ license="custom:GPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="autoconf automake libtool"
source="http://downloads.sourceforge.net/sourceforge/faac/$pkgname-$pkgver.tar.bz2"
source="http://downloads.sourceforge.net/sourceforge/faac/$pkgname-$pkgver.tar.bz2
automake.patch"
build ()
{
cd "$srcdir"/$pkgname-$pkgver
_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
}
build() {
cd "$_builddir"
# manfile has bad name
mv frontend/faad.man frontend/faad.1 && \
sed -i -e 's:faad\.man:faad.1:' frontend/Makefile.am \
|| return 1
sh bootstrap
sh bootstrap || return 1
./configure --prefix=/usr || return 1
make || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
install -m644 common/mp4ff/mp4ff_int_types.h "$pkgdir"/usr/include/mp4ff_int_types.h || return 1
}
md5sums="4c332fa23febc0e4648064685a3d4332 faad2-2.7.tar.bz2"
md5sums="4c332fa23febc0e4648064685a3d4332 faad2-2.7.tar.bz2
28b178eddf06bda888fe048abc65d57f automake.patch"
--- ./configure.in.orig 2012-12-31 10:42:26.394219312 +0000
+++ ./configure.in 2012-12-31 10:42:43.294360781 +0000
@@ -25,7 +25,7 @@
AC_PROG_MAKE_SET
AC_CHECK_PROGS(RPMBUILD, rpmbuild, rpm)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADER(config.h)
AC_ARG_WITH(xmms,[ --with-xmms compile XMMS-1 plugin],
WITHXMMS=$withval, WITHXMMS=no)
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