Changeset View
Standalone View
graphics/libGLU/Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org> | # Created by: Eric Anholt <anholt@FreeBSD.org> | ||||
PORTNAME= libGLU | PORTNAME= libGLU | ||||
PORTVERSION= 9.0.1 | PORTVERSION= 9.0.2 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/glu/ \ | MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/glu/ \ | ||||
https://mesa.freedesktop.org/archive/glu/ | https://mesa.freedesktop.org/archive/glu/ | ||||
DISTNAME= glu-${PORTVERSION} | DISTNAME= glu-${PORTVERSION} | ||||
MAINTAINER= x11@FreeBSD.org | MAINTAINER= x11@FreeBSD.org | ||||
COMMENT= OpenGL utility library | COMMENT= OpenGL utility library | ||||
USES= gl libtool pathfix pkgconfig tar:xz xorg | USES= gl libtool pathfix pkgconfig tar:xz | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --disable-static | CONFIGURE_ARGS= --disable-static \ | ||||
--enable-libglvnd | |||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
USE_GL= gl | USE_GL= opengl | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> | ||||
tcberner: ^ this looks rather dated, please use the options helpers [1] :)
[1] https://docs.freebsd. | |||||
Done Inline ActionsIs there a reason libglvnd is made optional? I haven't looked at all the other GL related ports, but at least in mesa it is not made optional. zeising: Is there a reason libglvnd is made optional? I haven't looked at all the other GL related ports… | |||||
Done Inline Actionslibglvnd is optional in mesa-devel and transparent in all non-mesa ports, see GL_DEFAULT machinery. A quick fix here is to switch USE_GL=gl to USE_GL=egl but a proper fix would be to rename USE_GL=gl to USE_GL=glx then re-introduce USE_GL=gl for pure OpenGL consumers that can use libOpenGL.so. jbeich: libglvnd is optional in mesa-devel and transparent in all non-mesa ports, see `GL_DEFAULT`… | |||||
Done Inline ActionsThis is the proper fix right now, we can make libglvnd the only GL provider in 1-2 months if there is no long tail fallout but I want it to bake like this for the quarterly. EGL is something entirely different, libGLU should use libOpenGL when available and the meta build system (ports) shall clearly communicate it. libGL is OpenGL + GLX. libOpenGL is a new library that comes from libglvnd cleanup for exactly the case we are solving here in libGLU. Again, libGL == libGLX + libOpenGL. We don't get to redefine that and this is the right fix per upstream. kbowling: This is the proper fix right now, we can make libglvnd the only GL provider in 1-2 months if… |
^ this looks rather dated, please use the options helpers [1] :)
[1] https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-options