git: 9c508558960e - main - graphics/glvis: fix build on big-endian architectures

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 13 Sep 2022 17:14:17 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9c508558960ee6fc98e04b27ee079e6586ba1bd4

commit 9c508558960ee6fc98e04b27ee079e6586ba1bd4
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-09-13 17:04:26 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-09-13 17:04:26 +0000

    graphics/glvis: fix build on big-endian architectures
---
 graphics/glvis/files/patch-lib_aux__vis.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/graphics/glvis/files/patch-lib_aux__vis.cpp b/graphics/glvis/files/patch-lib_aux__vis.cpp
new file mode 100644
index 000000000000..a049d97c2e3c
--- /dev/null
+++ b/graphics/glvis/files/patch-lib_aux__vis.cpp
@@ -0,0 +1,13 @@
+--- lib/aux_vis.cpp.orig	2022-09-11 23:06:14 UTC
++++ lib/aux_vis.cpp
+@@ -822,8 +822,8 @@ const char *glvis_screenshot_ext = ".bmp";
+ #if SDL_BYTEORDER == SDL_BIG_ENDIAN
+ Uint32 rmask = 0xff000000;
+ Uint32 gmask = 0x00ff0000;
+-Uint32 bmask = 0x0000ff00:
+-               Uint32 amask = 0x000000ff;
++Uint32 bmask = 0x0000ff00;
++Uint32 amask = 0x000000ff;
+ #else // little endian, like x86
+ Uint32 rmask = 0x000000ff;
+ Uint32 gmask = 0x0000ff00;