13 Commits

Author SHA1 Message Date
Dmitry Baryshkov
f7735c9204
freeglut: split normal and gles packages
The freeglut and freeglut-gles libraries are not really compatible, they
have different SOnames, different ABI, etc. Some tools (e.g. OpenCL CTS)
expect the classical FreeGLUT rather than a GL ES version.

Restore original freeglut recipe and add freeglut-gles for the software
that needs it.

Fixes: 0b0cbd4c3ce1 ("freeglut: version 3.4.0 -> 3.8.0")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-06-08 23:16:32 -07:00
Jan Vermaete
0b0cbd4c3c
freeglut: version 3.4.0 -> 3.8.0
patch to add support for legacy OpenGL (Thanks Rob Woolley)

| -- Found OpenGL: /srv/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/x86-64-v3-poky-linux/freeglut/3.8.0/recipe-sysroot/usr/lib/libGL.so  found components: OpenGL
| -- Found PkgConfig: /srv/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/x86-64-v3-poky-linux/freeglut/3.8.0/recipe-sysroot-native/usr/bin/pkg-config (found version "0.29.2")
| CMake Error at /srv/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/x86-64-v3-poky-linux/freeglut/3.8.0/recipe-sysroot-native/usr/share/cmake-4.2/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
|   Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY)

Changlog:

2025-11-16  John Tsiombikas <nuclear@mutantstargoat.com>

	freeglut 3.8 changes:

	* New experimental Cocoa (native MacOS X) backend.
	* Add glutSwapInterval, to control vsync (currently X11 and win32 only).
	* glutExtensionSupported now also reports platform extensions (GLX/WGL).
	* Fix build issues with new cmake versions while maintaining
	  compatibility with old cmake.
	* Fix handling of UTF8 window/icon titles.
	* Fix issue with some X11 window managers not properly restoring
	  iconified windows (send _NET_ACTIVE_WINDOW EWMH client message).
	* Fix build issues with C23 compilers (empty argument list semantics).
	* Fix compatibility with older versions of windows which don't have
	  RAWHID support (before XP), by loading the entry points dynamically.
	* Fix glutInitDisplayString parsing of "aux", and add =N parsing support
	  to specify samples and auxbufs.
	* Various fixes and improvements in the GameCube/Wii backend.
	* Altbuild support for Solaris 2.6/SUN Workshop C.
	* Started conversion of documentation from the website to markdown in
	  the source tree: doc/api.md
	* Added the original GLUT manpages, with permission from Mark Kilgard.
	* New demos: accum, vsync, and windows.
	* Cleanup of some old and no longer relevant, or redundant comments in
	  the source code.
	* Removed some out of date README files, and updated others.

2024-06-08  John Tsiombikas <nuclear@member.fsf.org>

	freeglut 3.6 changes:

	* New platforms: Nintendo Gamecube and Nintendo Wii.
	* Minimum cmake version raised to 3.1.
	* Make XInput an optional dependency.
	* Fix incorrect modifier bit mapped to GLUT_ACTIVE_SUPER on X11.
	* Add support for ARM64 MSVC targets.
	* Fix for unicode builds on windows.
	* Fix build on some versions of MinGW carrying an incorrect winuser.h.
	* Fix menu-related memory leak when an error occurs.
	* Various build improvements & fixes.

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-24 13:18:30 -08:00
Jan Vermaete
6afcc7939e
freeglut: changed SRC_URI to github + added UPSTREAM_CHECK
- added HOMEPAGE
- downloads are now 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>
2025-08-20 23:48:31 -07:00
Markus Volk
0f4926c4b4
freeglut: allow to build with cmake 4
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-10 10:46:23 -07:00
Martin Jansa
f721876add freeglut: return x11 to REQUIRED_DISTRO_FEATURES
* depends on libxi causing:
ERROR: Nothing PROVIDES 'libxi' (but /OE/build/luneos-nanbield/meta-openembedded/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb DEPENDS on or otherwise requires it)
libxi was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'freeglut', 'libxi']

for distros with opengl but without x11 in DISTRO_FEATURES

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-20 22:15:39 -07:00
Khem Raj
00be11a73f freeglut: Drop -fcommon and add -Wno-implicit-function-declaration
-Wno-implicit-function-declaration is needed for keeping it going with
new compiler's e.g. clang16

-fcommon is no longer needed with this version of freeglut

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-13 19:48:02 -07:00
Khem Raj
a9212722c1 freeglut: Add packageconfigs for x11/wayland/gles
helps it compiling on on different openGL implementations which may not
implement fulll openGL specs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-11 08:37:58 -08:00
Wang Mingyu
5666061116 freeglut: upgrade 3.2.1 -> 3.4.0
Changelog:
=========
Add GLUT_ACTIVE_SUPER modifier, and corresponding GLUT_KEY_SUPER_L and GLUT_KEY_SUPER_R special keys.
Fix RGB mode (GLUT_RGBA) colors on 8bpp displays on windows (construct default RGB332 palette).
Fix indexed color context creation on X11 and windows (GLUT_INDEX).
Add missing colormap management functions for X11 and windows (glutSetColor, glutGetColor).
Fix crash when calling glutTimerFuncUcall.
Fix FreeBSD build by essentially disabling the joystick code for newer FreeBSD versions.
Add fallbacks for the old GLX (<1.3) context creation API (glXChooseVisual/glXCreateContext)
Add fallbacks for OpenGL 1.0 (no vertex arrays/client state).
Use nanosleep instead of usleep on UNIX, which is more widely supported on old UNIX systems.
Fix build on X11 if GL_SAMPLES is not defined.
Fix overly strict context version checking on Android leading to context creation failure in some cases.
Fix GLUT_CURSOR_INFO on windows, should be IDC_HAND, not IDC_HELP.
Fix mismatched font declarations on X11.
Add alternative simple ways to build freeglut with native tools only, without having to use cmake.
Fix build on windows with cmake 3.0.0. Explicitly link with gdi32.
Fix build on MSVC 2005.
Fix build on MacOS X. Link with all the necessary X libraries.
Fix build on SGI IRIX.
Fix build on Android (mismatched function prototypes and missing glutCreateMenuUcall).
Add support for the ninja multi-config generator.
Removed spurious dependency on a C++ compiler. One of the demos was being compiled as C++ for no reason.
Silence unnecessary warnings when VBOs or GLSL are not available.
New demo programs: 3dview, keyboard, joystick.
Documentation: added MacOS X build instructions.
Made it possible to eventually support building freeglut as a single compilation unit
Other minor fixes.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-08 11:36:57 -07:00
Khem Raj
6b3e7fe997 freeglut: Use -fcommon always
This package does not compile with -fno-common yet

errors out like
| /mnt/b/yoe/master/build/tmp/work/armv7vet2hf-neon-yoe-linux-musleabi/freeglut/3.2.1-r0/recipe-sysroot-native/usr/bin/arm-yoe-linux-musleabi/arm-yoe-linux-musleabi-ld: CMakeFiles/freeglut.dir/src/fg_gl2.c.o:/usr/src/debug/freeglut/3.2.1-
r0/freeglut-3.2.1/src/fg_gl2.h:72: multiple definition of `fghBindBuffer'; CMakeFiles/freeglut.dir/src/fg_geometry.c.o:/usr/src/debug/freeglut/3.2.1-r0/freeglut-3.2.1/src/fg_gl2.h:72: first defined here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-13 22:32:07 -07:00
Wang Mingyu
b0f1782bee freeglut: upgrade 3.0.0 -> 3.2.1
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-02 22:46:06 -08:00
Denys Dmytriyenko
4c00e5fed9 recipes: rename distro_features_check to features_check
Avoid warning due to the class rename in OE-Core.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-21 17:51:37 -08:00
mingli.yu@windriver.com
97e2e15689 freeglut: add opengl to REQUIRED_DISTRO_FEATURES
* Add opengl to REQUIRED_DISTRO_FEATURES as it depends on
  virtual/libgl

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-07-29 11:00:54 +02:00
Neena Busireddy
02b52eec17 freeglut: Add a recipe freeglut to replace mesa-glut
FreeGLUT is a free-software/open-source alternative to the OpenGL
Utility Toolkit (GLUT) library.
More information about this library can be found in
http://freeglut.sourceforge.net/

Signed-off-by: Neena Busireddy <neenareddy.busireddy@nxp.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-27 15:39:10 +02:00