diff --git a/devel/raylib/Makefile b/devel/raylib/Makefile index 1e9b62e50fcf..a80232a59a4c 100644 --- a/devel/raylib/Makefile +++ b/devel/raylib/Makefile @@ -1,36 +1,31 @@ PORTNAME= raylib -DISTVERSION= 4.2.0 +DISTVERSION= 5.0 CATEGORIES= devel education MAINTAINER= freebsd@sysctl.cz COMMENT= Library to learn videogames programming WWW= https://www.raylib.com/ LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= glfw>=3.3:graphics/glfw LIB_DEPENDS= libglfw.so:graphics/glfw USES= cmake gl localbase:ldflags xorg USE_GITHUB= yes GH_ACCOUNT= raysan5 -USE_GL= gl glu +USE_GL= glu opengl USE_LDCONFIG= yes USE_XORG= ice sm x11 xcursor xext xi xinerama xrandr xxf86vm CMAKE_ON= BUILD_SHARED_LIBS USE_EXTERNAL_GLFW CMAKE_OFF= BUILD_EXAMPLES BUILD_GAMES STATIC -post-extract: -# Remove bundled files. - ${RM} -r ${WRKSRC}/src/external/glfw ${WRKSRC}/src/external/include ${WRKSRC}/src/rglfw.c - post-install: # Install all parts for raylib ${INSTALL_DATA} ${WRKSRC}/src/raylib.h \ ${WRKSRC}/src/raymath.h \ ${WRKSRC}/src/rlgl.h \ ${STAGEDIR}${PREFIX}/include .include diff --git a/devel/raylib/distinfo b/devel/raylib/distinfo index 93b3aa2f379f..19721f344ef9 100644 --- a/devel/raylib/distinfo +++ b/devel/raylib/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1664546814 -SHA256 (raysan5-raylib-4.2.0_GH0.tar.gz) = 676217604a5830cb4aa31e0ede0e4233c942e2fc5c206691bded58ebcd82a590 -SIZE (raysan5-raylib-4.2.0_GH0.tar.gz) = 31301099 +TIMESTAMP = 1708772122 +SHA256 (raysan5-raylib-5.0_GH0.tar.gz) = 98f049b9ea2a9c40a14e4e543eeea1a7ec3090ebdcd329c4ca2cf98bc9793482 +SIZE (raysan5-raylib-5.0_GH0.tar.gz) = 32701105 diff --git a/devel/raylib/files/patch-cmake_LibraryConfigurations.cmake b/devel/raylib/files/patch-cmake_LibraryConfigurations.cmake deleted file mode 100644 index 451cdb913bdb..000000000000 --- a/devel/raylib/files/patch-cmake_LibraryConfigurations.cmake +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 deleted file mode 100644 index 3ff32dcde4f8..000000000000 --- a/devel/raylib/files/patch-src_rcore.c +++ /dev/null @@ -1,15 +0,0 @@ ---- 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 // Required for: Android sensors functions (accelerometer, gyroscope, light...) - #include // Required for: AWINDOW_FLAG_FULLSCREEN definition and others diff --git a/devel/raylib/pkg-plist b/devel/raylib/pkg-plist index 04ea33cb9d30..4a5864329127 100644 --- a/devel/raylib/pkg-plist +++ b/devel/raylib/pkg-plist @@ -1,9 +1,9 @@ include/raylib.h include/raymath.h include/rlgl.h lib/cmake/raylib/raylib-config-version.cmake lib/cmake/raylib/raylib-config.cmake lib/libraylib.so -lib/libraylib.so.4.2.0 -lib/libraylib.so.420 +lib/libraylib.so.4.5.0 +lib/libraylib.so.450 libdata/pkgconfig/raylib.pc