mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
graphics/libGLU: fix build with clang 16
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
This commit is contained in:
parent
8948cc04eb
commit
88f549c0d6
2 changed files with 7 additions and 2 deletions
|
@ -1,11 +1,14 @@
|
|||
PORTNAME= libGLU
|
||||
PORTVERSION= 9.0.2
|
||||
PORTREVISION= 1
|
||||
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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
TIMESTAMP = 1624573301
|
||||
TIMESTAMP = 1682367009
|
||||
SHA256 (glu-9.0.2.tar.xz) = 6e7280ff585c6a1d9dfcdf2fca489251634b3377bfc33c29e4002466a38d02d4
|
||||
SIZE (glu-9.0.2.tar.xz) = 436176
|
||||
SHA256 (b6c308172993.patch) = 54ea23facb71f3e2f1cdab535f95ea55e74982b6ec70763d4d39937a5e456487
|
||||
SIZE (b6c308172993.patch) = 1187
|
||||
|
|
Loading…
Add table
Reference in a new issue