summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vermaete <jan.vermaete@gmail.com>2025-05-30 19:11:39 +0200
committerKhem Raj <raj.khem@gmail.com>2025-05-30 13:58:18 -0700
commitef8160b559a89585f811e17f15ccf334b2424c07 (patch)
tree5fc1289ea673037b8e9c4958c4b4a9399fef9b17
parent81958300f23edfd2cd78eb43ee27cbd3f339f979 (diff)
downloadmeta-openembedded-ef8160b559a89585f811e17f15ccf334b2424c07.tar.gz
freeglut: version bump (3.4.0 -> 3.6.0)
- apply upstream patch to compile at master - added HOMEPAGE - downloads are not from github "Stable releases are available on our releases page on github, where you can find more information about each release. All releases are also mirrored on the old downloads page on sourceforge." @see: https://freeglut.sourceforge.net/ - fixed 'devtool check-upgrade-status' Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/freeglut/freeglut/0001-egl-fix-fgPlatformDestroyContext-prototype-for-C23.patch30
-rw-r--r--meta-oe/recipes-graphics/freeglut/freeglut_3.6.0.bb (renamed from meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb)14
2 files changed, 41 insertions, 3 deletions
diff --git a/meta-oe/recipes-graphics/freeglut/freeglut/0001-egl-fix-fgPlatformDestroyContext-prototype-for-C23.patch b/meta-oe/recipes-graphics/freeglut/freeglut/0001-egl-fix-fgPlatformDestroyContext-prototype-for-C23.patch
new file mode 100644
index 0000000000..13ba2316f3
--- /dev/null
+++ b/meta-oe/recipes-graphics/freeglut/freeglut/0001-egl-fix-fgPlatformDestroyContext-prototype-for-C23.patch
@@ -0,0 +1,30 @@
1From 800772e993a3ceffa01ccf3fca449d3279cde338 Mon Sep 17 00:00:00 2001
2From: Sam James <sam@gentoo.org>
3Date: Sun, 17 Nov 2024 01:14:26 +0000
4Subject: [PATCH 1/1] egl: fix fgPlatformDestroyContext prototype for C23
5
6C23 removes unprototyped functions, so this conflicted with the definition
7in fg_init_x11.c.
8
9Bug: https://github.com/freeglut/freeglut/issues/186
10
11Upstream-Status: Backport [https://github.com/freeglut/freeglut/commit/800772e993a3ceffa01ccf3fca449d3279cde338]
12---
13 src/egl/fg_init_egl.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/src/egl/fg_init_egl.h b/src/egl/fg_init_egl.h
17index 592c5221..8753dc0b 100644
18--- a/src/egl/fg_init_egl.h
19+++ b/src/egl/fg_init_egl.h
20@@ -28,6 +28,6 @@
21
22 extern void fghPlatformInitializeEGL();
23 extern void fghPlatformCloseDisplayEGL();
24-extern void fgPlatformDestroyContext();
25+extern void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext );
26
27 #endif
28--
292.39.5
30
diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.6.0.bb
index 2cd00b0349..ebd5fbcbce 100644
--- a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
+++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.6.0.bb
@@ -1,10 +1,15 @@
1DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \ 1DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \
2 Utility Toolkit (GLUT) library" 2 Utility Toolkit (GLUT) library"
3HOMEPAGE = "https://freeglut.sourceforge.net"
3LICENSE = "MIT" 4LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb" 5LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"
5 6
6SRC_URI = "https://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz" 7SRC_URI = "\
7SRC_URI[sha256sum] = "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec" 8 https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz \
9 file://0001-egl-fix-fgPlatformDestroyContext-prototype-for-C23.patch \
10"
11
12SRC_URI[sha256sum] = "9c3d4d6516fbfa0280edc93c77698fb7303e443c1aaaf37d269e3288a6c3ea52"
8 13
9inherit cmake features_check pkgconfig 14inherit cmake features_check pkgconfig
10 15
@@ -22,7 +27,10 @@ CFLAGS += "-Wno-implicit-function-declaration"
22 27
23PROVIDES += "mesa-glut" 28PROVIDES += "mesa-glut"
24 29
25DEPENDS = "virtual/libgl libxi" 30DEPENDS += "virtual/libgl libxi"
31
32UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
33UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
26 34
27do_install:append() { 35do_install:append() {
28 # Remove buildpaths 36 # Remove buildpaths