aboutsummaryrefslogtreecommitdiffstats
path: root/main/faad2
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-31 10:45:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-31 16:02:15 +0000
commit7b0015a0e738966ffc7b8ae0fee8452cb128e976 (patch)
tree6a4a7581c7a88fc88cd4d9a33986731dff01dd79 /main/faad2
parentf829b49cc148a0b4c4f6c894690fbe4aa0ddc9c6 (diff)
downloadaports-7b0015a0e738966ffc7b8ae0fee8452cb128e976.tar.bz2
aports-7b0015a0e738966ffc7b8ae0fee8452cb128e976.tar.xz
main/faad2: fix building with automak-1.13
Diffstat (limited to 'main/faad2')
-rw-r--r--main/faad2/APKBUILD27
-rw-r--r--main/faad2/automake.patch11
2 files changed, 30 insertions, 8 deletions
diff --git a/main/faad2/APKBUILD b/main/faad2/APKBUILD
index 7a9fa614b0..8d4959daf0 100644
--- a/main/faad2/APKBUILD
+++ b/main/faad2/APKBUILD
@@ -1,7 +1,7 @@
# 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"
diff --git a/main/faad2/automake.patch b/main/faad2/automake.patch
new file mode 100644
index 0000000000..809031eb00
--- /dev/null
+++ b/main/faad2/automake.patch
@@ -0,0 +1,11 @@
+--- ./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)