aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdnet/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-31 19:58:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-31 19:58:35 +0000
commit20ece8e1286ce02c409fd7ebd7fa2e0afa6fd2e9 (patch)
tree5b9d10a05ca05e6a58fb5bd2623efd314865e7f7 /main/libdnet/APKBUILD
parent8b13e1aab6ff80cc8d85d05efe9c24dc1ed0e794 (diff)
downloadaports-20ece8e1286ce02c409fd7ebd7fa2e0afa6fd2e9.tar.bz2
aports-20ece8e1286ce02c409fd7ebd7fa2e0afa6fd2e9.tar.xz
main/libdnet: build fix for automake-1.13
Diffstat (limited to 'main/libdnet/APKBUILD')
-rw-r--r--main/libdnet/APKBUILD28
1 files changed, 20 insertions, 8 deletions
diff --git a/main/libdnet/APKBUILD b/main/libdnet/APKBUILD
index aed8efb404..6bd8c61d6f 100644
--- a/main/libdnet/APKBUILD
+++ b/main/libdnet/APKBUILD
@@ -10,19 +10,30 @@ subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends="autoconf automake libtool"
install=
-source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tgz"
+source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tgz
+ 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
# the libtool script does not add .so extention to we generate
# new libtool
- aclocal -I config && autoconf && automake && libtoolize || return 1
+ aclocal -I config && autoconf && automake --add-missing \
+ && libtoolize || return 1
+
+}
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--mandir=/usr/share/man \
- --without-python
-
+ --without-python \
+ || return 1
make || return 1
}
@@ -32,4 +43,5 @@ package() {
rm "$pkgdir"/usr/lib/*.la
}
-md5sums="9253ef6de1b5e28e9c9a62b882e44cc9 libdnet-1.12.tgz"
+md5sums="9253ef6de1b5e28e9c9a62b882e44cc9 libdnet-1.12.tgz
+059d1e50cfa27cab45af72530a4f74fd automake.patch"