jasper: enable opengl only wih x11

The opengl PACKAGECONFIG depends on freeglut, but after commit
f721876add that's only available
with x11. Enable it only when both openg and x11 are available.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Samuli Piippo authored and Khem Raj committed 2023-12-13 10:42:12 -08:00
1 parent 0a0ea87b8d
commit 5f76240e88
1 file changed
+1 -1
@@ -18,7 +18,7 @@ do_configure:prepend() {
EXTRA_OECMAKE:append = " -DJAS_STDC_VERSION=${JAS_STDC_VERSION}"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl', '', d)} \
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)} \
jpeg"
PACKAGECONFIG[jpeg] = "-DJAS_ENABLE_LIBJPEG=ON,-DJAS_ENABLE_LIBJPEG=OFF,jpeg,"