aboutsummaryrefslogtreecommitdiffstats
path: root/main/a52dec
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-23 12:44:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-23 12:44:30 +0000
commitc074070d0729642fc34957606163d66decf6b3ac (patch)
tree741e51817084f98c410580bacd33a0db9f6992db /main/a52dec
parentad398f485265f2d649e4372909745c09992dd004 (diff)
downloadaports-c074070d0729642fc34957606163d66decf6b3ac.tar.bz2
aports-c074070d0729642fc34957606163d66decf6b3ac.tar.xz
main/a52dec: automake fix
Diffstat (limited to 'main/a52dec')
-rw-r--r--main/a52dec/APKBUILD23
-rw-r--r--main/a52dec/automake.patch11
2 files changed, 31 insertions, 3 deletions
diff --git a/main/a52dec/APKBUILD b/main/a52dec/APKBUILD
index 8fbb0b14a6..69274feca4 100644
--- a/main/a52dec/APKBUILD
+++ b/main/a52dec/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=a52dec
pkgver=0.7.4
-pkgrel=4
+pkgrel=5
pkgdesc="liba52 is a free library for decoding ATSC A/52 streams."
url="http://liba52.sourceforge.net/"
arch="all"
@@ -10,13 +10,23 @@ subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="autoconf automake libtool"
source="http://liba52.sourceforge.net/files/$pkgname-$pkgver.tar.gz
+ automake.patch
$pkgname-$pkgver-build.patch"
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ libtoolize --force && \
+ aclocal && autoconf && automake --add-missing
+}
+
build ()
{
cd "$srcdir"/$pkgname-$pkgver
- patch -Np1 -i "$srcdir"/a52dec-0.7.4-build.patch || return 1
- ./bootstrap || return 1
./configure --prefix=/usr \
--enable-shared \
|| return 1
@@ -30,4 +40,11 @@ package() {
install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/ || return 1
}
md5sums="caa9f5bc44232dc8aeea773fea56be80 a52dec-0.7.4.tar.gz
+8ebfc507f7efa16ec2dcf8f6b11c985d automake.patch
fa16f224a7dceb7613824380abef0052 a52dec-0.7.4-build.patch"
+sha256sums="a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33 a52dec-0.7.4.tar.gz
+6fd5085dfa857c095f028224918e462fca14d8a179a0b4552d294293dc76e475 automake.patch
+00a094d6178cd21bfc2303ff2ac91ce656810e6fef50e77ab30e18d0f4d4a650 a52dec-0.7.4-build.patch"
+sha512sums="4b26fe9492f218b775fb190b76ecf06edaeb656adfe6dcbd24d0a0f86871c3ba917edb88a398eb12dccedaa1605b6f0a0be06b09f9fddd9a46e457b7dd244848 a52dec-0.7.4.tar.gz
+4a832b7e13e19ba00b1fcf5ddbdcca416ee71818f2fd77f19114d7f98fb41dbd04f906eb78f403dc27324d7e8bd8ec4e0b670139a27b49a7acdb2e3cf88d8d12 automake.patch
+eee40a2871c00fc704fa49d3192a41ceadc4cf7e80d7d7cf368aa2a3e7ebb786f39ef835bdffca5685bf054316a9bacf87556b9a0c90868dbf29e7269873806e a52dec-0.7.4-build.patch"
diff --git a/main/a52dec/automake.patch b/main/a52dec/automake.patch
new file mode 100644
index 0000000000..42231e040b
--- /dev/null
+++ b/main/a52dec/automake.patch
@@ -0,0 +1,11 @@
+--- ./configure.in.orig 2013-04-23 12:43:16.258733686 +0000
++++ ./configure.in 2013-04-23 12:43:32.922233281 +0000
+@@ -6,7 +6,7 @@
+ AC_CONFIG_FILES([Makefile autotools/Makefile include/Makefile test/Makefile
+ doc/Makefile src/Makefile liba52/Makefile libao/Makefile vc++/Makefile])
+ AM_INIT_AUTOMAKE([a52dec],[0.7.4])
+-AM_CONFIG_HEADER(include/config.h)
++AC_CONFIG_HEADERS(include/config.h)
+ AM_MAINTAINER_MODE
+ AC_CANONICAL_HOST
+