git: 778bdbf01b34 - main - games/lwjgl3: unbreak build after udpate zstd to 1.5.6

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Fri, 05 Apr 2024 01:23:20 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=778bdbf01b34407e8d4456c80844eb12262af780

commit 778bdbf01b34407e8d4456c80844eb12262af780
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-04-05 01:04:36 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-04-05 01:22:43 +0000

    games/lwjgl3: unbreak build after udpate zstd to 1.5.6
    
    Unbreak build after udpate zstd to 1.5.6 in b594c775ed2dbae25e509d198c462940f0dc9d5c.
    Upstream issue: https://github.com/LWJGL/lwjgl3/issues/968
    
    Reported by:    pkg-fallout
    Approved by:    arrowd (mentor, implicit)
---
 games/lwjgl3/files/patch-config_freebsd_build.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/games/lwjgl3/files/patch-config_freebsd_build.xml b/games/lwjgl3/files/patch-config_freebsd_build.xml
index e4ef6a9204eb..530d057d94a3 100644
--- a/games/lwjgl3/files/patch-config_freebsd_build.xml
+++ b/games/lwjgl3/files/patch-config_freebsd_build.xml
@@ -21,3 +21,12 @@
              </link>
          </build>
  
+@@ -410,7 +412,7 @@
+         </build>
+ 
+         <!-- zstd -->
+-        <build module="zstd" simple="true" if:true="${binding.zstd}">
++        <build module="zstd" simple="true" flags="-Wno-deprecated-declarations" if:true="${binding.zstd}">
+             <beforeCompile>
+                 <compile flags="-DZSTD_MULTITHREAD">
+                     <arg value="-I${module.lwjgl.rel}/xxhash/src/main/c"/>