Martin Jansa 565d6eaac1
gpicview: enable gtk3 PACKAGECONFIG only when gtk+3 is available and depend on libx11
* add dependency on libx11 and require x11
* x11 doesn't seem to be optional:
  https://github.com/lxde/gpicview/blob/master/configure.ac#L57

| checking pkg-config is at least version 0.9.0... yes
| checking for gtk+-3.0 >= 3.0.0... yes
| checking for x11... no
| configure: error: Package requirements (x11) were not met:
|
| No package 'x11' found

* use gtk+ when gtk+3 isn't available to fix:
  https://lists.openembedded.org/g/openembedded-devel/message/118307

| checking pkg-config is at least version 0.9.0... yes
| checking for gtk+-2.0 >= 2.12.0... no
| configure: error: Package requirements (gtk+-2.0 >= 2.12.0) were not met:
|
| No package 'gtk+-2.0' found

  with combination of required x11 at least one gtk version should be
  available (in builds with x11 in DISTRO_FEATURES)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-09 09:16:08 -07:00
..