freebsd-ports/graphics/glew-wayland/pkg-message
Jan Beich fdc95482c3 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
2021-08-20 10:22:52 +00:00

14 lines
320 B
Text

[
{ type: install
message: <<EOM
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
}
]