1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Royalty-free, highly versatile audio codec"
9 HOMEPAGE="http://opus-codec.org/"
11 if [[ ${PV} == *9999 ]] ; then
13 EGIT_REPO_URI="git://git.opus-codec.org/${PN}.git"
14 elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
15 SRC_URI="https://dev.gentoo.org/~lu_zero/${PN}/${P}.tar.xz"
16 else # Official release
17 SRC_URI="http://downloads.xiph.org/releases/opus/${P}.tar.gz"
22 KEYWORDS="~amd64 ~ppc64 ~x86"
25 RDEPEND=">=media-libs/libogg-1.3.0
26 >=media-libs/opus-1.0.3
27 flac? ( >=media-libs/flac-1.1.3 )"
28 DEPEND="virtual/pkgconfig
33 [[ ${PV} == *9999 ]] && eautoreconf
37 econf $(use_with flac)
42 find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die