debian: fix build of GStreamer 0.10 packages.

Fix build of Debian packages to scan the actual GStreamer API version
from the generated changelog file.
This commit is contained in:
Gwenole Beauchesne 2013-04-17 13:17:26 +02:00
parent a0e587667a
commit cb076da7e1

View file

@ -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