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