From 76c3737469b1f5e21f4c916a11d60746bd35dcaf Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 13 Nov 2019 19:17:28 +0100 Subject: [PATCH] Add gst-ext-openexr-c++std.patch --- gst-ext-openexr-c++std.patch | 24 ++++++++++++++++++++++++ mingw-gstreamer1-plugins-bad-free.spec | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 gst-ext-openexr-c++std.patch diff --git a/gst-ext-openexr-c++std.patch b/gst-ext-openexr-c++std.patch new file mode 100644 index 0000000..9168dc2 --- /dev/null +++ b/gst-ext-openexr-c++std.patch @@ -0,0 +1,24 @@ +diff -rupN gst-plugins-bad-1.14.2/ext/openexr/Makefile.am gst-plugins-bad-1.14.2-new/ext/openexr/Makefile.am +--- gst-plugins-bad-1.14.2/ext/openexr/Makefile.am 2018-03-23 21:45:15.000000000 +0100 ++++ gst-plugins-bad-1.14.2-new/ext/openexr/Makefile.am 2019-11-13 19:08:40.282922215 +0100 +@@ -6,7 +6,7 @@ libgstopenexr_la_CFLAGS = \ + $(OPENEXR_CFLAGS) + libgstopenexr_la_CXXFLAGS = \ + $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CXXFLAGS) \ +- $(OPENEXR_CFLAGS) -std=c++98 ++ $(OPENEXR_CFLAGS) + libgstopenexr_la_LIBADD = \ + $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) \ + $(GST_BASE_LIBS) $(GST_LIBS) $(OPENEXR_LIBS) +diff -rupN gst-plugins-bad-1.14.2/ext/openexr/Makefile.in gst-plugins-bad-1.14.2-new/ext/openexr/Makefile.in +--- gst-plugins-bad-1.14.2/ext/openexr/Makefile.in 2018-07-23 13:09:04.000000000 +0200 ++++ gst-plugins-bad-1.14.2-new/ext/openexr/Makefile.in 2019-11-13 19:10:44.830707939 +0100 +@@ -762,7 +762,7 @@ libgstopenexr_la_CFLAGS = \ + + libgstopenexr_la_CXXFLAGS = \ + $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CXXFLAGS) \ +- $(OPENEXR_CFLAGS) -std=c++98 ++ $(OPENEXR_CFLAGS) + + libgstopenexr_la_LIBADD = \ + $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) \ diff --git a/mingw-gstreamer1-plugins-bad-free.spec b/mingw-gstreamer1-plugins-bad-free.spec index 601af6f..a5a56ad 100644 --- a/mingw-gstreamer1-plugins-bad-free.spec +++ b/mingw-gstreamer1-plugins-bad-free.spec @@ -15,6 +15,8 @@ URL: http://gstreamer.freedesktop.org/ # modified with gst1-p-bad-cleanup.sh from SOURCE1 Source0: gst-plugins-bad-free-%{version}.tar.xz Source1: gst-p-bad-cleanup.sh +# Drop -std=c++98 from the cflags when building openexr support +Patch0: gst-ext-openexr-c++std.patch BuildArch: noarch @@ -106,7 +108,7 @@ well enough, or the code is not of good enough quality. %prep -%setup -q -n gst-plugins-bad-%{version} +%autosetup -p1 -n gst-plugins-bad-%{version} %build