blob: 38ade13e8e1ecd7e885986a49088fab216d95424 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU Public License v2
EAPI="4"
CROS_WORKON_PROJECT="chromiumos/third_party/xf86-video-armsoc"
CROS_WORKON_LOCALNAME="xf86-video-armsoc"
XORG_DRI="always"
XORG_EAUTORECONF="yes"
inherit xorg-2 cros-workon
DESCRIPTION="X.Org driver for ARM devices"
KEYWORDS="-* ~arm"
IUSE="video_cards_exynos video_cards_rockchip"
RDEPEND=">=x11-base/xorg-server-1.9
video_cards_exynos? ( x11-libs/libdrm[video_cards_exynos] )
video_cards_rockchip? ( x11-libs/libdrm[video_cards_rockchip] )"
DEPEND="${RDEPEND}"
src_unpack() {
cros-workon_src_unpack
mkdir -p "${S}"/m4
}
src_configure() {
if use video_cards_exynos ; then
XORG_CONFIGURE_OPTIONS=( --with-driver=exynos )
elif use video_cards_rockchip ; then
XORG_CONFIGURE_OPTIONS=( --with-driver=rockchip )
fi
xorg-2_src_configure
}