blob: 97fc5a468e0b389320a0c5d0d0161f15101efd08 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
CROS_WORKON_COMMIT="ff6b05e26b5bb2045514ad4dfff30a0927b550b4"
CROS_WORKON_TREE="419b9e06edd9c0c278b4ea13c4b8f79a61839c8b"
EAPI=4
CROS_WORKON_PROJECT="chromiumos/third_party/adhd"
CROS_WORKON_LOCALNAME="adhd"
inherit toolchain-funcs autotools cros-workon cros-board
DESCRIPTION="Google A/V Daemon"
HOMEPAGE="http://www.chromium.org"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE=""
RDEPEND=">=media-libs/alsa-lib-1.0.24.1
media-libs/speex
dev-libs/iniparser
>=sys-apps/dbus-1.4.12
dev-libs/libpthread-stubs
sys-fs/udev"
DEPEND=${RDEPEND}
src_prepare() {
cd cras
eautoreconf
}
src_configure() {
cd cras
econf
}
src_compile() {
local board=$(get_current_board_with_variant)
emake BOARD=${board} CC="$(tc-getCC)" || die "Unable to build ADHD"
}
src_install() {
local board=$(get_current_board_with_variant)
emake BOARD=${board} DESTDIR="${D}" install
}