debian: fix build of GStreamer 0.10 packages.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 17 Apr 2013 11:17:26 +0000 (13:17 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 17 Apr 2013 12:35:39 +0000 (14:35 +0200)
Fix build of Debian packages to scan the actual GStreamer API version
from the generated changelog file.

debian.upstream/rules

index 0ec96be..75787a9 100755 (executable)
@@ -5,7 +5,8 @@ include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/cdbs/1/rules/utils.mk
 
-gst_pkgname = $(shell dpkg-parsechangelog | grep ^Source: | cut -d' ' -f2)
+GST_API_VERSION = $(shell echo "$(DEB_SOURCE_PACKAGE)" | \
+       sed -n '/gstreamer\([0-9][0-9.]*\)-vaapi/s//\1/p')
 
 # Allow SMP build
 ifeq ($(DEBIAN_BUILD_NCPUS),)
@@ -18,7 +19,8 @@ MAKE += $(EXTRA_MAKE_FLAGS)
 
 # Allow HTML documentation build
 indep_conf_flags = \
-       --with-html-dir=\$${prefix}/share/doc/$(gst_pkgname)
+       --with-html-dir=\$${prefix}/share/doc/$(DEB_SOURCE_PACKAGE) \
+       --with-gstreamer-api=$(GST_API_VERSION)
 
 # only build the docs if gtk-doc-tools is installed, i.e. binary-indep is
 # called