summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-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 7a9fa614b..8d4959daf 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 000000000..809031eb0
--- /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)