diff options
-rw-r--r-- | meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb index 627ce23544..86b94149bc 100644 --- a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb +++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb | |||
@@ -6,14 +6,24 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb" | |||
6 | SRC_URI = "https://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz" | 6 | SRC_URI = "https://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz" |
7 | SRC_URI[sha256sum] = "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec" | 7 | SRC_URI[sha256sum] = "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec" |
8 | 8 | ||
9 | inherit cmake features_check | 9 | inherit cmake features_check pkgconfig |
10 | 10 | ||
11 | # depends on virtual/libx11, virtual/libgl | 11 | # depends on virtual/libgl |
12 | REQUIRED_DISTRO_FEATURES = "x11 opengl" | 12 | REQUIRED_DISTRO_FEATURES = "opengl" |
13 | 13 | ||
14 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" | ||
15 | PACKAGECONFIG[gles] = "-DFREEGLUT_GLES=ON,-DFREEGLUT_GLES=OFF," | ||
16 | PACKAGECONFIG[wayland] = "-DFREEGLUT_WAYLAND=ON,-DFREEGLUT_WAYLAND=OFF,libxkbcommon" | ||
17 | PACKAGECONFIG[demos] = "-DFREEGLUT_BUILD_DEMOS=ON,-DFREEGLUT_BUILD_DEMOS=OFF," | ||
18 | PACKAGECONFIG[x11] = ",,virtual/libx11 libice libxmu libglu libxrandr libxext" | ||
14 | # Do not use -fno-common, check back when upgrading to new version it might not be needed | 19 | # Do not use -fno-common, check back when upgrading to new version it might not be needed |
15 | CFLAGS += "-fcommon" | 20 | CFLAGS += "-fcommon" |
16 | 21 | ||
17 | PROVIDES += "mesa-glut" | 22 | PROVIDES += "mesa-glut" |
18 | 23 | ||
19 | DEPENDS = "virtual/libx11 libxmu libxi virtual/libgl libglu libxrandr" | 24 | DEPENDS = "virtual/libgl libxi" |
25 | |||
26 | do_install:append() { | ||
27 | # Remove buildpaths | ||
28 | sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake | ||
29 | } | ||