From 96236b7403b76c2e202b9390adf272f05eee2b27 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 21 Jul 2018 02:37:42 -0500 Subject: user/faad2: pull in, fix up, modernise --- user/faad2/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 user/faad2/APKBUILD (limited to 'user/faad2/APKBUILD') diff --git a/user/faad2/APKBUILD b/user/faad2/APKBUILD new file mode 100644 index 000000000..0fe0e2601 --- /dev/null +++ b/user/faad2/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: +pkgname=faad2 +pkgver=2.7 +pkgrel=9 +pkgdesc="ISO AAC audio decoder" +url="http://www.audiocoding.com/" +arch="all" +options="!check" # No test suite. +license="GPL-2.0+" +subpackages="$pkgname-dev $pkgname-doc" +depends="" +makedepends="autoconf automake libtool" +source="http://downloads.sourceforge.net/sourceforge/faac/$pkgname-$pkgver.tar.bz2 + automake.patch" + +prepare() { + cd "$builddir" + update_config_sub + default_prepare +} + +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 + + sh bootstrap + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + install -m644 common/mp4ff/mp4ff_int_types.h "$pkgdir"/usr/include/mp4ff_int_types.h +} + +sha512sums="0934aa9b752b5d86879d94156dea02595e2428340d0cf44202ffea369895b21a9aadbb4833a39212c9a79429b409eb108706b1f523bfddd32809b53730d50947 faad2-2.7.tar.bz2 +0b66cfa240529a2139b47cb8dc87c4b43a451b906d66ef7d211fb509358b1493ceee13894516c2f552b33eae74640910e97957caa49dade2597ebd9777152a9e automake.patch" -- cgit v1.2.3-70-g09d2