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),)
# 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