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_pkgname = $(shell dpkg-parsechangelog | grep ^Source: | cut -d' ' -f2)
11 ifeq ($(DEBIAN_BUILD_NCPUS),)
12 DEBIAN_BUILD_NCPUS = $(shell /usr/bin/getconf _NPROCESSORS_ONLN)
14 ifneq ($(DEBIAN_BUILD_NCPUS),)
15 EXTRA_MAKE_FLAGS += -j$(DEBIAN_BUILD_NCPUS)
17 MAKE += $(EXTRA_MAKE_FLAGS)
19 # Allow HTML documentation build
21 --with-html-dir=\$${prefix}/share/doc/$(gst_pkgname)
23 # only build the docs if gtk-doc-tools is installed, i.e. binary-indep is
25 ifeq ($(shell test "`dpkg -l gtk-doc-tools | grep ^ii`" && echo binary-indep),binary-indep)
26 indep_conf_flags += --enable-gtk-doc
29 DEB_CONFIGURE_EXTRA_FLAGS += $(indep_conf_flags)