forked from ports/contrib
primus: initial import, version 0.2
This commit is contained in:
parent
fa5ef259ce
commit
7b4884a3cb
13
primus/.footprint
Normal file
13
primus/.footprint
Normal file
@ -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
|
2
primus/.md5sum
Normal file
2
primus/.md5sum
Normal file
@ -0,0 +1,2 @@
|
||||
0a9e987370fc19aaa95094f3a9c2140c primus-0.2.tar.gz
|
||||
d7646b48434b6b3c56b2eb588efc9acf primusrun.patch
|
6
primus/.signature
Normal file
6
primus/.signature
Normal file
@ -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
|
22
primus/Pkgfile
Normal file
22
primus/Pkgfile
Normal file
@ -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
|
||||
}
|
21
primus/primusrun.patch
Normal file
21
primus/primusrun.patch
Normal file
@ -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 "$@"
|
Loading…
x
Reference in New Issue
Block a user