gst1-validate: fix compile with cairo support
authorPeter Seiderer <ps.report@gmx.net>
Tue, 27 Oct 2015 20:58:30 +0000 (21:58 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 27 Oct 2015 21:50:05 +0000 (22:50 +0100)
In case cairo support is (auto-)detected cairo PNG support
is required.

Fixes ([1]):

../gst-libs/gst/video/.libs/libgstvalidatevideo-1.0.so: undefined reference to `cairo_surface_write_to_png'
../gst-libs/gst/video/.libs/libgstvalidatevideo-1.0.so: undefined reference to `cairo_image_surface_create_from_png'
collect2: error: ld returned 1 exit status

[1] http://autobuild.buildroot.net/results/c5e/c5eb6cb12dba559226c67f5d258cc151aa8a8d3a

[Peter: reworded comment, dropped extra line]
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gstreamer1/gst1-validate/Config.in
package/gstreamer1/gst1-validate/gst1-validate.mk

index 34ec85ff4a09ea46d418250440c87961ceadb57b..a9bb2aa388be41886f030e38a1fb030a73117773 100644 (file)
@@ -3,6 +3,8 @@ config BR2_PACKAGE_GST1_VALIDATE
        depends on BR2_PACKAGE_PYTHON
        select BR2_PACKAGE_GST1_PLUGINS_BASE
        select BR2_PACKAGE_PYTHON_PYEXPAT
+       # cairo is autodetected but needs PNG support
+       select BR2_PACKAGE_CAIRO_PNG if BR2_PACKAGE_CAIRO
        help
          GstValidate is a tool that allows GStreamer developers to
          check that the GstElements they write behave the way they
index b8b09daf07b5c24f3790cbe76e4c3a7dfe267187..a7d66be46113e715e08368e2e54a5040bd341cc6 100644 (file)
@@ -12,6 +12,11 @@ GST1_VALIDATE_LICENSE_FILES = COPYING
 
 GST1_VALIDATE_CONF_OPTS = --disable-sphinx-doc
 
-GST1_VALIDATE_DEPENDENCIES = gstreamer1 gst1-plugins-base host-python python
+GST1_VALIDATE_DEPENDENCIES = \
+       gstreamer1 \
+       gst1-plugins-base \
+       host-python \
+       python \
+       $(if $(BR2_PACKAGE_CAIRO),cairo)
 
 $(eval $(autotools-package))