diff --git a/debian.upstream/rules b/debian.upstream/rules index 0ec96be6ec..75787a9474 100755 --- a/debian.upstream/rules +++ b/debian.upstream/rules @@ -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