| Port details |
- glew-wayland OpenGL Extension Wrangler Library
- 2.3.1 graphics
=0 2.2.0_3Version of this port present on the latest quarterly branch. - Maintainer: jbeich@FreeBSD.org
 - Port Added: 2019-11-14 00:43:27
- Last Update: 2026-07-24 18:49:38
- Commit Hash: b7c05a1
- Also Listed In: wayland
- License: MIT BSD3CLAUSE
- WWW:
- https://glew.sourceforge.net/
- Description:
- The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist
C/C++ OpenGL developers with two tedious tasks: initializing and using
extensions and writing portable applications. GLEW provides an efficient
run-time mechanism to determine whether a certain extension is supported
by the driver or not. OpenGL core and extension functionality is exposed
via a single header file.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- glew-wayland>0:graphics/glew-wayland
- To install the port:
- cd /usr/ports/graphics/glew-wayland/ && make install clean
- To add the package, run one of these commands:
- pkg install graphics/glew-wayland
- pkg install glew-wayland
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: glew-wayland
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1783945884
SHA256 (glew-2.3.1.tgz) = b64790f94b926acd7e8f84c5d6000a86cb43967bd1e688b03089079799c9e889
SIZE (glew-2.3.1.tgz) = 866060
Packages (timestamps in pop-ups are UTC):
- Master port: graphics/glew
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- gmake>=4.4.1 : devel/gmake
- Library dependencies:
-
- libEGL.so : graphics/libglvnd
- libOpenGL.so : graphics/libglvnd
- This port is required by:
- for Libraries
-
- cad/kicad-devel
Configuration Options:
- No options to configure
- Options name:
- graphics_glew-wayland
- USES:
- gmake gl tar:tgz xorg
- pkg-message:
- For install:
- 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
- Master Sites:
|
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| This is a slave port. You may also want to view the commits to the master port: graphics/glew |
| Commit | Credits | Log message |
2.3.1 24 Jul 2026 18:49:38
    |
Gleb Popov (arrowd)  |
graphics/glew{,-wayland}: Update to 2.3.1
Approved by: jbeich
Pull Request: https://github.com/freebsd/freebsd-ports/pull/565 |
2.2.0_3 20 Jul 2022 12:48:14
    |
Jan Beich (jbeich)  |
wayland: add more mostly leaf ports to virtual category
Caveats:
- emulators/rpcs3: install qt5-wayland and ensure Renderer is Vulkan (default)
- mail/thunderbird: add MOZ_ENABLE_WAYLAND=1 via environ(7)
- www/chromium: add --ozone-platform=wayland on command line
- www/firefox-esr: add MOZ_ENABLE_WAYLAND=1 via environ(7)
- www/firefox: add MOZ_ENABLE_WAYLAND=1 via environ(7) |
2.2.0_3 20 Nov 2021 07:58:03
    |
Jan Beich (jbeich)  |
graphics/glew-wayland: drop X11 dependency after b44acc9409bdn
libGL is legacy GLX entry point, so maybe missing if libglvnd and/or
mesa-libs was built without X11 support.
$ make clean all deinstall install WITHOUT=X11 -C ../libglvnd
$ make clean all
[...]
===> glew-wayland-2.2.0_2 depends on shared library: libGL.so - not found
*** Error code 1
[...]
ld -shared -soname libGLEW-wayland.so.2 -o lib/libGLEW-wayland.so.2.2.0
tmp/freebsd/default/shared/glew.o -L/usr/local/lib -lEGL -lGL
ld: error: unable to find library -lGL
gmake[1]: *** [Makefile:123: lib/libGLEW-wayland.so.2.2.0] Error 1 |
2.2.0_2 20 Aug 2021 10:22:52
    |
Jan Beich (jbeich)  |
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 |
2.2.0_1 22 Jun 2021 18:53:08
    |
Kevin Bowling (kbowling)  |
graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.
PR: 246767
Reviewed by: manu, bapt
Approved by: x11
Differential Revision: https://reviews.freebsd.org/D30824 |
2.2.0 07 Apr 2021 08:09:01
    |
Mathieu Arnold (mat)  |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
2.2.0 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
2.2.0 06 Jun 2020 13:50:56
  |
jbeich  |
graphics/glew: update to 2.2.0
Changes: https://github.com/nigels-com/glew/compare/glew-2.1.0...555aa3ffc085
Approved by: zeising (maintainer)
Differential Revision: https://reviews.freebsd.org/D25162 |
2.1.0_1 29 Feb 2020 22:52:52
  |
jbeich  |
graphics/glew-wayland: install more files
$ LD_PRELOAD=libGLEW-wayland.so glewinfo
Error [main]: glewInit failed: Missing GL version |
2.1.0 30 Nov 2019 09:06:22
  |
jbeich  |
graphics/glew-wayland: unbreak on GCC architectures
In file included from src/glew.c:43:
include/GL/eglew.h:115: error: redefinition of typedef 'EGLint'
/usr/local/include/EGL/eglplatform.h:158: error: previous declaration of
'EGLint' was here
$ gcc42 -xc -c -
typedef int foo;
typedef int foo;
^D
<stdin>:2: error: redefinition of typedef 'foo'
<stdin>:1: error: previous declaration of 'foo' was here
PR: 242310
Reported by: pkubaj |
2.1.0 14 Nov 2019 00:43:21
  |
jbeich  |
graphics/glew: add -wayland slave
SDL_VIDEODRIVER=wayland doesn't work with current glew package while
SDL_VIDEODRIVER=x11 doesn't work using this package. So, build against
libEGL instead of libX11 and let the user decide when to use.
Idea from: ArchLinux
Tested by: SDL (freeorion, ppsspp, renpy) |