summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb')
-rw-r--r--meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb
new file mode 100644
index 0000000000..5c6ab1a1d7
--- /dev/null
+++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb
@@ -0,0 +1,40 @@
1DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \
2 Utility Toolkit (GLUT) library"
3HOMEPAGE = "https://freeglut.sourceforge.net"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"
6
7SRC_URI = "\
8 https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz \
9 file://0001-Add-support-for-legacy-OpenGL.patch \
10 "
11SRC_URI[sha256sum] = "674dcaff25010e09e450aec458b8870d9e98c46f99538db457ab659b321d9989"
12
13inherit cmake features_check pkgconfig
14
15# depends on virtual/libgl and libxi
16REQUIRED_DISTRO_FEATURES = "opengl x11"
17
18PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 glvnd', d)} \
19 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)}"
20PACKAGECONFIG[glvnd] = "-DOpenGL_GL_PREFERENCE=GLVND,-DOpenGL_GL_PREFERENCE=LEGACY, libglvnd"
21PACKAGECONFIG[gles] = "-DFREEGLUT_GLES=ON,-DFREEGLUT_GLES=OFF,"
22PACKAGECONFIG[wayland] = "-DFREEGLUT_WAYLAND=ON,-DFREEGLUT_WAYLAND=OFF,libxkbcommon"
23PACKAGECONFIG[demos] = "-DFREEGLUT_BUILD_DEMOS=ON,-DFREEGLUT_BUILD_DEMOS=OFF,"
24PACKAGECONFIG[x11] = ",,virtual/libx11 libice libxmu libglu libxrandr libxext"
25
26# Add -Wno-implicit-function-declaration since it might be otherwise treated at
27# error by clang16+ and this is not really a problem
28CFLAGS += "-Wno-implicit-function-declaration"
29
30PROVIDES += "mesa-glut"
31
32DEPENDS = "virtual/libgl libxi"
33
34UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
35UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
36
37do_install:append() {
38 # Remove buildpaths
39 sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake
40}