summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Johannes Nixdorf <mixi@exherbo.org> 2013-02-17 13:37:12 +0100
committerAvatar Johannes Nixdorf <mixi@exherbo.org> 2013-02-17 16:00:18 +0100
commitf3fc0993c81c9408642696ea7a87ec10fb4db916 (patch)
tree1257b42c8795697a8635d8538ef399d5a0083b21
parent95908c8f56029840f2b4d14e69f2a789d99d8d5a (diff)
downloadhardware-f3fc0993c81c9408642696ea7a87ec10fb4db916.tar.gz
hardware-f3fc0993c81c9408642696ea7a87ec10fb4db916.tar.xz
primus: add scm
-rw-r--r--metadata/repository_mask.conf7
-rw-r--r--packages/x11-dri/primus/primus-scm.exheres-053
2 files changed, 60 insertions, 0 deletions
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
index 425d71c..3517175 100644
--- a/metadata/repository_mask.conf
+++ b/metadata/repository_mask.conf
@@ -29,3 +29,10 @@ net-wireless/obexd[>=0.47] [[
token = testing
description = [ Will break some stuff (dbus namespace change) ]
]]
+
+x11-dri/primus[~scm] [[
+ author = [ Johannes Nixdorf <mixi@exherbo.org> ]
+ date = [ 17 Feb 2012 ]
+ token = scm
+ description = [ Mask scm exheres ]
+]]
diff --git a/packages/x11-dri/primus/primus-scm.exheres-0 b/packages/x11-dri/primus/primus-scm.exheres-0
new file mode 100644
index 0000000..62c7267
--- /dev/null
+++ b/packages/x11-dri/primus/primus-scm.exheres-0
@@ -0,0 +1,53 @@
+# Copyright 2013 Johannes Nixdorf <mixi@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require github [ user="amonakov" ] easy-multibuild
+
+SUMMARY="A library for low-overhead local-only client-side OpenGL offloading via GLX forking, similar to VirtualGL"
+
+LICENCES="ISC"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS="
+ multibuild_c:
+ 32 64
+"
+
+DEPENDENCIES="
+ build+run:
+ x11-libs/libX11[multibuild_c:*(-)?]
+ run:
+ x11-dri/mesa[multibuild_c:*(-)?]
+ x11-drivers/nvidia-drivers[multibuild_c:*(-)?]
+"
+
+BUGS_TO="mixi@exherbo.org"
+
+src_prepare() {
+ edo sed -e "s!^PRIMUS_libGL=.*!PRIMUS_libGL='/usr/\$LIB/primus/'!" \
+ -i primusrun
+}
+
+compile_one_multibuild() {
+ pushd "${WORK}"
+
+ emake \
+ BUMBLEBEE_SOCKET=/run/bumblebee.socket \
+ LIBDIR="${WORKBASE}/${MULTIBUILD_CLASS}/${MULTIBUILD_TARGET}" \
+ PRIMUS_libGLa=/usr/${LIBDIR}/libGL/libGL-nvidia.so \
+ PRIMUS_libGLd=/usr/${LIBDIR}/libGL/libGL-xorg.so
+
+ popd
+}
+
+install_one_multibuild() {
+ exeinto /usr/${LIBDIR}/primus/
+ doexe libGL.so.1
+}
+
+src_install() {
+ easy-multibuild_src_install
+
+ dobin primusrun
+}
+