aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-08-17 08:52:56 +0000
committerJan Beich <jbeich@FreeBSD.org>2021-08-20 10:22:52 +0000
commitfdc95482c3b625504c5b53566b0ce8c08fc7dc86 (patch)
treed5dd22fd9b13b5bec4525893ce241455ba35c862
parent9b01318797d58eacffc1cf9e8048e9c9f0da1c5c (diff)
downloadports-fdc95482c3b625504c5b53566b0ce8c08fc7dc86.tar.gz
ports-fdc95482c3b625504c5b53566b0ce8c08fc7dc86.zip
graphics/glew-wayland: suggest LD_LIBMAP for session-local override
LD_LIBMAP can be limited to Wayland or KMS console e.g., $ cat >>~/.zshrc if [[ ( -n $WAYLAND_DISPLAY || -z $DISPLAY ) && $LD_LIBMAP != *GLEW-wayland* ]]; then export LD_LIBMAP=libGLEW.so.2=libGLEW-wayland.so.2,$LD_LIBMAP export SDL_VIDEODRIVER=wayland,kmsdrm,x11 fi
-rw-r--r--graphics/glew-wayland/Makefile2
-rw-r--r--graphics/glew-wayland/pkg-message3
2 files changed, 4 insertions, 1 deletions
diff --git a/graphics/glew-wayland/Makefile b/graphics/glew-wayland/Makefile
index f75318eb79ec..91d9b00b9bfd 100644
--- a/graphics/glew-wayland/Makefile
+++ b/graphics/glew-wayland/Makefile
@@ -1,4 +1,4 @@
-PORTREVISION= 1
+PORTREVISION= 2
PKGNAMESUFFIX= -wayland
# https://github.com/nigels-com/glew/issues/172
diff --git a/graphics/glew-wayland/pkg-message b/graphics/glew-wayland/pkg-message
index 94336daab62f..8382ab7eb533 100644
--- a/graphics/glew-wayland/pkg-message
+++ b/graphics/glew-wayland/pkg-message
@@ -4,6 +4,9 @@
To enable Wayland support in GLEW for a specific application
$ LD_PRELOAD=libGLEW-wayland.so <application>
+To enable for current session
+ $ export LD_LIBMAP=libGLEW.so.2=libGLEW-wayland.so.2
+
To enable globally
$ echo libGLEW.so.2 libGLEW-wayland.so.2 >>/etc/libmap.conf
EOM