53 lines
1.1 KiB
Bash
53 lines
1.1 KiB
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit linux-mod
|
|
|
|
SO_VER=1.14.1
|
|
|
|
DESCRIPTION="Extensible Virtual Display Interface"
|
|
HOMEPAGE="https://github.com/DisplayLink/evdi"
|
|
|
|
if [[ ${PV} == "9999" ]] ; then
|
|
EGIT_REPO_URI=${EGIT_REPO_URI:-"https://github.com/DisplayLink/evdi.git"}
|
|
EGIT_BRANCH="devel"
|
|
inherit git-r3
|
|
KEYWORDS=""
|
|
else
|
|
SRC_URI="https://github.com/DisplayLink/evdi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
fi
|
|
|
|
LICENSE="GPL-2 LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
|
|
RDEPEND="x11-libs/libdrm"
|
|
DEPEND="${RDEPEND}
|
|
sys-kernel/linux-headers"
|
|
|
|
MODULE_NAMES="evdi(video:${S}/module)"
|
|
|
|
#CONFIG_CHECK="~FB_VIRTUAL ~!INTEL_IOMMU"
|
|
CONFIG_CHECK="~FB_VIRTUAL ~I2C DRM ~USB_SUPPORT USB_ARCH_HAS_HCD"
|
|
|
|
pkg_setup() {
|
|
linux-mod_pkg_setup
|
|
}
|
|
|
|
src_compile() {
|
|
linux-mod_src_compile
|
|
cd "${S}/library"
|
|
default
|
|
#mv libevdi.so libevdi.so.${PV}
|
|
}
|
|
|
|
src_install() {
|
|
linux-mod_src_install
|
|
dolib.so library/libevdi.so.${SO_VER}
|
|
dosym libevdi.so.${SO_VER} "/usr/$(get_libdir)/libevdi.so.1"
|
|
dosym libevdi.so.1 "/usr/$(get_libdir)/libevdi.so"
|
|
}
|