3 include /usr/share/cdbs/1/rules/debhelper.mk
4 include /usr/share/cdbs/1/class/autotools.mk
5 include /usr/share/cdbs/1/rules/simple-patchsys.mk
6 include /usr/share/cdbs/1/rules/utils.mk
8 GST_API_VERSION = $(shell echo "$(DEB_SOURCE_PACKAGE)" | \
9 sed -n '/gstreamer\([0-9][0-9.]*\)-vaapi/s//\1/p')
12 ifeq ($(DEBIAN_BUILD_NCPUS),)
13 DEBIAN_BUILD_NCPUS = $(shell /usr/bin/getconf _NPROCESSORS_ONLN)
15 ifneq ($(DEBIAN_BUILD_NCPUS),)
16 EXTRA_MAKE_FLAGS += -j$(DEBIAN_BUILD_NCPUS)
18 MAKE += $(EXTRA_MAKE_FLAGS)
20 # Allow HTML documentation build
22 --with-html-dir=\$${prefix}/share/doc/$(DEB_SOURCE_PACKAGE) \
23 --with-gstreamer-api=$(GST_API_VERSION)
25 # only build the docs if gtk-doc-tools is installed, i.e. binary-indep is
27 ifeq ($(shell test "`dpkg -l gtk-doc-tools | grep ^ii`" && echo binary-indep),binary-indep)
28 indep_conf_flags += --enable-gtk-doc
31 DEB_CONFIGURE_EXTRA_FLAGS += $(indep_conf_flags)