summaryrefslogtreecommitdiff
blob: 43bf2163edfa1d7f98db1ae6a3387a864ae526c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

if [[ ${PV} == 9999 ]] ; then
	SCM="autotools git-2"
	EGIT_REPO_URI="https://github.com/TimothyGu/libilbc"
	SRC_URI=""
else
	SRC_URI="https://github.com/TimothyGu/libilbc/releases/download/v${PV}/${P}.tar.bz2"
	KEYWORDS="amd64 ~arm ~ppc ppc64 x86"
fi

inherit eutils multilib ${SCM} autotools-multilib

DESCRIPTION="Packaged version of iLBC codec from the WebRTC project"
HOMEPAGE="https://github.com/TimothyGu/libilbc"

LICENSE="BSD"
SLOT="0"
IUSE="static-libs"

src_prepare() {
	epatch "${FILESDIR}"/${PN}-2.0.2-ppc_ppc64.patch
	[[ ${PV} == *9999 ]] && eautoreconf
	autotools-multilib_src_prepare
}