aboutsummaryrefslogtreecommitdiffstats
path: root/main/opus
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-10-10 00:16:36 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-10 00:16:36 +0200
commite450c829af3e0440999ed13aa644636fc8c69a4e (patch)
treed3e929b871b9fde5cd63fc0bee61a63a437c68c9 /main/opus
parent0c5e302b3f9267c3a929531f848bf98398f48485 (diff)
downloadaports-e450c829af3e0440999ed13aa644636fc8c69a4e.tar.bz2
aports-e450c829af3e0440999ed13aa644636fc8c69a4e.tar.xz
main/opus: new aport
Diffstat (limited to 'main/opus')
-rw-r--r--main/opus/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/opus/APKBUILD b/main/opus/APKBUILD
new file mode 100644
index 0000000000..dac4c39ddc
--- /dev/null
+++ b/main/opus/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=opus
+pkgver=1.1
+pkgrel=0
+pkgdesc="Codec designed for interactive speech and audio transmission over the Internet"
+url="http://www.opus-codec.org/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.us.xiph.org/releases/opus/opus-$pkgver.tar.gz"
+
+_builddir="$srcdir"/opus-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ update_config_sub || return 1
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-custom-modes \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="c5a8cf7c0b066759542bc4ca46817ac6 opus-1.1.tar.gz"
+sha256sums="b9727015a58affcf3db527322bf8c4d2fcf39f5f6b8f15dbceca20206cbe1d95 opus-1.1.tar.gz"
+sha512sums="b603efe66d65ef38dbcd0d2bbf213a1d15fa456aee00eca73e99abe4ec78668ed82e661ca7a69e9af4e0bc39e1aa76c4151b7f9840ff621ddcfd69f596cf2ba9 opus-1.1.tar.gz"