git: f807bbc06742 - main - devel/raylib: update to 4.2.0

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Tue, 04 Oct 2022 16:14:24 UTC
The branch main has been updated by fernape:

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

commit f807bbc06742ef806581b79e6e3be932a19391d5
Author:     Martin Filla <freebsd@sysctl.cz>
AuthorDate: 2022-10-03 06:17:49 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-10-04 16:10:50 +0000

    devel/raylib: update to 4.2.0
    
    PR:             266728
    Reported by:    freebsd@sysctl.cz (maintainer)
---
 devel/raylib/Makefile                                     |  3 +--
 devel/raylib/distinfo                                     |  6 +++---
 .../raylib/files/patch-cmake_LibraryConfigurations.cmake  | 11 +++++++++++
 devel/raylib/files/patch-src_rcore.c                      | 15 +++++++++++++++
 devel/raylib/pkg-plist                                    |  6 ++----
 5 files changed, 32 insertions(+), 9 deletions(-)

diff --git a/devel/raylib/Makefile b/devel/raylib/Makefile
index 9f1c5a2885cb..1e9b62e50fcf 100644
--- a/devel/raylib/Makefile
+++ b/devel/raylib/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	raylib
-DISTVERSION=	4.0.0
+DISTVERSION=	4.2.0
 CATEGORIES=	devel education
 
 MAINTAINER=	freebsd@sysctl.cz
@@ -31,7 +31,6 @@ post-install:
 	${INSTALL_DATA}	${WRKSRC}/src/raylib.h \
 		${WRKSRC}/src/raymath.h \
 		${WRKSRC}/src/rlgl.h \
-		${WRKSRC}/src/extras/physac.h \
 		${STAGEDIR}${PREFIX}/include
 
 .include <bsd.port.mk>
diff --git a/devel/raylib/distinfo b/devel/raylib/distinfo
index 41ce6e8cb060..93b3aa2f379f 100644
--- a/devel/raylib/distinfo
+++ b/devel/raylib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1636017345
-SHA256 (raysan5-raylib-4.0.0_GH0.tar.gz) = 11f6087dc7bedf9efb3f69c0c872f637e421d914e5ecea99bbe7781f173dc38c
-SIZE (raysan5-raylib-4.0.0_GH0.tar.gz) = 30985161
+TIMESTAMP = 1664546814
+SHA256 (raysan5-raylib-4.2.0_GH0.tar.gz) = 676217604a5830cb4aa31e0ede0e4233c942e2fc5c206691bded58ebcd82a590
+SIZE (raysan5-raylib-4.2.0_GH0.tar.gz) = 31301099
diff --git a/devel/raylib/files/patch-cmake_LibraryConfigurations.cmake b/devel/raylib/files/patch-cmake_LibraryConfigurations.cmake
new file mode 100644
index 000000000000..451cdb913bdb
--- /dev/null
+++ b/devel/raylib/files/patch-cmake_LibraryConfigurations.cmake
@@ -0,0 +1,11 @@
+--- cmake/LibraryConfigurations.cmake.orig	2022-09-30 14:46:52 UTC
++++ cmake/LibraryConfigurations.cmake
+@@ -27,7 +27,7 @@ if (${PLATFORM} MATCHES "Desktop")
+             find_library(OSS_LIBRARY ossaudio)
+         endif ()
+ 
+-        set(LIBS_PRIVATE m atomic pthread ${OPENGL_LIBRARIES} ${OSS_LIBRARY})
++        set(LIBS_PRIVATE m pthread ${OPENGL_LIBRARIES} ${OSS_LIBRARY})
+ 
+         if (USE_AUDIO)
+             set(LIBS_PRIVATE ${LIBS_PRIVATE} dl)
diff --git a/devel/raylib/files/patch-src_rcore.c b/devel/raylib/files/patch-src_rcore.c
new file mode 100644
index 000000000000..3ff32dcde4f8
--- /dev/null
+++ b/devel/raylib/files/patch-src_rcore.c
@@ -0,0 +1,15 @@
+--- src/rcore.c.orig	2022-09-30 14:25:29 UTC
++++ src/rcore.c
+@@ -239,6 +239,12 @@
+     #endif
+ #endif
+ 
++// TODO: HACK: Added flag if not provided by GLFW when using external library    
++// Latest GLFW release (GLFW 3.3.8) does not implement this flag, it was added for 3.4.0-dev
++#if !defined(GLFW_MOUSE_PASSTHROUGH)
++	 #define GLFW_MOUSE_PASSTHROUGH      0x0002000D
++#endif
++
+ #if defined(PLATFORM_ANDROID)
+     //#include <android/sensor.h>           // Required for: Android sensors functions (accelerometer, gyroscope, light...)
+     #include <android/window.h>             // Required for: AWINDOW_FLAG_FULLSCREEN definition and others
diff --git a/devel/raylib/pkg-plist b/devel/raylib/pkg-plist
index 04d6477ff6b6..04ea33cb9d30 100644
--- a/devel/raylib/pkg-plist
+++ b/devel/raylib/pkg-plist
@@ -1,11 +1,9 @@
-include/physac.h
 include/raylib.h
 include/raymath.h
-include/raudio.h
 include/rlgl.h
 lib/cmake/raylib/raylib-config-version.cmake
 lib/cmake/raylib/raylib-config.cmake
 lib/libraylib.so
-lib/libraylib.so.4.0.0
-lib/libraylib.so.400
+lib/libraylib.so.4.2.0
+lib/libraylib.so.420
 libdata/pkgconfig/raylib.pc