88f549c0d6
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because graphics/libGLU's Makefile does not explicitly set its C++ standard, this leads to several errors: ../src/libnurbs/internals/varray.cc:76:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]); ^~~~~~~~~ ../src/libnurbs/internals/varray.cc:77:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]); ^~~~~~~~~ Upstream already noticed this, and committed https://gitlab.freedesktop.org/mesa/glu/-/commit/b6c308172993 as a fix, so add this as an additional patch, until the next version is released. PR: 271055 Approved by: manu (maintainer) MFH: 2023Q2
23 lines
601 B
Makefile
23 lines
601 B
Makefile
PORTNAME= libGLU
|
|
PORTVERSION= 9.0.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/glu/ \
|
|
https://mesa.freedesktop.org/archive/glu/
|
|
DISTNAME= glu-${PORTVERSION}
|
|
|
|
PATCH_SITES= https://gitlab.freedesktop.org/mesa/glu/-/commit/
|
|
PATCHFILES+= b6c308172993.patch:-p1 #https://gitlab.freedesktop.org/mesa/glu/-/merge_requests/10
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= OpenGL utility library
|
|
WWW= https://gitlab.freedesktop.org/mesa/glu
|
|
|
|
USES= gl meson pkgconfig tar:xz
|
|
|
|
USE_GL= opengl
|
|
USE_LDCONFIG= yes
|
|
|
|
MESON_ARGS= -Ddefault_library=shared
|
|
|
|
.include <bsd.port.mk>
|