Disable build of GObject Introspection

Not trivial in a cross setting as BUILD and HOST dev packages
must be installed side by side and the upstream debian ones
doesn't support it.

Confirmed that upstream python-gst-1.0, that depends on
gir1.2-gstreamer-1.0, can be installed and used alongside
our binary debs so we're not losing language bindings.

Change-Id: Ic4bf693f044767a0ac17ac60ef09a31d7bca5a1c
diff --git a/debian/control b/debian/control
index 66d3d10..cffdf13 100644
--- a/debian/control
+++ b/debian/control
@@ -19,14 +19,8 @@
                bison (>= 1:2.4),
                flex (>= 2.5.34),
                dpkg-dev (>= 1.15.1),
-               perl-doc,
-               libgirepository1.0-dev (>= 0.9.12-4~),
-               gobject-introspection (>= 0.9.12-4~),
-               gir1.2-glib-2.0,
-               gir1.2-freedesktop,
+               perl-doc:native,
                libcap-dev [linux-any]
-Build-Depends-Indep: gtk-doc-tools (>= 1.12),
-                     libglib2.0-doc
 Standards-Version: 3.9.3
 Homepage: http://gstreamer.freedesktop.org
 
@@ -80,7 +74,6 @@
          libglib2.0-dev,
          ${shlibs:Depends},
          ${misc:Depends},
-         gir1.2-gstreamer-1.0 (= ${binary:Version})
 Recommends: debhelper
 Description: GStreamer core development files
  GStreamer is a streaming media framework, based on graphs of filters
@@ -109,25 +102,3 @@
  installing new plug-ins.
  .
  This package contains versioned command-line tools for GStreamer.
-
-Package: gir1.2-gstreamer-1.0
-Section: introspection
-Architecture: any
-Depends: ${gir:Depends},
-         ${shlibs:Depends},
-         ${misc:Depends},
-         ${gir:Depends}
-Description: GObject introspection data for the GStreamer library
- This package contains introspection data for the GStreamer streaming media
- framework.
- .
- GStreamer is a streaming media framework, based on graphs of filters
- which operate on media data.  Applications using this library can do
- anything from real-time sound processing to playing videos, and just
- about anything else media-related.  Its plugin-based architecture means
- that new data types or processing capabilities can be added simply by
- installing new plug-ins.
- .
- It can be used by packages using the GIRepository format to generate
- dynamic bindings.
-
diff --git a/debian/gir1.2-gstreamer.install b/debian/gir1.2-gstreamer.install
deleted file mode 100644
index 9803e33..0000000
--- a/debian/gir1.2-gstreamer.install
+++ /dev/null
@@ -1 +0,0 @@
-debian/tmp/usr/lib/*/girepository-* usr/lib
diff --git a/debian/libgstreamer-dev.install b/debian/libgstreamer-dev.install
index 1f7959f..d6d0b15 100644
--- a/debian/libgstreamer-dev.install
+++ b/debian/libgstreamer-dev.install
@@ -2,7 +2,6 @@
 debian/tmp/usr/lib/*/*.so
 debian/tmp/usr/lib/*/pkgconfig
 debian/tmp/usr/share/aclocal
-debian/tmp/usr/share/gir-*
 debian/tmp/usr/bin/gst-codec-info-@GST_ABI@
 debian/dh_gstscancodecs usr/bin
 debian/tmp/usr/share/man/man1/dh_gstscancodecs.1
diff --git a/debian/rules b/debian/rules
index 801e229..6db6c4d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -54,7 +54,6 @@
 	debian/$(gst_pkgname)-tools.install \
 	debian/$(gst_pkgname)-tools.links \
 	debian/$(gst_pkgname)-tools.manpages \
-	debian/gir1.2-gstreamer-$(gst_abi).install
 
 GST_PACKAGE_NAME := "GStreamer"
 
@@ -85,10 +84,6 @@
 		sed 's/@GST_ABI@/$(gst_abi)/g' \
 		> $@
 
-debian/gir1.2-gstreamer-$(gst_abi).install: debian/gir1.2-gstreamer.install debian/rules
-	rm -f $@
-	cp -v $< $@
-
 debian/$(gst_lib_dev).install: debian/libgstreamer-dev.install debian/rules
 	rm -f $@
 	cat $< | \
@@ -176,23 +171,14 @@
 	--with-ptp-helper-setuid-user=nobody --with-ptp-helper-setuid-group=nobody
 endif
 
-indep_conf_flags = \
-	--with-html-dir=\$${prefix}/share/doc/$(gst_pkgname)-doc
-
-# only build the docs if gtk-doc-tools is installed, i.e. binary-indep is
-# called
-# ifeq ($(shell test "`dpkg -l gtk-doc-tools | grep ^ii`" && echo binary-indep),binary-indep)
-# indep_conf_flags += --enable-gtk-doc --enable-docbook
-# endif
-
-DEB_CONFIGURE_EXTRA_FLAGS := $(common_conf_flags) $(indep_conf_flags)
+DEB_CONFIGURE_EXTRA_FLAGS := $(common_conf_flags)
 
 DEB_DH_MAKESHLIBS_ARGS_$(gst_lib) += -X "/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-$(gst_abi)" -V $(gst_shlibs_dep) -- -c4
 DEB_INSTALL_DOCS_ALL += debian/README.Debian NEWS
 DEB_SHLIBDEPS_INCLUDE += debian/$(gst_lib)/usr/lib/$(DEB_HOST_MULTIARCH)
 
 install/$(gst_lib_dev)::
-	gcc -o debian/tmp/usr/bin/gst-codec-info-1.0 debian/gst-codec-info.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `pkg-config --libs --cflags glib-2.0 gthread-2.0 gmodule-no-export-2.0 gobject-2.0` debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgstreamer-1.0.so -Idebian/tmp/usr/include/gstreamer-1.0 -Idebian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0/include
+	$(DEB_HOST_GNU_TYPE)-gcc -o debian/tmp/usr/bin/gst-codec-info-1.0 debian/gst-codec-info.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `$(DEB_HOST_GNU_TYPE)-pkg-config --libs --cflags glib-2.0 gthread-2.0 gmodule-no-export-2.0 gobject-2.0` debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgstreamer-1.0.so -Idebian/tmp/usr/include/gstreamer-1.0 -Idebian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0/include
 	perldoc -o man debian/dh_gstscancodecs > debian/tmp/usr/share/man/man1/dh_gstscancodecs.1
 
 .PHONY: maint