1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Royalty-free, highly versatile audio codec"
8 HOMEPAGE="https://opus-codec.org/"
10 if [[ ${PV} == *9999 ]] ; then
12 EGIT_REPO_URI="https://git.xiph.org/opus-tools.git"
13 elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
14 SRC_URI="https://dev.gentoo.org/~lu_zero/${PN}/${P}.tar.xz"
15 else # Official release
16 SRC_URI="https://downloads.xiph.org/releases/opus/${P}.tar.gz"
21 KEYWORDS="amd64 ppc ppc64 x86"
25 >=media-libs/libogg-1.3.0
26 >=media-libs/libopusenc-0.2
28 >=media-libs/opusfile-0.5
29 flac? ( >=media-libs/flac-1.1.3 )
32 BDEPEND="virtual/pkgconfig"
36 [[ ${PV} == *9999 ]] && eautoreconf
40 econf $(use_with flac)
45 find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die