encoder: add infrastructure for per-slice handling of packed headers.
[platform/upstream/gstreamer-vaapi.git] / debian.upstream / rules
1 #!/usr/bin/make -f
2
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
7
8 GST_API_VERSION = $(shell echo "$(DEB_SOURCE_PACKAGE)" | \
9         sed -n '/gstreamer\([0-9][0-9.]*\)-vaapi/s//\1/p')
10
11 # Allow SMP build
12 ifeq ($(DEBIAN_BUILD_NCPUS),)
13         DEBIAN_BUILD_NCPUS = $(shell /usr/bin/getconf _NPROCESSORS_ONLN)
14 endif
15 ifneq ($(DEBIAN_BUILD_NCPUS),)
16         EXTRA_MAKE_FLAGS += -j$(DEBIAN_BUILD_NCPUS)
17 endif
18 MAKE += $(EXTRA_MAKE_FLAGS)
19
20 # Allow HTML documentation build
21 indep_conf_flags = \
22         --with-html-dir=\$${prefix}/share/doc/$(DEB_SOURCE_PACKAGE) \
23         --with-gstreamer-api=$(GST_API_VERSION)
24
25 # only build the docs if gtk-doc-tools is installed, i.e. binary-indep is
26 # called
27 ifeq ($(shell test "`dpkg -l gtk-doc-tools | grep ^ii`" && echo binary-indep),binary-indep)
28 indep_conf_flags += --enable-gtk-doc
29 endif
30
31 DEB_CONFIGURE_EXTRA_FLAGS += $(indep_conf_flags)