blob: 6822cd622049d7e5da2ad7cff92013e0316a4267 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="3ff7a6cd5d084fb14b1fe736b403f31cffa9868b"
CROS_WORKON_TREE="8b70436e2fbe7a69c1616ec01342206eed0f4017"
CROS_WORKON_PROJECT="chromiumos/third_party/chrontel"
inherit cros-workon
DESCRIPTION="Chrontel CH7036 User Space Driver"
HOMEPAGE="http://www.chrontel.com"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86 arm"
IUSE="-bogus_screen_resizes -use_alsa_control"
CROS_WORKON_LOCALNAME="../third_party/chrontel"
RDEPEND="x11-libs/libX11
x11-libs/libXdmcp
x11-libs/libXrandr
media-libs/alsa-lib
media-sound/adhd"
DEPEND="${RDEPEND}"
src_configure() {
cros-workon_src_configure
}
src_compile() {
tc-export CC PKG_CONFIG
append-flags -DUSE_AURA
use bogus_screen_resizes && append-flags -DBOGUS_SCREEN_RESIZES
use use_alsa_control && append-flags -DUSE_ALSA_CONTROL
export CCFLAGS="$CFLAGS"
emake || die "end compile failed."
}
src_install() {
dobin ch7036_monitor
dobin ch7036_debug
dodir /lib/firmware/chrontel
insinto /lib/firmware/chrontel
doins fw7036.bin
insinto /etc/init
doins chrontel.conf
dodir /usr/share/userfeedback/etc
insinto /usr/share/userfeedback/etc
doins sys_mon_hdmi.sysinfo.lst
}