Reconfigure gst-plugins-bad for Excelsior

- Disable X
- Disable standard OpenGL
- Disable mpeg2enc/mplex (cross compilation issues)
- Disable gir (cross compilation issues)

Change-Id: I14c1aed9a0309cc1750e13593c5455ba22bb85c7
diff --git a/debian/build-deps b/debian/build-deps
index 47f6f0a..1a3c79a 100644
--- a/debian/build-deps
+++ b/debian/build-deps
@@ -53,7 +53,6 @@
 libmpcdec-dev
 libofa0-dev (>= 0.9.3)
 libopenal-dev (>= 1:1.14)
-libopencv-dev (>= 2.3.0)
 libopenexr-dev
 libopenjp2-7-dev
 libopus-dev (>= 0.9.4)
@@ -76,7 +75,6 @@
 libx265-dev
 libxml2-dev (>= 2.8)
 libxvidcore-dev
-libzbar-dev (>= 0.9)
 libzvbi-dev
 nettle-dev
 pkg-config (>= 0.11.0)
diff --git a/debian/changelog b/debian/changelog
index 0c8d7a2..28cf455 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+gst-plugins-bad1.0 (1.10.4-1+mtk) mendel-chef; urgency=medium
+
+  * Configuration tweaks for Excelsior platform
+
+ -- Coral <coral-support@google.com>  Fri, 09 Aug 2019 15:23:40 -0700
+
 gst-plugins-bad1.0 (1.10.4-1) unstable; urgency=medium
 
   * New upstream bugfix release
diff --git a/debian/control b/debian/control
index fa01ad0..36ee4ce 100644
--- a/debian/control
+++ b/debian/control
@@ -13,11 +13,6 @@
                dh-autoreconf,
                dpkg-dev (>= 1.15.1),
                flite-dev,
-               gir1.2-freedesktop,
-               gir1.2-glib-2.0,
-               gir1.2-gst-plugins-base-1.0,
-               gir1.2-gstreamer-1.0,
-               gobject-introspection (>= 0.9.12-4~),
                libasound2-dev (>= 0.9.1) [linux-any],
                libcdaudio-dev [linux-any],
                libdc1394-22-dev (>= 2.0.0) [linux-any],
@@ -48,7 +43,6 @@
                libexif-dev (>= 0.6.16),
                libfaad-dev (>= 2.7),
                libfluidsynth-dev (>= 1.0),
-               libgirepository1.0-dev (>= 0.9.12-4~),
                libgl1-mesa-dev,
                libgles2-mesa-dev,
                libglib2.0-dev (>= 2.40),
@@ -67,7 +61,6 @@
                libmpcdec-dev,
                libofa0-dev (>= 0.9.3),
                libopenal-dev (>= 1:1.14),
-               libopencv-dev (>= 2.3.0),
                libopenexr-dev,
                libopenjp2-7-dev,
                libopus-dev (>= 0.9.4),
@@ -90,11 +83,10 @@
                libx265-dev,
                libxml2-dev (>= 2.8),
                libxvidcore-dev,
-               libzbar-dev (>= 0.9),
                libzvbi-dev,
                nettle-dev,
                pkg-config (>= 0.11.0)
-Standards-Version: 3.9.3
+Standards-Version: 3.9.8
 Vcs-Git: git://anonscm.debian.org/pkg-gstreamer/gst-plugins-bad1.0.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-gstreamer/gst-plugins-bad1.0.git;a=summary
 Homepage: http://gstreamer.freedesktop.org/modules/gst-plugins-bad.html
@@ -205,8 +197,7 @@
 Depends: ${misc:Depends},
          libgstreamer-plugins-bad1.0-0 (= ${binary:Version}),
          libgstreamer1.0-dev,
-         libgstreamer-plugins-base1.0-dev,
-         gir1.2-gst-plugins-bad-1.0 (= ${binary:Version})
+         libgstreamer-plugins-base1.0-dev
 Description: GStreamer development files for libraries from the "bad" set
  GStreamer is a streaming media framework, based on graphs of filters
  which operate on media data.  Applications using this library can do
@@ -223,27 +214,3 @@
  This package contains development files for GStreamer libraries from the
  "bad" set. The API is not guaranteed to be stable.
 
-Package: gir1.2-gst-plugins-bad-1.0
-Section: introspection
-Architecture: any
-Depends: ${gir:Depends},
-         ${shlibs:Depends},
-         ${misc:Depends},
-         ${gir:Depends}
-Description: GObject introspection data for the GStreamer libraries from the "bad" set
- 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.
- .
- GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared
- to the rest. They might be close to being good quality, but they're missing
- something - be it a good code review, some documentation, a set of tests, a
- real live maintainer, or some actual wide use.
- .
- This package contains introspection data for the GStreamer libraries from
- the "bad" set. It can be used by packages using the GIRepository format to
- generate dynamic bindings.
-
diff --git a/debian/gstreamer-plugins-bad.install b/debian/gstreamer-plugins-bad.install
index 5280bb5..df834f9 100644
--- a/debian/gstreamer-plugins-bad.install
+++ b/debian/gstreamer-plugins-bad.install
@@ -49,22 +49,18 @@
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstjp2kdecimator.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstladspa.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstlibde265.so
-debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstlv2.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmidi.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmms.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmodplug.so
-debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmpeg2enc.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmpegpsdemux.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmpegtsdemux.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmpegpsmux.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmpegtsmux.so
-debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmplex.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmusepack.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmxf.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstnetsim.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstofa.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstopenal.so
-debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstopencv.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstopengl.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstopenexr.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstopenjpeg.so
@@ -105,7 +101,6 @@
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstx265.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgsty4mdec.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstyadif.so
-debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstzbar.so
 debian/tmp/usr/share/locale
 debian/tmp/usr/share/gstreamer-@GST_ABI@/presets/
 @dvb@
diff --git a/debian/libgstreamer-plugins-bad-dev.install b/debian/libgstreamer-plugins-bad-dev.install
index 0f20b1e..163b18c 100644
--- a/debian/libgstreamer-plugins-bad-dev.install
+++ b/debian/libgstreamer-plugins-bad-dev.install
@@ -2,4 +2,3 @@
 debian/tmp/usr/lib/*/gstreamer-1.0/include
 debian/tmp/usr/lib/*/pkgconfig
 debian/tmp/usr/lib/*/*.so
-debian/tmp/usr/share/gir-*
diff --git a/debian/libgstreamer-plugins-bad1.0-0.lintian-overrides b/debian/libgstreamer-plugins-bad1.0-0.lintian-overrides
new file mode 100644
index 0000000..a6f4b75
--- /dev/null
+++ b/debian/libgstreamer-plugins-bad1.0-0.lintian-overrides
@@ -0,0 +1 @@
+libgstreamer-plugins-bad1.0-0: package-name-doesnt-match-sonames libgstadaptivedemux-1.0-0 libgstbadaudio-1.0-0 libgstbadbase-1.0-0 libgstbadvideo-1.0-0 libgstbasecamerabinsrc-1.0-0 libgstcodecparsers-1.0-0 libgstgl-1.0-0 libgstinsertbin-1.0-0 libgstmpegts-1.0-0 libgstphotography-1.0-0 libgstplayer-1.0-0 libgsturidownloader-1.0-0 libgstwayland-1.0-0
diff --git a/debian/rules b/debian/rules
index 33358f8..c6b5cac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -155,42 +155,6 @@
 
 maint: debian/control
 
-debian/build-deps: debian/build-deps.in debian/rules
-	cat $< > $@
-	for plugin in $(EXTRA_PLUGINS); do \
-		sh debian/extra deps $$plugin >> $@; \
-	done
-	sort $@ -o $@
-
-debian/control: debian/control.in debian/build-deps debian/mk.control debian/rules
-	perl debian/mk.control | sed \
-		-e 's/@GST_VERSION@/$(gst_version)/g' \
-		-e 's/@GST_ABI@/$(gst_abi)/g' \
-		-e 's/@GST_DEB_ABI@/$(gst_deb_abi)/g' \
-		-e 's/@GST_PKGNAME@/$(gst_pkgname)/g' \
-		-e 's/@GST_LIB@/$(gst_lib)/g' \
-		-e 's/@GST_LIB_DEV@/$(gst_lib_dev)/g' \
-		-e 's/@GST_LIB_DEV_DEP@/$(gst_lib_dev_dep)/g' \
-		-e 's/@GST_EXTRA_BUILD_DEPENDS@/$(gst_extra_build_depends)/g' \
-		-e '/^Build-Depends\(-Indep\)\?/s/\ *,\ */,\n               /g' \
-		>$@
-
-	for plugin in $(EXTRA_PLUGINS); do \
-		sh debian/extra control $$plugin | sed \
-			-e 's/@GST_ABI@/$(gst_abi)/g' \
-			-e 's/@GST_PKGNAME@/$(gst_pkgname)/g' \
-			-e 's/@GST_LIB@/$(gst_lib)/g' \
-			-e 's/@GST_LIB_DEV@/$(gst_lib_dev)/g' \
-			-e 's/@GST_LIB_DEV_DEP@/$(gst_lib_dev_dep)/g' \
-			-e 's/@GST_PLUGINS_LIB@/$(gst_plugins_lib)/g' \
-			-e 's/@GST_PLUGINS_LIB_DEV@/$(gst_plugins_lib_dev)/g' \
-			-e 's/@GST_PLUGINS_LIB_DEV_DEP@/$(gst_plugins_lib_dev_dep)/g' \
-			-e 's/@GST_GCONF_LIB@/$(gst_gconf_lib)/g' \
-			-e 's/@GST_GCONF_LIB_DEV@/$(gst_gconf_lib_dev)/g' \
-			-e 's/@GST_GCONF_LIB_DEV_DEP@/$(gst_gconf_lib_dev_dep)/g' \
-			>> $@; \
-	done
-
 
 DEB_CONFIGURE_EXTRA_FLAGS += \
 	--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
@@ -200,7 +164,14 @@
 	--enable-experimental \
 	--with-package-name=$(GST_PACKAGE_NAME) \
 	--with-package-origin=$(GST_PACKAGE_ORIGIN) \
-	--disable-pvr
+	--disable-pvr \
+	--disable-mpeg2enc \
+	--disable-mplex \
+	--enable-wayland \
+	--disable-x11 \
+	--disable-glx \
+	--disable-opengl \
+	--enable-gles2
 
 # only build the docs on arches which can
 ifeq (,$(findstring $(DEB_HOST_ARCH),m68k arm))