debian: fix Wayland build dependencies.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 28 Sep 2012 15:39:43 +0000 (17:39 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 28 Sep 2012 15:54:50 +0000 (17:54 +0200)
configure.ac
debian.upstream/control.in

index 3b77e3c..7f4f8ad 100644 (file)
@@ -41,6 +41,9 @@ m4_define([gst_plugins_bad_micro_version], [22])
 m4_define([gst_plugins_bad_version],
           [gst_plugins_bad_major_version.gst_plugins_bad_minor_version.gst_plugins_bad_micro_version])
 
+# Wayland minimum version number
+m4_define([wayland_api_version], [0.95.0])
+
 # VA-API minimum version number
 m4_define([va_api_version],     [0.30.4])
 m4_define([va_api_drm_version], [0.33.0])
@@ -83,6 +86,9 @@ AC_SUBST(GST_VAAPI_MAJOR_VERSION)
 LIBVA_PACKAGE_VERSION=libva_x11_package_version
 AC_SUBST(LIBVA_PACKAGE_VERSION)
 
+WAYLAND_API_VERSION=wayland_api_version
+AC_SUBST(WAYLAND_API_VERSION)
+
 dnl Versions for GStreamer and plugins-base
 GST_MAJORMINOR=gst_major_minor_version
 GST_VERSION_REQUIRED=gst_version
@@ -370,7 +376,7 @@ fi
 dnl Check for Wayland
 USE_WAYLAND=0
 if test "$enable_wayland" = "yes"; then
-    PKG_CHECK_MODULES(WAYLAND, [wayland-client],
+    PKG_CHECK_MODULES(WAYLAND, [wayland-client >= wayland_api_version],
         [USE_WAYLAND=1], [USE_WAYLAND=0])
 
     if test $USE_WAYLAND -eq 1; then
index c40d5b0..661856c 100644 (file)
@@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 5),
 @USE_DRM_TRUE@        libdrm-dev, libudev-dev,
 @USE_X11_TRUE@        libx11-dev, libxrandr-dev,
 @USE_GLX_TRUE@        libgl-dev,
-@USE_WAYLAND_TRUE@            libwayland-dev,
+@USE_WAYLAND_TRUE@            libwayland-dev (>= @WAYLAND_API_VERSION@),
               libva-dev (>= @LIBVA_PACKAGE_VERSION@)
 Build-Depends-Indep: gtk-doc-tools (>= @GTKDOC_VERSION@)
 Standards-Version: 3.7.2