summaryrefslogtreecommitdiffstats
path: root/main/faac/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/faac/APKBUILD')
-rw-r--r--main/faac/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/faac/APKBUILD b/main/faac/APKBUILD
new file mode 100644
index 000000000..11dc6ab21
--- /dev/null
+++ b/main/faac/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=faac
+pkgver=1.28
+pkgrel=7
+pkgdesc="FAAC is an AAC audio encoder."
+url="http://www.audiocoding.com/"
+arch="all"
+license="GPL custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="autoconf automake libtool"
+source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+"
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ #taken from http://bugs.sourcemage.org/show_bug.cgi?id=15263
+ if [ "$ALPINE_LIBC" = "eglibc" ]; then
+ sed -i \
+ "s/^\(.*strcasestr\)/\/\/ This is in libc and conflicts: \1 /" \
+ common/mp4v2/mpeg4ip.h
+ fi
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./bootstrap
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+ install -D -m644 "$srcdir"/$pkgname-$pkgver/libfaac/kiss_fft/COPYING \
+ "$pkgdir"/usr/share/licenses/faac/COPYING.kiss_fft
+}
+md5sums="80763728d392c7d789cde25614c878f6 faac-1.28.tar.gz"