summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-libs/opus/Manifest1
-rw-r--r--media-libs/opus/opus-1.1.4.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/media-libs/opus/Manifest b/media-libs/opus/Manifest
index 8e11c6fa0fa..3bf07e242de 100644
--- a/media-libs/opus/Manifest
+++ b/media-libs/opus/Manifest
@@ -1,3 +1,4 @@
DIST opus-1.1.3.tar.gz 978848 SHA256 58b6fe802e7e30182e95d0cde890c0ace40b6f125cffc50635f0ad2eef69b633 SHA512 99fe272ade3f072e38101ec29f9125c9f4f2bacbcc002a9caca6e64a721f6c4193d7b1b81bd8370225693249c94293c4eea980e66c704424939dabbab890ab43 WHIRLPOOL 21137bae340d95ff99c45ff8014a89a104ee3557ddc366639e0badd317de072b135eec3c5292db3e47fb92da1abf3854a62d29e4d9d9fded109ddc272e86d38c
+DIST opus-1.1.4.tar.gz 978830 SHA256 9122b6b380081dd2665189f97bfd777f04f92dc3ab6698eea1dbb27ad59d8692 SHA512 57f14b9e8037eaa02a4d86535d3bbcceca249310fbc9ef1a452cc19dd442d4cf338d5db241d20605c236e22549df2c8266b7486c5f1666b80c532afd52cb3585 WHIRLPOOL 6331d567689bf4cf6151dcec6768a69fad455e3b92cfaca2b23bf6d1fa3fcfedb49e90762e51c96a5ec16ac5e90665849c38474d4fb55b8352f02fabb283e33d
DIST opus-1.1.tar.gz 850208 SHA256 b9727015a58affcf3db527322bf8c4d2fcf39f5f6b8f15dbceca20206cbe1d95 SHA512 b603efe66d65ef38dbcd0d2bbf213a1d15fa456aee00eca73e99abe4ec78668ed82e661ca7a69e9af4e0bc39e1aa76c4151b7f9840ff621ddcfd69f596cf2ba9 WHIRLPOOL 9d53e57d0c99b7e5e330822808f5b79e19bb3fbbffb9054e3d1d421b42fd70463d5fc39517eff1169d218bad8ab2440162c334ace013ffba846cbcfb57206201
DIST opus-1.2-alpha.tar.gz 991536 SHA256 654a9bebb73266271a28edcfff431e4cfd9bfcde71f42849a0cdd73bece803a7 SHA512 6ddee97b432ed27f5d89ae5a63217e23a318f9c56c7fff8a668b230d1d52c4d4341d875e5fb842ff0e057f5cac1ccb3a70a7ad44b27e275ece2bd497d4ea8347 WHIRLPOOL 13082acf6da1bb9e68aefbcc0af9c35441c23c0589983c6c0f69d293e2c66f679903bcbafbebcde2baf7e409bb784ec8cd45e2ca7d043db76bf73d076869e266
diff --git a/media-libs/opus/opus-1.1.4.ebuild b/media-libs/opus/opus-1.1.4.ebuild
new file mode 100644
index 00000000000..75eff7ba758
--- /dev/null
+++ b/media-libs/opus/opus-1.1.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit multilib-minimal
+
+if [[ ${PV} == *9999 ]] ; then
+ inherit git-2
+ EGIT_REPO_URI="git://git.opus-codec.org/opus.git"
+else
+ SRC_URI="http://downloads.xiph.org/releases/${PN}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
+fi
+
+DESCRIPTION="Open codec designed for internet transmission of interactive speech and audio"
+HOMEPAGE="http://opus-codec.org/"
+SRC_URI="http://downloads.xiph.org/releases/opus/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+
+# ABI -> intrinsics cpu flag (must have only one flag per abi)
+INTRINSIC_ABI_MAP="x86:cpu_flags_x86_sse amd64:cpu_flags_x86_sse arm:neon arm64:neon"
+IUSE="ambisonics custom-modes doc static-libs"
+for i in ${INTRINSIC_ABI_MAP} ; do
+ IUSE="${IUSE} ${i#*:}"
+done
+
+DEPEND="doc? ( app-doc/doxygen )"
+
+multilib_src_configure() {
+ local myeconfargs=(
+ $(use_enable custom-modes)
+ $(use_enable ambisonics)
+ $(use_enable doc)
+ )
+ for i in ${INTRINSIC_ABI_MAP} ; do
+ local abi=${i%:*}
+ local flag=${i#*:}
+ if [ x"${ABI}" = x"${abi}" ] ; then
+ use ${flag} || myeconfargs+=( --disable-intrinsics )
+ fi
+ done
+ ECONF_SOURCE="${S}" \
+ econf "${myeconfargs[@]}"
+}