summaryrefslogtreecommitdiff
path: root/packages/x11-dri
diff options
context:
space:
mode:
Diffstat (limited to 'packages/x11-dri')
-rw-r--r--packages/x11-dri/bumblebee/bumblebee-3.0.exheres-054
1 files changed, 54 insertions, 0 deletions
diff --git a/packages/x11-dri/bumblebee/bumblebee-3.0.exheres-0 b/packages/x11-dri/bumblebee/bumblebee-3.0.exheres-0
new file mode 100644
index 0000000..86cf20f
--- /dev/null
+++ b/packages/x11-dri/bumblebee/bumblebee-3.0.exheres-0
@@ -0,0 +1,54 @@
+# Copyright 2013 Johannes Nixdorf <mixi@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require systemd-service [ systemd_files=[ "${WORK}"/scripts/systemd/bumblebeed.service ] ]
+
+SUMMARY="A project aiming to support NVIDIA Optimus technology under Linux"
+HOMEPAGE="http://bumblebee-project.org/"
+DOWNLOADS="http://bumblebee-project.org/${PNV}.tar.gz"
+
+LICENCES="GPL-3"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS="systemd"
+
+DEPENDENCIES="
+ build:
+ sys-apps/help2man
+ virtual/pkg-config
+ build+run:
+ dev-libs/glib:2
+ user/bumblebee
+ x11-libs/libX11
+ run:
+ x11-dri/primus
+"
+
+BUGS_TO="mixi@exherbo.org"
+
+src_configure() {
+ CONF_DRIVER=nvidia \
+ CONF_DRIVER_MODULE_NVIDIA=nvidia \
+ CONF_LDPATH_NVIDIA=/etc/env.d/alternatives/opengl/nvidia-drivers/usr/${LIBDIR} \
+ CONF_MODPATH_NVIDIA=/etc/env.d/alternatives/opengl/nvidia-drivers/usr/${LIBDIR}/xorg/modules,/usr/lib64/xorg/modules \
+ CONF_SOCKPATH=/run/bumblebee.sock \
+ econf --without-pidfile
+}
+
+src_compile() {
+ default
+
+ option systemd && emake scripts/systemd/bumblebeed.service
+}
+
+src_install() {
+ default
+
+ # we use primus instead of virtualgl
+ edo rm "${IMAGE}"/usr/bin/optirun
+ edo ln -s primusrun "${IMAGE}"/usr/bin/optirun
+
+ insinto "${SYSTEMDSYSTEMUNITDIR}"
+ option systemd && doins scripts/systemd/bumblebeed.service
+}
+