blob: c351dbd4a9fd82b38920d2ad4b49289f5e336c38 [file] [log] [blame] [edit]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Extensible Virtual Display Interface Library"
HOMEPAGE="https://github.com/DisplayLink/evdi"
SRC_URI="https://github.com/DisplayLink/evdi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
# evdi has mixed license: GPLv2 for the module, LGPL-2.1 for the library.
# However, this ebuild is for the library only.
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="*"
# We need drm only for its structs and defines, not for functions.
DEPEND="x11-libs/libdrm"
S=${WORKDIR}
src_unpack() {
default
cd "${WORKDIR}"/${PN}-*
S=${PWD}
}
src_compile() {
tc-export CC
append-cppflags -DCHROMEOS -I../module
append-lfs-flags
emake -C library
}
src_install() {
dolib.so library/libevdi.so
insinto /usr/include
doins library/evdi_lib.h
}