Overlay/x11-misc/primus/primus-9999.ebuild

41 lines
876 B
Bash
Raw Normal View History

# 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: $
EAPI=5
2012-12-19 17:44:12 +04:00
inherit multilib-build git-2
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=""
IUSE=""
2012-12-19 17:44:12 +04:00
RDEPEND="x11-misc/bumblebee[video_cards_nvidia]
"
2012-12-19 17:44:12 +04:00
DEPEND="virtual/opengl"
src_compile() {
export PRIMUS_libGLa='/usr/$$LIB/opengl/nvidia/lib/libGL.so.1'
mymake() {
2012-12-19 17:44:12 +04:00
emake LIBDIR=$(get_libdir)
}
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
myinst() {
2012-12-19 17:44:12 +04:00
insinto /usr/$(get_libdir)/primus
doins ${S}/$(get_libdir)/libGL.so.1
}
multilib_foreach_abi myinst
2012-12-19 17:44:12 +04:00
}