Overlay/x11-drivers/evdi/evdi-9999.ebuild

57 lines
1.2 KiB
Bash
Raw Normal View History

2024-01-20 01:25:45 +03:00
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod
2024-02-07 21:32:20 +03:00
SO_VER=1.14.2
2024-01-20 01:28:56 +03:00
2024-01-20 01:25:45 +03:00
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"}
2024-02-05 22:11:51 +03:00
EGIT_BRANCH="main"
2024-01-20 01:25:45 +03:00
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"
2024-03-04 17:16:13 +03:00
PATCHES=(
"${FILESDIR}"/linux_src_path.patch
)
2024-01-20 01:25:45 +03:00
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
2024-01-20 01:28:56 +03:00
dolib.so library/libevdi.so.${SO_VER}
dosym libevdi.so.${SO_VER} "/usr/$(get_libdir)/libevdi.so.1"
2024-01-20 01:25:45 +03:00
dosym libevdi.so.1 "/usr/$(get_libdir)/libevdi.so"
}