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
2023-12-13 08:43:27 +00:00
committed by Khem Raj
parent 0a0ea87b8d
commit 5f76240e88
@@ -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,"