29 lines
692 B
Bash
29 lines
692 B
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
DESCRIPTION="CELT is a very low delay audio codec designed for high-quality communications"
|
|
HOMEPAGE="http://www.celt-codec.org/"
|
|
SRC_URI="http://downloads.us.xiph.org/releases/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0.5.1"
|
|
KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 sparc x86"
|
|
IUSE="ogg static-libs"
|
|
|
|
DEPEND="ogg? ( media-libs/libogg )"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_configure() {
|
|
econf \
|
|
$(use_enable static-libs static) \
|
|
$(use_with ogg ogg /usr)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
if ! use static-libs; then
|
|
find "${D}" -name '*.la' -delete || die "Pruning failed"
|
|
fi
|
|
}
|