Created
February 28, 2020 09:39
-
-
Save jaypeche/48284b136f0162baf6713a2cf442efb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2019 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI="5" | |
inherit multilib-build eutils | |
DESCRIPTION="This Vulkan layer can be used to do GPU offloading. Typically you want to display an image rendered on a more powerful GPU on a display managed by an internal GPU." | |
HOMEPAGE="https://github.com/felixdoerre/primus_vk" | |
SRC_URI="https://github.com/felixdoerre/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" | |
LICENSE="BSD-2" | |
SLOT="0" | |
KEYWORDS="~amd64 ~x86" | |
IUSE="" | |
DEPEND=">=media-libs/vulkan-layers-1.1.125-r2 | |
>=x11-misc/bumblebee-3.2.1 | |
=x11-drivers/nvidia-drivers-418.56-r9 | |
=x11-misc/primus-0.2" | |
src_prepare() { | |
default | |
epatch "${FILESDIR}/${PN}_1.3_gentoo_fix.diff" || die "epatch failed !" | |
# if use amd64 ; then | |
# sed -i -e 's#/usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1#/usr/lib64/primus/libGL.so.1#g' nv_vulkan_wrapper.cpp | |
# else | |
# sed -i -e 's#/usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1#/usr/lib/primus/libGL.so.1#g' nv_vulkan_wrapper.cpp | |
# fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment