summaryrefslogtreecommitdiff
path: root/packages/x11-dri
diff options
context:
space:
mode:
authorAvatar Maxime Coste <frrrwww@gmail.com> 2015-04-09 16:54:35 +0100
committerAvatar Gerrit Code Review <tomcat@galileo.mailstation.de> 2015-04-25 16:53:30 +0200
commit87ff3d1a7f9a495d756ed57772539ca7597508a9 (patch)
tree98f267142e87a9fd334bf6144b8adcebebf6d734 /packages/x11-dri
parentc704facd670247eb2aa8ad291972bbf2be14c62b (diff)
downloadhardware-87ff3d1a7f9a495d756ed57772539ca7597508a9.tar.gz
hardware-87ff3d1a7f9a495d756ed57772539ca7597508a9.tar.xz
primus: fix multiarch
Change-Id: Ie168326f71a069f1c6b970d758d34cc8d16a290f
Diffstat (limited to 'packages/x11-dri')
-rw-r--r--packages/x11-dri/primus/primus-scm.exheres-029
1 files changed, 11 insertions, 18 deletions
diff --git a/packages/x11-dri/primus/primus-scm.exheres-0 b/packages/x11-dri/primus/primus-scm.exheres-0
index 0011481..b3657c1 100644
--- a/packages/x11-dri/primus/primus-scm.exheres-0
+++ b/packages/x11-dri/primus/primus-scm.exheres-0
@@ -1,24 +1,21 @@
# Copyright 2013,2014 Johannes Nixdorf <mixi@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
-require github [ user="amonakov" ] easy-multibuild
+require github [ user="amonakov" ]
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
-"
+MYOPTIONS=""
DEPENDENCIES="
build+run:
- x11-libs/libX11[multibuild_c:*(-)?]
+ x11-libs/libX11
run:
- x11-dri/mesa[multibuild_c:*(-)?]
- x11-drivers/nvidia-drivers[multibuild_c:*(-)?]
+ x11-dri/mesa
+ x11-drivers/nvidia-drivers
"
BUGS_TO="mixi@exherbo.org"
@@ -28,25 +25,21 @@ src_prepare() {
-i primusrun
}
-compile_one_multibuild() {
+src_compile() {
pushd "${WORK}"
emake \
BUMBLEBEE_SOCKET=/run/bumblebee.socket \
- LIBDIR="${WORKBASE}/${MULTIBUILD_CLASS}/${MULTIBUILD_TARGET}" \
- PRIMUS_libGLa=/etc/env.d/alternatives/opengl/nvidia-drivers/usr/${LIBDIR}/libGL.so \
- PRIMUS_libGLd=/etc/env.d/alternatives/opengl/X.org/usr/${LIBDIR}/libGL.so
+ LIBDIR="${WORK}" \
+ PRIMUS_libGLa=/etc/env.d/alternatives/opengl/nvidia-drivers/usr/$(exhost --target)/lib/libGL.so \
+ PRIMUS_libGLd=/etc/env.d/alternatives/opengl/X.org/usr/$(exhost --target)/lib/libGL.so
popd
}
-install_one_multibuild() {
- exeinto /usr/${LIBDIR}/primus/
- doexe libGL.so.1
-}
-
src_install() {
- easy-multibuild_src_install
+ exeinto /usr/$(exhost --target)/lib/primus/
+ doexe libGL.so.1
dobin primusrun
}