mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
41 lines
1.7 KiB
BlitzBasic
41 lines
1.7 KiB
BlitzBasic
DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \
|
|
Utility Toolkit (GLUT) library"
|
|
HOMEPAGE = "https://freeglut.sourceforge.net"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"
|
|
|
|
SRC_URI = "\
|
|
https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz \
|
|
file://0001-Add-support-for-legacy-OpenGL.patch \
|
|
"
|
|
SRC_URI[sha256sum] = "674dcaff25010e09e450aec458b8870d9e98c46f99538db457ab659b321d9989"
|
|
|
|
inherit cmake features_check pkgconfig
|
|
|
|
# depends on virtual/libgl and libxi
|
|
REQUIRED_DISTRO_FEATURES = "opengl x11"
|
|
|
|
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 glvnd', d)} \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)}"
|
|
PACKAGECONFIG[glvnd] = "-DOpenGL_GL_PREFERENCE=GLVND,-DOpenGL_GL_PREFERENCE=LEGACY, libglvnd"
|
|
PACKAGECONFIG[gles] = "-DFREEGLUT_GLES=ON,-DFREEGLUT_GLES=OFF,"
|
|
PACKAGECONFIG[wayland] = "-DFREEGLUT_WAYLAND=ON,-DFREEGLUT_WAYLAND=OFF,libxkbcommon"
|
|
PACKAGECONFIG[demos] = "-DFREEGLUT_BUILD_DEMOS=ON,-DFREEGLUT_BUILD_DEMOS=OFF,"
|
|
PACKAGECONFIG[x11] = ",,virtual/libx11 libice libxmu libglu libxrandr libxext"
|
|
|
|
# Add -Wno-implicit-function-declaration since it might be otherwise treated at
|
|
# error by clang16+ and this is not really a problem
|
|
CFLAGS += "-Wno-implicit-function-declaration"
|
|
|
|
PROVIDES += "mesa-glut"
|
|
|
|
DEPENDS = "virtual/libgl libxi"
|
|
|
|
UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
|
|
UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
|
|
|
|
do_install:append() {
|
|
# Remove buildpaths
|
|
sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake
|
|
}
|