diff options
author | Matt Housh <jaeger@crux.ninja> | 2018-08-16 16:06:29 -0500 |
---|---|---|
committer | Matt Housh <jaeger@crux.ninja> | 2018-08-16 16:06:29 -0500 |
commit | 7b4884a3cb99dcbdee2e69353d89872985253fcc (patch) | |
tree | 7fec296ae3db07ec1e1ada4d362d513409a73087 /primus | |
parent | fa5ef259cea1c360acb0ed13eb9ab89ebd442fa7 (diff) | |
download | contrib-7b4884a3cb99dcbdee2e69353d89872985253fcc.tar.gz contrib-7b4884a3cb99dcbdee2e69353d89872985253fcc.tar.xz |
primus: initial import, version 0.2
Diffstat (limited to 'primus')
-rw-r--r-- | primus/.footprint | 13 | ||||
-rw-r--r-- | primus/.md5sum | 2 | ||||
-rw-r--r-- | primus/.signature | 6 | ||||
-rw-r--r-- | primus/Pkgfile | 22 | ||||
-rw-r--r-- | primus/primusrun.patch | 21 |
5 files changed, 64 insertions, 0 deletions
diff --git a/primus/.footprint b/primus/.footprint new file mode 100644 index 000000000..29c5ee432 --- /dev/null +++ b/primus/.footprint @@ -0,0 +1,13 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/primusrun +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/primus/ +-rwxr-xr-x root/root usr/lib/primus/libGL.so.1 +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/bash-completion/ +drwxr-xr-x root/root usr/share/bash-completion/completions/ +-rw-r--r-- root/root usr/share/bash-completion/completions/primusrun +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/primusrun.1.gz diff --git a/primus/.md5sum b/primus/.md5sum new file mode 100644 index 000000000..a8070c886 --- /dev/null +++ b/primus/.md5sum @@ -0,0 +1,2 @@ +0a9e987370fc19aaa95094f3a9c2140c primus-0.2.tar.gz +d7646b48434b6b3c56b2eb588efc9acf primusrun.patch diff --git a/primus/.signature b/primus/.signature new file mode 100644 index 000000000..f3608ca33 --- /dev/null +++ b/primus/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF32fZ3xH7fd5/sEorKfUzAciVqW/a/9OPBrr9ty0BXEcwOpDal++FHGUhpBT6BrtlveKdoAOCCNZByMaRhbvpIgE= +SHA256 (Pkgfile) = 958503b2198ba45cf9ff64350a620a5f61ac6416ee2e07f2a71dfdf19baf2ecc +SHA256 (.footprint) = 377f116ca51c4e87666a3dbb639b7af485d875b3b76ead9a434a06e780f2c942 +SHA256 (primus-0.2.tar.gz) = beccce83d6e493ecb45589fd02d7b0b0e5b406b136f4ad62d20d4cbac9d54fec +SHA256 (primusrun.patch) = 721ef91344853b33a84587a9b93523123e5568bfc285aaa703852d19e01b1e4a diff --git a/primus/Pkgfile b/primus/Pkgfile new file mode 100644 index 000000000..fd3475e98 --- /dev/null +++ b/primus/Pkgfile @@ -0,0 +1,22 @@ +# Description: Low-overhead client-side GPU offloading +# URL: https://github.com/amonakov/primus +# Maintainer: Matt Housh, jaeger at crux dot ninja +# Depends on: mesa3d + +name=primus +version=0.2 +release=1 +source=(https://github.com/amonakov/$name/archive/v$version/$name-$version.tar.gz \ + primusrun.patch) + +build() { + cd $name-$version + patch -p1 -i $SRC/primusrun.patch + make + + install -D -m 0755 lib/libGL.so.1 $PKG/usr/lib/primus/libGL.so.1 + install -D -m 0644 primus.bash-completion $PKG/usr/share/bash-completion/completions/primusrun + sed -i -e 's,^PRIMUS_libGL=.*,PRIMUS_libGL=/usr/\\$LIB/primus,' primusrun + install -D -m 0755 primusrun $PKG/usr/bin/primusrun + install -D -m 0644 primusrun.1 $PKG/usr/share/man/man1/primusrun.1 +} diff --git a/primus/primusrun.patch b/primus/primusrun.patch new file mode 100644 index 000000000..1da3e51bd --- /dev/null +++ b/primus/primusrun.patch @@ -0,0 +1,21 @@ +diff -urN primus-0.2.orig/primusrun primus-0.2/primusrun +--- primus-0.2.orig/primusrun 2015-03-28 14:29:18.000000000 -0500 ++++ primus-0.2/primusrun 2018-07-10 00:03:37.898370455 -0500 +@@ -26,7 +26,7 @@ + # export PRIMUS_libGLd=${PRIMUS_libGLd:-'/usr/$LIB/libGL.so.1'} + + # Directory containing primus libGL +-PRIMUS_libGL=${PRIMUS_libGL:-$(dirname `readlink -ne $0`)/'$LIB'} ++PRIMUS_libGL=/usr/\$LIB/primus + + # On some distributions, e.g. on Ubuntu, libnvidia-tls.so is not available + # in default search paths. Add its path manually after the primus library +@@ -38,5 +38,8 @@ + # Need functions from primus libGL to take precedence + export LD_LIBRARY_PATH=${PRIMUS_libGL}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} + ++# needed for glvnd mesa ++export __GLVND_DISALLOW_PATCHING=1 ++ + # And go! + exec "$@" |