summaryrefslogtreecommitdiff
path: root/packages/x11-dri
diff options
context:
space:
mode:
Diffstat (limited to 'packages/x11-dri')
-rw-r--r--packages/x11-dri/primus/primus-scm.exheres-053
1 files changed, 53 insertions, 0 deletions
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
+}
+