2013-11-10 11:46:00 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-12-19 17:44:12 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2013-11-10 11:46:00 +04:00
|
|
|
EAPI=5
|
2012-12-19 17:44:12 +04:00
|
|
|
|
2015-10-12 19:44:08 +03:00
|
|
|
inherit multilib-build git-r3
|
2012-12-19 17:44:12 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Faster OpenGL offloading for Bumblebee"
|
|
|
|
HOMEPAGE="https://github.com/amonakov/primus"
|
|
|
|
SRC_URI=""
|
|
|
|
EGIT_REPO_URI="git://github.com/amonakov/primus.git https://github.com/amonakov/primus.git"
|
|
|
|
|
|
|
|
LICENSE="ISC"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS=""
|
2013-11-10 11:46:00 +04:00
|
|
|
IUSE=""
|
2012-12-19 17:44:12 +04:00
|
|
|
|
|
|
|
RDEPEND="x11-misc/bumblebee[video_cards_nvidia]
|
2013-11-10 11:46:00 +04:00
|
|
|
"
|
2012-12-19 17:44:12 +04:00
|
|
|
DEPEND="virtual/opengl"
|
|
|
|
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
export PRIMUS_libGLa='/usr/$$LIB/opengl/nvidia/lib/libGL.so.1'
|
2013-11-10 11:46:00 +04:00
|
|
|
mymake() {
|
2012-12-19 17:44:12 +04:00
|
|
|
emake LIBDIR=$(get_libdir)
|
2013-11-10 11:46:00 +04:00
|
|
|
}
|
|
|
|
multilib_parallel_foreach_abi mymake
|
2012-12-19 17:44:12 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
sed -i -e "s#^PRIMUS_libGL=.*#PRIMUS_libGL='/usr/\$LIB/primus'#" primusrun
|
|
|
|
dobin primusrun
|
2013-11-10 11:46:00 +04:00
|
|
|
myinst() {
|
2012-12-19 17:44:12 +04:00
|
|
|
insinto /usr/$(get_libdir)/primus
|
|
|
|
doins ${S}/$(get_libdir)/libGL.so.1
|
2013-11-10 11:46:00 +04:00
|
|
|
}
|
|
|
|
multilib_foreach_abi myinst
|
2012-12-19 17:44:12 +04:00
|
|
|
}
|