[packages/gstreamer0.10-plugins-good] - added gstreamer-common-make patch (fixes build with make 4.2+) - added gstreamer-common-gtkdoc pat

qboosh qboosh at pld-linux.org
Tue Mar 9 21:46:37 CET 2021


commit 40a04cd8c796e6616b71bcc4cf1698614eaf0288
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 9 21:47:32 2021 +0100

    - added gstreamer-common-make patch (fixes build with make 4.2+)
    - added gstreamer-common-gtkdoc patch and convert some files to UTF-8 to fix apidocs build
    - updated URLs, versioned Obsoletes

 gstreamer-common-gtkdoc.patch   | 284 ++++++++++++++++++++++++++++++++++++++++
 gstreamer-common-make.patch     |  12 ++
 gstreamer0.10-plugins-good.spec |  82 +++++++-----
 3 files changed, 343 insertions(+), 35 deletions(-)
---
diff --git a/gstreamer0.10-plugins-good.spec b/gstreamer0.10-plugins-good.spec
index 77c8405..9743600 100644
--- a/gstreamer0.10-plugins-good.spec
+++ b/gstreamer0.10-plugins-good.spec
@@ -1,16 +1,16 @@
 #
 # Conditional build:
-%bcond_without	aalib		# don't build aa videosink plugin
-%bcond_without	apidocs		# disable gtk-doc
-%bcond_without	caca		# don't build caca videosink plugin
-%bcond_without	cairo		# don't build cairo plugin
-%bcond_with	esd		# build ESD plugin
-%bcond_without	gconf		# don't build GConf plugin
-%bcond_with	hal		# build HAL plugin
-%bcond_without	jack		# don't build JACK audio plugin
-%bcond_without	soup		# don't build libsoup 2.4 http source plugin
-%bcond_without	speex		# don't build speex plugin
-%bcond_without	wavpack		# don't build wavpack plugin
+%bcond_without	aalib		# aa videosink plugin
+%bcond_without	apidocs		# gtk-doc based API documentation
+%bcond_without	caca		# caca videosink plugin
+%bcond_without	cairo		# cairo plugin
+%bcond_with	esd		# ESD plugin
+%bcond_without	gconf		# GConf plugin
+%bcond_with	hal		# HAL plugin
+%bcond_without	jack		# JACK audio plugin
+%bcond_without	soup		# libsoup 2.4 http source plugin
+%bcond_without	speex		# speex plugin
+%bcond_without	wavpack		# wavpack plugin
 
 %define		gstname		gst-plugins-good
 %define		gst_major_ver	0.10
@@ -24,11 +24,13 @@ Version:	0.10.31
 Release:	8
 License:	LGPL v2+
 Group:		Libraries
-Source0:	http://gstreamer.freedesktop.org/src/gst-plugins-good/%{gstname}-%{version}.tar.xz
+Source0:	https://gstreamer.freedesktop.org/src/gst-plugins-good/%{gstname}-%{version}.tar.xz
 # Source0-md5:	555845ceab722e517040bab57f9ace95
 Patch0:		libv4l.patch
 Patch1:		docs-fix-mismatched-para-tags.patch
-URL:		http://gstreamer.freedesktop.org/
+Patch2:		gstreamer-common-make.patch
+Patch3:		gstreamer-common-gtkdoc.patch
+URL:		https://gstreamer.freedesktop.org/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake >= 1:1.10
 BuildRequires:	docbook-dtd412-xml
@@ -43,6 +45,7 @@ BuildRequires:	libtool >= 1.4
 BuildRequires:	orc-devel >= 0.4.11
 BuildRequires:	pkgconfig >= 1:0.9.0
 BuildRequires:	python >= 2.1
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.198
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
@@ -87,17 +90,17 @@ Requires:	glib2 >= 1:2.24
 Requires:	gstreamer0.10 >= %{gst_req_ver}
 Requires:	gstreamer0.10-plugins-base >= %{gstpb_req_ver}
 Requires:	orc >= 0.4.11
-Obsoletes:	gstreamer-avi
-Obsoletes:	gstreamer-flx
-%{!?with_hal:Obsoletes:	gstreamer-hal}
-Obsoletes:	gstreamer-matroska
-Obsoletes:	gstreamer-mixer
-Obsoletes:	gstreamer-navigation
-Obsoletes:	gstreamer-oss4
-Obsoletes:	gstreamer-rtp
-Obsoletes:	gstreamer-udp
+Obsoletes:	gstreamer-avi < 0.10
+Obsoletes:	gstreamer-flx < 0.10
+%{!?with_hal:Obsoletes:	gstreamer-hal < 1.0}
+Obsoletes:	gstreamer-matroska < 0.10
+Obsoletes:	gstreamer-mixer < 0.10
+Obsoletes:	gstreamer-navigation < 0.10
+Obsoletes:	gstreamer-oss4 < 0.10
+Obsoletes:	gstreamer-rtp < 0.10
+Obsoletes:	gstreamer-udp < 0.10
 %if %{without esd}
-Obsoletes:	gstreamer-audiosink-esd
+Obsoletes:	gstreamer-audiosink-esd < 1.0
 %endif
 Conflicts:	gstreamer-plugins-bad < 0.10.19
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -142,7 +145,7 @@ Group:		Libraries
 Requires(post,preun):	GConf2
 Requires:	gstreamer0.10 >= %{gst_req_ver}
 Obsoletes:	gstreamer-GConf < 1.0
-Obsoletes:	gstreamer-GConf-devel
+Obsoletes:	gstreamer-GConf-devel < 0.10
 
 %description -n gstreamer0.10-GConf
 Installation of GStreamer GConf schemas. These set usable defaults
@@ -160,7 +163,7 @@ Summary(pl.UTF-8):	Wtyczka wyjścia obrazu Ascii-art do GStreamera
 Group:		Libraries
 Requires:	gstreamer0.10 >= %{gst_req_ver}
 Provides:	gstreamer0.10-videosink = %{version}
-Obsoletes:	gstreamer-aalib
+Obsoletes:	gstreamer-aalib < 0.10
 Obsoletes:	gstreamer-videosink-aa < 1.0
 
 %description -n gstreamer0.10-videosink-aa
@@ -174,7 +177,7 @@ Summary:	Good GStreamer audio effects plugins
 Summary(pl.UTF-8):	Dobre wtyczki efektów dźwiękowych do GStreamera
 Group:		Libraries
 Requires:	gstreamer0.10-plugins-base >= %{gstpb_req_ver}
-Obsoletes:	gstreamer-audio-effects
+Obsoletes:	gstreamer-audio-effects < 0.10
 Obsoletes:	gstreamer-audio-effects-good < 1.0
 
 %description -n gstreamer0.10-audio-effects-good
@@ -232,7 +235,7 @@ Group:		Libraries
 Requires:	gstreamer0.10-plugins-base >= %{gstpb_req_ver}
 Provides:	gstreamer0.10-audiosink = %{version}
 Obsoletes:	gstreamer-audiosink-esd < 1.0
-Obsoletes:	gstreamer-esound
+Obsoletes:	gstreamer-esound < 0.10
 
 %description -n gstreamer0.10-audiosink-esd
 Output plugin for GStreamer for use with the esound package.
@@ -288,7 +291,7 @@ Summary(pl.UTF-8):	Wtyczka serwera dźwięku JACK dla GStreamera
 Group:		Libraries
 Requires:	gstreamer0.10-plugins-base >= %{gstpb_req_ver}
 Provides:	gstreamer0.10-audiosink = %{version}
-Obsoletes:	gstreamer-jac < 1.0
+Obsoletes:	gstreamer-jack < 1.0
 
 %description -n gstreamer0.10-jack
 Plugin for the JACK professional sound server.
@@ -335,7 +338,7 @@ Group:		Libraries
 Requires:	%{name} = %{version}-%{release}
 Provides:	gstreamer0.10-audiosink = %{version}
 Obsoletes:	gstreamer-audiosink-oss < 1.0
-Obsoletes:	gstreamer-oss
+Obsoletes:	gstreamer-oss < 0.10
 
 %description -n gstreamer0.10-audiosink-oss
 Plugins for output and input to the OpenSoundSystem audio drivers
@@ -354,8 +357,8 @@ Requires:	gstreamer0.10 >= %{gst_req_ver}
 Requires:	gstreamer0.10-plugins-base >= %{gstpb_req_ver}
 Requires:	pulseaudio >= 1.0
 Provides:	gstreamer0.10-audiosink = %{version}
-Obsoletes:	gstreamer-audiosink-polypaudio
-Obsoletes:	gstreamer-polypaudio
+Obsoletes:	gstreamer-audiosink-polypaudio < 0.10
+Obsoletes:	gstreamer-polypaudio < 0.10
 Obsoletes:	gstreamer-pulseaudio < 1.0
 
 %description -n gstreamer0.10-pulseaudio
@@ -508,6 +511,15 @@ Wtyczka obsługująca bezstratny format dźwięku Wavpack.
 %setup -q -n %{gstname}-%{version}
 %patch0 -p1
 %patch1 -p1
+cd common
+%patch2 -p1
+%patch3 -p1
+cd ..
+
+# gtk-doc >= 1.27 requires UTF-8 input
+for f in gst/goom2k1/{filters.h,filters.c,goom_core.c} ; do
+	iconv -f iso-8859-2 -t utf-8 "$f" -o "$f"
+done
 
 %build
 %{__libtoolize}
@@ -523,14 +535,14 @@ Wtyczka obsługująca bezstratny format dźwięku Wavpack.
 	%{!?with_aalib:--disable-aalib} \
 	%{!?with_cairo:--disable-cairo} \
 	%{!?with_esd:--disable-esd} \
+	--enable-gtk-doc%{!?with_apidocs:=no} \
+	%{!?with_hal:--disable-hal} \
 	%{!?with_jack:--disable-jack} \
 	%{!?with_caca:--disable-libcaca} \
+	--enable-orc \
 	%{!?with_soup:--disable-soup} \
 	%{!?with_speex:--disable-speex} \
 	%{!?with_wavpack:--disable-wavpack} \
-	%{!?with_hal:--disable-hal} \
-	--enable-gtk-doc%{!?with_apidocs:=no} \
-	--enable-orc \
 	--with-html-dir=%{_gtkdocdir}
 
 %{__make}
@@ -598,7 +610,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
-%{_gtkdocdir}/gst-plugins-good-plugins-*
+%{_gtkdocdir}/gst-plugins-good-plugins-0.10
 %endif
 
 %if %{with gconf}
diff --git a/gstreamer-common-gtkdoc.patch b/gstreamer-common-gtkdoc.patch
new file mode 100644
index 0000000..db34f3e
--- /dev/null
+++ b/gstreamer-common-gtkdoc.patch
@@ -0,0 +1,284 @@
+From 2de221ce94b657f9c9a75aa3cc0cb84dbb5da78b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= <olivier.crete at collabora.co.uk>
+Date: Mon, 28 Jan 2013 20:28:09 +0100
+Subject: [PATCH] gtk-doc*.mak: Put the API version in the html book name
+
+This causes devhelp2 files to get a version. Due to that devhelp can show it
+along with the 0.10 version.
+---
+ gtk-doc-plugins.mak | 11 ++++-------
+ gtk-doc.mak         | 11 ++++-------
+ 2 files changed, 8 insertions(+), 14 deletions(-)
+
+diff --git a/gtk-doc-plugins.mak b/gtk-doc-plugins.mak
+index f69d9d7..f19e7d7 100644
+--- a/gtk-doc-plugins.mak
++++ b/gtk-doc-plugins.mak
+@@ -222,10 +222,7 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
+ 	    mkhtml_options="$$mkhtml_options --verbose"; \
+ 	  fi; \
+ 	fi; \
+-	cd html && gtkdoc-mkhtml $$mkhtml_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE)
+-	@mv html/index.sgml html/index.sgml.bak
+-	@$(SED) "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)- at GST_MAJORMINOR@\//g" html/index.sgml.bak >html/index.sgml
+-	@rm -f html/index.sgml.bak
++	cd html && gtkdoc-mkhtml $$mkhtml_options $(DOC_MODULE)- at GST_MAJORMINOR@ $(DOC_MAIN_SGML_FILE)
+ 	@rm -f html/$(DOC_MAIN_SGML_FILE)
+ 	@rm -rf html/xml
+ 	@rm -f html/version.entities
+@@ -289,9 +286,9 @@ install-data-local:
+ 	      $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
+ 	    done; \
+ 	  fi; \
+-	  echo '-- Installing $(builddir)/html/$(DOC_MODULE).devhelp2' ; \
+-	  if test -e $(builddir)/html/$(DOC_MODULE).devhelp2; then \
+-	            $(INSTALL_DATA) $(builddir)/html/$(DOC_MODULE).devhelp2 \
++	  echo '-- Installing $(builddir)/html/$(DOC_MODULE)- at GST_MAJORMINOR@.devhelp2' ; \
++	  if test -e $(builddir)/html/$(DOC_MODULE)- at GST_MAJORMINOR@.devhelp2; then \
++	            $(INSTALL_DATA) $(builddir)/html/$(DOC_MODULE)- at GST_MAJORMINOR@.devhelp2 \
+ 	            $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)- at GST_MAJORMINOR@.devhelp2; \
+ 	  fi; \
+ 	  $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) || true ; \
+diff --git a/gtk-doc.mak b/gtk-doc.mak
+index 17cee71..9d76889 100644
+--- a/gtk-doc.mak
++++ b/gtk-doc.mak
+@@ -130,10 +130,7 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
+ 	if test "$(?)" = "0"; then \
+ 	  mkhtml_options=--path="$(abs_srcdir)"; \
+ 	fi; \
+-	cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+-	@mv html/index.sgml html/index.sgml.bak
+-	@$(SED) "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)- at GST_MAJORMINOR@\//g" html/index.sgml.bak >html/index.sgml
+-	@rm -f html/index.sgml.bak
++	cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE)- at GST_MAJORMINOR@ ../$(DOC_MAIN_SGML_FILE)
+ 	@rm -rf html/xml
+ 	@rm -f version.entities
+ 	@test "x$(HTML_IMAGES)" = "x" ||  ( cd $(srcdir) && cp $(HTML_IMAGES) $(abs_builddir)/html )
+@@ -189,9 +186,9 @@ install-data-local:
+ 	    echo '-- Installing '$$i ; \
+ 	    $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
+ 	  done; \
+-	  echo '-- Installing $(builddir)/html/$(DOC_MODULE).devhelp2' ; \
+-	  if test -e $(builddir)/html/$(DOC_MODULE).devhelp2; then \
+-	            $(INSTALL_DATA) $(builddir)/html/$(DOC_MODULE).devhelp2 \
++	  echo '-- Installing $(builddir)/html/$(DOC_MODULE)- at GST_MAJORMINOR@.devhelp2' ; \
++	  if test -e $(builddir)/html/$(DOC_MODULE)- at GST_MAJORMINOR@.devhelp2; then \
++	            $(INSTALL_DATA) $(builddir)/html/$(DOC_MODULE)- at GST_MAJORMINOR@.devhelp2 \
+ 	            $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)- at GST_MAJORMINOR@.devhelp2; \
+ 	  fi; \
+ 	  $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) || true ; \
+From d37af32e2d6d1b546af72978f8441a84996ab3ea Mon Sep 17 00:00:00 2001
+From: Stefan Sauer <ensonic at users.sf.net>
+Date: Sun, 7 Jun 2015 20:12:05 +0200
+Subject: [PATCH] mangle-tmpl.py: generate tmpl files instead of merging
+
+We don't have any hand-written docs in tmpl files. Stop generating them with
+gtkdoc and just write the minimal files ourself.
+---
+ gtk-doc-plugins.mak | 15 +++--------
+ mangle-tmpl.py      | 72 ++++++++++++-----------------------------------------
+ 2 files changed, 19 insertions(+), 68 deletions(-)
+
+diff --git a/gtk-doc-plugins.mak b/gtk-doc-plugins.mak
+index 5d9b2f9..767e55a 100644
+--- a/gtk-doc-plugins.mak
++++ b/gtk-doc-plugins.mak
+@@ -171,19 +171,10 @@ scan-build.stamp: $(HFILE_GLOB) $(EXTRA_HFILES) $(basefiles) scanobj-build.stamp
+ 	    --ignore-headers="$(IGNORE_HFILES)";			\
+ 	touch scan-build.stamp
+ 
+-#### update templates; done on every build ####
++#### generate templates; done on every build ####
+ 
+-# in a non-srcdir build, we need to copy files from the previous step
+-# and the files from previous runs of this step
+-tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_OVERRIDES)
+-	@echo '  DOC   Rebuilding template files'
+-	@if test x"$(srcdir)" != x. ; then				\
+-	    for f in $(SCANOBJ_FILES) $(SCAN_FILES);			\
+-	    do								\
+-	        if test -e $(srcdir)/$$f; then cp -u $(srcdir)/$$f . ; fi;	\
+-	    done;							\
+-	fi
+-	@gtkdoc-mktmpl --module=$(DOC_MODULE)
++tmpl-build.stamp:
++	@echo '  DOC   Building template files'
+ 	@$(PYTHON) \
+ 		$(top_srcdir)/common/mangle-tmpl.py $(srcdir)/$(INSPECT_DIR) tmpl
+ 	@touch tmpl-build.stamp
+diff --git a/mangle-tmpl.py b/mangle-tmpl.py
+index 51ea8c2..7a92d04 100644
+--- a/mangle-tmpl.py
++++ b/mangle-tmpl.py
+@@ -2,21 +2,12 @@
+ # vi:si:et:sw=4:sts=4:ts=4
+ 
+ """
+-use the output from gst-xmlinspect.py to mangle tmpl/*.sgml and
+-insert/overwrite Short Description and Long Description
++use the files from inspect/*.xml to create mininal tmpl/*.sgml files containing
++'Short Description' and 'Long Description' to inject element details into the
++docbook files produced by gtkdoc-mkdb
+ """
+ 
+-# FIXME: right now it uses pygst and scans on its own;
+-# we really should use inspect/*.xml instead since the result of
+-# gst-xmlinspect.py is committed by the docs maintainer, who can be
+-# expected to have pygst, but this step should be done for every docs build,
+-# so no pygst allowed
+-
+-# read in inspect/*.xml
+-# for every tmpl/element-(name).xml: mangle with details from element
+-
+ import glob
+-import re
+ import sys
+ import os
+ 
+@@ -28,37 +19,12 @@ def __init__(self, filename):
+         self._sectionids = []
+         self._sections = {}
+ 
+-    def read(self):
+-        """
+-        Read and parse the sections from the given file.
+-        """
+-        lines = open(self.filename).readlines()
+-        matcher = re.compile("<!-- ##### SECTION (\S+) ##### -->\n")
+-        id = None
+-
+-        for line in lines:
+-            match = matcher.search(line)
+-            if match:
+-                id = match.expand("\\1")
+-                self._sectionids.append(id)
+-                self._sections[id] = []
+-            else:
+-                if not id:
+-                    sys.stderr.write(
+-                        "WARNING: line before a SECTION header: %s" % line)
+-                else:
+-                    self._sections[id].append(line)
+-
+-    def get_section(self, id):
+-        """
+-        Get the content from the given section.
+-        """
+-        return self._sections[id]
+-
+     def set_section(self, id, content):
+         """
+         Replace the given section id with the given content.
+         """
++        if not id in self._sectionids:
++            self._sectionids.append(id)
+         self._sections[id] = content
+ 
+     def output(self):
+@@ -73,14 +39,10 @@ def output(self):
+ 
+         return "".join(lines)
+ 
+-    def write(self, backup=False):
++    def write(self):
+         """
+         Write out the template file again, backing up the previous one.
+         """
+-        if backup:
+-            target = self.filename + ".mangle.bak"
+-            os.rename(self.filename, target)
+-
+         handle = open(self.filename, "w")
+         handle.write(self.output())
+         handle.close()
+@@ -136,30 +98,28 @@ def main():
+     inspectdir = sys.argv[1]
+     tmpldir = sys.argv[2]
+ 
++    if not os.path.exists (tmpldir):
++        os.mkdir(tmpldir)
++
+     # parse all .xml files; build map of element name -> short desc
+     #for file in glob.glob("inspect/plugin-*.xml"):
+     elements = {}
+     for file in glob.glob("%s/plugin-*.xml" % inspectdir):
+         elements.update(get_elements(file))
+ 
+-    for file in glob.glob("%s/element-*.sgml" % tmpldir):
+-        base = os.path.basename(file)
+-        element = base[len("element-"):-len(".sgml")]
++    for element in elements.keys():
++        file = "%s/element-%s.sgml" % (tmpldir, element)
+         tmpl = Tmpl(file)
+-        tmpl.read()
+-        if element in elements.keys():
+-            description = elements[element]['description']
+-            tmpl.set_section("Short_Description", "%s\n\n" % description)
+ 
+-        # put in an include if not yet there
++        description = elements[element]['description']
++        tmpl.set_section("Short_Description", "%s\n" % description)
++
++        # add include for details
+         line = '<include xmlns="http://www.w3.org/2003/XInclude" href="' + \
+             'element-' + element + '-details.xml">' + \
+             '<fallback xmlns="http://www.w3.org/2003/XInclude" />' + \
+             '</include>\n'
+-        section = tmpl.get_section("Long_Description")
+-        if not section[0]  == line:
+-            section.insert(0, line)
+-        tmpl.set_section("Long_Description", section)
++        tmpl.set_section("Long_Description", line)
+         tmpl.write()
+ 
+ main()
+From f363b3205658a38e84fa77f19dee218cd4445275 Mon Sep 17 00:00:00 2001
+From: Nicolas Dufresne <nicolas.dufresne at collabora.com>
+Date: Mon, 20 Jun 2016 15:38:01 -0400
+Subject: [PATCH] Fix handling of DOC_SOURCE_DIR list
+
+As some places we where assuming a single directory. This caused some
+plugins documentation to be ignored.
+---
+ gtk-doc-plugins.mak | 8 ++++++--
+ gtk-doc.mak         | 6 +++++-
+ 2 files changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/gtk-doc-plugins.mak b/gtk-doc-plugins.mak
+index fe0977c..4b5dd1b 100644
+--- a/gtk-doc-plugins.mak
++++ b/gtk-doc-plugins.mak
+@@ -179,9 +179,13 @@ sgml-build.stamp: scan-build.stamp $(CFILE_GLOB) $(top_srcdir)/common/plugins.xs
+ 		$(top_srcdir)/common/plugins.xsl $$a > xml/`basename $$a`; done
+ 	@for f in $(EXAMPLE_CFILES); do \
+ 		$(PYTHON) $(top_srcdir)/common/c-to-xml.py $$f > xml/element-`basename $$f .c`.xml; done
+-	@gtkdoc-mkdb \
++	@_source_dir='' ;						\
++	for i in $(DOC_SOURCE_DIR) ; do					\
++	    _source_dir="$${_source_dir} --source-dir=$$i" ;	        \
++	done ;								\
++	gtkdoc-mkdb \
+ 		--module=$(DOC_MODULE) \
+-		--source-dir=$(DOC_SOURCE_DIR) \
++		$${_source_dir} \
+ 		 --expand-content-files="$(expand_content_files)" \
+ 		--main-sgml-file=$(srcdir)/$(DOC_MAIN_SGML_FILE) \
+ 		--output-format=xml \
+diff --git a/gtk-doc.mak b/gtk-doc.mak
+index 2aab3a9..4beebcf 100644
+--- a/gtk-doc.mak
++++ b/gtk-doc.mak
+@@ -121,7 +121,11 @@ $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)
+ 
+ sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(expand_content_files)
+ 	@echo '  DOC   Building XML'
+-	@gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)  --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) --output-format=xml $(MKDB_OPTIONS)
++	@_source_dir='' ;						\
++	for i in $(DOC_SOURCE_DIR) ; do					\
++	    _source_dir="$${_source_dir} --source-dir=$$i" ;	        \
++	done ;							        \
++	gtkdoc-mkdb --module=$(DOC_MODULE) $$(_source_dir)  --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) --output-format=xml $(MKDB_OPTIONS)
+ 	@cp ../version.entities xml
+ 	@touch sgml-build.stamp
+ 
diff --git a/gstreamer-common-make.patch b/gstreamer-common-make.patch
new file mode 100644
index 0000000..ce0e7fa
--- /dev/null
+++ b/gstreamer-common-make.patch
@@ -0,0 +1,12 @@
+--- common/gst-glib-gen.mak.orig	2011-12-11 20:03:48.000000000 +0100
++++ common/gst-glib-gen.mak	2021-03-09 20:15:55.054080056 +0100
+@@ -6,7 +6,8 @@
+ #glib_gen_prefix=gst_color_balance
+ #glib_gen_basename=colorbalance
+ 
+-enum_headers=$(foreach h,$(glib_enum_headers),\n\#include \"$(h)\")
++gst_hash = \#
++enum_headers=$(foreach h,$(glib_enum_headers),\n$(gst_hash)include \"$(h)\")
+ 
+ # these are all the rules generating the relevant files
+ $(glib_gen_basename)-marshal.h: $(glib_gen_basename)-marshal.list
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10-plugins-good.git/commitdiff/40a04cd8c796e6616b71bcc4cf1698614eaf0288



More information about the pld-cvs-commit mailing list