blob: b433900bb0628e6d5215eff08cbbf1a17c331d0f [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \
2 Utility Toolkit (GLUT) library"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"
5
6SRC_URI = "https://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz"
Patrick Williams2194f502022-10-16 14:26:09 -05007SRC_URI[sha256sum] = "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec"
Andrew Geissler82c905d2020-04-13 13:39:40 -05008
Andrew Geisslerc5535c92023-01-27 16:10:19 -06009inherit cmake features_check pkgconfig
Andrew Geissler82c905d2020-04-13 13:39:40 -050010
Andrew Geisslerc5535c92023-01-27 16:10:19 -060011# depends on virtual/libgl
12REQUIRED_DISTRO_FEATURES = "opengl"
Andrew Geissler82c905d2020-04-13 13:39:40 -050013
Andrew Geisslerc5535c92023-01-27 16:10:19 -060014PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
15PACKAGECONFIG[gles] = "-DFREEGLUT_GLES=ON,-DFREEGLUT_GLES=OFF,"
16PACKAGECONFIG[wayland] = "-DFREEGLUT_WAYLAND=ON,-DFREEGLUT_WAYLAND=OFF,libxkbcommon"
17PACKAGECONFIG[demos] = "-DFREEGLUT_BUILD_DEMOS=ON,-DFREEGLUT_BUILD_DEMOS=OFF,"
18PACKAGECONFIG[x11] = ",,virtual/libx11 libice libxmu libglu libxrandr libxext"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050019# Add -Wno-implicit-function-declaration since it might be otherwise treated at
20# error by clang16+ and this is not really a problem
21CFLAGS += "-Wno-implicit-function-declaration"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050022
Andrew Geissler82c905d2020-04-13 13:39:40 -050023PROVIDES += "mesa-glut"
24
Andrew Geisslerc5535c92023-01-27 16:10:19 -060025DEPENDS = "virtual/libgl libxi"
26
27do_install:append() {
28 # Remove buildpaths
29 sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake
30}