diff options
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.bb | 40 |
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 @@ | |||
| 1 | DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \ | ||
| 2 | Utility Toolkit (GLUT) library" | ||
| 3 | HOMEPAGE = "https://freeglut.sourceforge.net" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb" | ||
| 6 | |||
| 7 | SRC_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 | " | ||
| 11 | SRC_URI[sha256sum] = "674dcaff25010e09e450aec458b8870d9e98c46f99538db457ab659b321d9989" | ||
| 12 | |||
| 13 | inherit cmake features_check pkgconfig | ||
| 14 | |||
| 15 | # depends on virtual/libgl and libxi | ||
| 16 | REQUIRED_DISTRO_FEATURES = "opengl x11" | ||
| 17 | |||
| 18 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 glvnd', d)} \ | ||
| 19 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)}" | ||
| 20 | PACKAGECONFIG[glvnd] = "-DOpenGL_GL_PREFERENCE=GLVND,-DOpenGL_GL_PREFERENCE=LEGACY, libglvnd" | ||
| 21 | PACKAGECONFIG[gles] = "-DFREEGLUT_GLES=ON,-DFREEGLUT_GLES=OFF," | ||
| 22 | PACKAGECONFIG[wayland] = "-DFREEGLUT_WAYLAND=ON,-DFREEGLUT_WAYLAND=OFF,libxkbcommon" | ||
| 23 | PACKAGECONFIG[demos] = "-DFREEGLUT_BUILD_DEMOS=ON,-DFREEGLUT_BUILD_DEMOS=OFF," | ||
| 24 | PACKAGECONFIG[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 | ||
| 28 | CFLAGS += "-Wno-implicit-function-declaration" | ||
| 29 | |||
| 30 | PROVIDES += "mesa-glut" | ||
| 31 | |||
| 32 | DEPENDS = "virtual/libgl libxi" | ||
| 33 | |||
| 34 | UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)" | ||
| 35 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" | ||
| 36 | |||
| 37 | do_install:append() { | ||
| 38 | # Remove buildpaths | ||
| 39 | sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake | ||
| 40 | } | ||
