x11-misc/primus-9999 updated from bumblebee overlay.
This commit is contained in:
parent
ce6b90656d
commit
04807002d5
|
@ -1 +0,0 @@
|
||||||
EBUILD primus-9999.ebuild 1147 SHA256 bd3977e4e4f3634373d0526ed0cc4330c85eab9f9c03df38240ee9ff880639d2 SHA512 edf2fa2499d9a1605a73e1c6eaff22eef7ad04af8de0117aa0dcea354bbb26615c55aa4c2a83406fe7a9814646c4c7a24ed659c1eaee7f12d8ffcfc56e56c005 WHIRLPOOL dd78d56e4251e8c8d65a445950c26ed7ed5834e8169bcc7c49eef40070d33a2176c8ceccfcb3cb13aee2f7c284f1aa8d363ea169fb10090ec767c324f2144bd4
|
|
|
@ -1,10 +1,10 @@
|
||||||
# Copyright 1999-2012 Gentoo Foundation
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
EAPI=4
|
EAPI=5
|
||||||
|
|
||||||
inherit multilib git-2
|
inherit multilib-build git-2
|
||||||
|
|
||||||
DESCRIPTION="Faster OpenGL offloading for Bumblebee"
|
DESCRIPTION="Faster OpenGL offloading for Bumblebee"
|
||||||
HOMEPAGE="https://github.com/amonakov/primus"
|
HOMEPAGE="https://github.com/amonakov/primus"
|
||||||
|
@ -14,32 +14,27 @@ EGIT_REPO_URI="git://github.com/amonakov/primus.git https://github.com/amonakov/
|
||||||
LICENSE="ISC"
|
LICENSE="ISC"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS=""
|
KEYWORDS=""
|
||||||
IUSE="multilib"
|
IUSE=""
|
||||||
|
|
||||||
RDEPEND="x11-misc/bumblebee[video_cards_nvidia]
|
RDEPEND="x11-misc/bumblebee[video_cards_nvidia]
|
||||||
multilib? ( app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-baselibs )"
|
"
|
||||||
DEPEND="virtual/opengl"
|
DEPEND="virtual/opengl"
|
||||||
|
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
export PRIMUS_libGLa='/usr/$$LIB/opengl/nvidia/lib/libGL.so.1'
|
export PRIMUS_libGLa='/usr/$$LIB/opengl/nvidia/lib/libGL.so.1'
|
||||||
emake LIBDIR=$(get_libdir)
|
mymake() {
|
||||||
if use multilib; then
|
|
||||||
local ABI=x86
|
|
||||||
local CXXFLAGS="${CXXFLAGS} -m32"
|
|
||||||
emake LIBDIR=$(get_libdir)
|
emake LIBDIR=$(get_libdir)
|
||||||
fi
|
}
|
||||||
|
multilib_parallel_foreach_abi mymake
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
sed -i -e "s#^PRIMUS_libGL=.*#PRIMUS_libGL='/usr/\$LIB/primus'#" primusrun
|
sed -i -e "s#^PRIMUS_libGL=.*#PRIMUS_libGL='/usr/\$LIB/primus'#" primusrun
|
||||||
sed -i -e "s/^# PRIMUS_libGL=/PRIMUS_libGL=/" primusrun
|
|
||||||
dobin primusrun
|
dobin primusrun
|
||||||
insinto /usr/$(get_libdir)/primus
|
myinst() {
|
||||||
doins ${S}/$(get_libdir)/libGL.so.1
|
|
||||||
if use multilib; then
|
|
||||||
local ABI=x86
|
|
||||||
insinto /usr/$(get_libdir)/primus
|
insinto /usr/$(get_libdir)/primus
|
||||||
doins ${S}/$(get_libdir)/libGL.so.1
|
doins ${S}/$(get_libdir)/libGL.so.1
|
||||||
fi
|
}
|
||||||
|
multilib_foreach_abi myinst
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue