summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-01-11 14:06:34 +0200
committerBlackNoxis <steven.darklight@gmail.com>2015-01-11 14:06:34 +0200
commitb1897082076a599128bab38c3edebf07ca667a1a (patch)
tree04a2a5414d0d8ec49c075aa40b34f6937df147dd
parentf3ea58db9fbb8b01d67f66b9d24e3d0a05a07bb2 (diff)
Added primus
-rw-r--r--x11-misc/primus/ChangeLog19
-rw-r--r--x11-misc/primus/primus-9999.ebuild45
2 files changed, 64 insertions, 0 deletions
diff --git a/x11-misc/primus/ChangeLog b/x11-misc/primus/ChangeLog
new file mode 100644
index 00000000..4f30967d
--- /dev/null
+++ b/x11-misc/primus/ChangeLog
@@ -0,0 +1,19 @@
+# ChangeLog for x11-misc/primus
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 23 Oct 2012; Vadim A. Misbakh-Soloviov <mva@mva.name> primus-9999.ebuild:
+ bumblebee,virtualgl] some build fixes
+
+ Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
+
+ 23 Oct 2012; Vadim A. Misbakh-Soloviov <mva@mva.name> primus-9999.ebuild:
+ fix 32bit build
+
+ Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
+
+*primus-9999 (20 Oct 2012)
+
+ 20 Oct 2012; Alexander Monakov <amonakov@ispras.ru> +primus-9999.ebuild:
+ Draft ebuild for primus
+
diff --git a/x11-misc/primus/primus-9999.ebuild b/x11-misc/primus/primus-9999.ebuild
new file mode 100644
index 00000000..0df46970
--- /dev/null
+++ b/x11-misc/primus/primus-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit multilib git-2
+
+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="multilib"
+
+RDEPEND="x11-misc/bumblebee[video_cards_nvidia]
+ multilib? ( app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-baselibs )"
+DEPEND="virtual/opengl"
+
+
+src_compile() {
+ export PRIMUS_libGLa='/usr/$$LIB/opengl/nvidia/lib/libGL.so.1'
+ emake LIBDIR=$(get_libdir)
+ if use multilib; then
+ local ABI=x86
+ local CXXFLAGS="${CXXFLAGS} -m32"
+ emake LIBDIR=$(get_libdir)
+ fi
+}
+
+src_install() {
+ sed -i -e "s#^PRIMUS_libGL=.*#PRIMUS_libGL='/usr/\$LIB/primus'#" primusrun
+ sed -i -e "s/^# PRIMUS_libGL=/PRIMUS_libGL=/" primusrun
+ dobin primusrun
+ insinto /usr/$(get_libdir)/primus
+ doins ${S}/$(get_libdir)/libGL.so.1
+ if use multilib; then
+ local ABI=x86
+ insinto /usr/$(get_libdir)/primus
+ doins ${S}/$(get_libdir)/libGL.so.1
+ fi
+}