debian: fix conditional build of packages.

Make it still possible to build package even if one of the build dependencies
for a specific video backend is not available.
This commit is contained in:
Gwenole Beauchesne 2012-09-28 17:38:17 +02:00
parent a6a1ea09a3
commit dd915c15c8

View file

@ -7,6 +7,10 @@ Build-Depends: debhelper (>= 5),
libglib2.0-dev (>= @GLIB_VERSION_REQUIRED@),
libgstreamer@GST_MAJORMINOR@-dev (>= @GST_VERSION_REQUIRED@),
libgstreamer-plugins-base@GST_MAJORMINOR@-dev (>= @GST_PLUGINS_BASE_VERSION_REQUIRED@),
@USE_DRM_TRUE@ libdrm-dev, libudev-dev,
@USE_X11_TRUE@ libx11-dev, libxrandr-dev,
@USE_GLX_TRUE@ libgl-dev,
@USE_WAYLAND_TRUE@ libwayland-dev,
libva-dev (>= @LIBVA_PACKAGE_VERSION@)
Build-Depends-Indep: gtk-doc-tools (>= @GTKDOC_VERSION@)
Standards-Version: 3.7.2
@ -49,49 +53,51 @@ Description: GStreamer libraries from the "vaapi" set
.
This package contains common libraries for the "vaapi" set.
Package: libgstvaapi-drm-@GST_VAAPI_MAJOR_VERSION@
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: GStreamer libraries from the "vaapi" set
VA-API support libraries for GStreamer.
.
This package contains headless libraries for the "vaapi" set.
@USE_DRM_TRUE@Package: libgstvaapi-drm-@GST_VAAPI_MAJOR_VERSION@
@USE_DRM_TRUE@Section: libs
@USE_DRM_TRUE@Architecture: any
@USE_DRM_TRUE@Depends: ${shlibs:Depends}, ${misc:Depends}
@USE_DRM_TRUE@Description: GStreamer libraries from the "vaapi" set
@USE_DRM_TRUE@ VA-API support libraries for GStreamer.
@USE_DRM_TRUE@ .
@USE_DRM_TRUE@ This package contains headless libraries for the "vaapi" set.
Package: libgstvaapi-x11-@GST_VAAPI_MAJOR_VERSION@
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: GStreamer libraries from the "vaapi" set
VA-API support libraries for GStreamer.
.
This package contains x11 libraries for the "vaapi" set.
@USE_X11_TRUE@Package: libgstvaapi-x11-@GST_VAAPI_MAJOR_VERSION@
@USE_X11_TRUE@Section: libs
@USE_X11_TRUE@Architecture: any
@USE_X11_TRUE@Depends: ${shlibs:Depends}, ${misc:Depends}
@USE_X11_TRUE@Description: GStreamer libraries from the "vaapi" set
@USE_X11_TRUE@ VA-API support libraries for GStreamer.
@USE_X11_TRUE@ .
@USE_X11_TRUE@ This package contains x11 libraries for the "vaapi" set.
Package: libgstvaapi-glx-@GST_VAAPI_MAJOR_VERSION@
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: GStreamer libraries from the "vaapi" set
VA-API support libraries for GStreamer.
.
This package contains glx libraries for the "vaapi" set.
@USE_GLX_TRUE@Package: libgstvaapi-glx-@GST_VAAPI_MAJOR_VERSION@
@USE_GLX_TRUE@Section: libs
@USE_GLX_TRUE@Architecture: any
@USE_GLX_TRUE@Depends: ${shlibs:Depends}, ${misc:Depends}
@USE_GLX_TRUE@Description: GStreamer libraries from the "vaapi" set
@USE_GLX_TRUE@ VA-API support libraries for GStreamer.
@USE_GLX_TRUE@ .
@USE_GLX_TRUE@ This package contains glx libraries for the "vaapi" set.
Package: libgstvaapi-wayland-@GST_VAAPI_MAJOR_VERSION@
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: GStreamer libraries from the "vaapi" set
VA-API support libraries for GStreamer.
.
This package contains Wayland libraries for the "vaapi" set.
@USE_WAYLAND_TRUE@Package: libgstvaapi-wayland-@GST_VAAPI_MAJOR_VERSION@
@USE_WAYLAND_TRUE@Section: libs
@USE_WAYLAND_TRUE@Architecture: any
@USE_WAYLAND_TRUE@Depends: ${shlibs:Depends}, ${misc:Depends}
@USE_WAYLAND_TRUE@Description: GStreamer libraries from the "vaapi" set
@USE_WAYLAND_TRUE@ VA-API support libraries for GStreamer.
@USE_WAYLAND_TRUE@ .
@USE_WAYLAND_TRUE@ This package contains Wayland libraries for the "vaapi" set.
Package: libgstvaapi-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends},
libgstvaapi@GST_VAAPI_MAJOR_VERSION@ (= ${Source-Version}),
libgstvaapi-x11-@GST_VAAPI_MAJOR_VERSION@ (= ${Source-Version}),
libgstvaapi-glx-@GST_VAAPI_MAJOR_VERSION@ (= ${Source-Version})
@USE_DRM_TRUE@ libgstvaapi-drm-@GST_VAAPI_MAJOR_VERSION@ (= ${Source-Version}),
@USE_X11_TRUE@ libgstvaapi-x11-@GST_VAAPI_MAJOR_VERSION@ (= ${Source-Version}),
@USE_GLX_TRUE@ libgstvaapi-glx-@GST_VAAPI_MAJOR_VERSION@ (= ${Source-Version}),
@USE_WAYLAND_TRUE@ libgstvaapi-wayland-@GST_VAAPI_MAJOR_VERSION@ (= ${Source-Version}),
libgstvaapi@GST_VAAPI_MAJOR_VERSION@ (= ${Source-Version})
Description: GStreamer development files for libraries from the "vaapi" set
GStreamer/VA-API development files.
.