summaryrefslogtreecommitdiff
path: root/user/faad2
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-21 02:37:42 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-21 02:37:42 -0500
commit96236b7403b76c2e202b9390adf272f05eee2b27 (patch)
tree3cfe214713b87ccf1ee0a05f25d3f55dbf36ad55 /user/faad2
parent9d3f7ee760fc142660e85635c69777919304ec96 (diff)
downloadpackages-96236b7403b76c2e202b9390adf272f05eee2b27.tar.gz
packages-96236b7403b76c2e202b9390adf272f05eee2b27.tar.bz2
packages-96236b7403b76c2e202b9390adf272f05eee2b27.tar.xz
packages-96236b7403b76c2e202b9390adf272f05eee2b27.zip
user/faad2: pull in, fix up, modernise
Diffstat (limited to 'user/faad2')
-rw-r--r--user/faad2/APKBUILD44
-rw-r--r--user/faad2/automake.patch11
2 files changed, 55 insertions, 0 deletions
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"
diff --git a/user/faad2/automake.patch b/user/faad2/automake.patch
new file mode 100644
index 000000000..809031eb0
--- /dev/null
+++ b/user/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)