gst1-mm: new package
PATCH 2/2 gst1-mm: new package
Gstreamermm provides C++ bindings for gstreamer.
--- package/gstreamer1/Config.in | 1 + ...ock-auto-generate-some-audioclock-methods.patch | 68 +++++++++++++ .../gst1-mm/0002-fix-iterator-build.patch | 108 +++++++++++++++++++++ .../0003-remove-gstreamer-check-dependency.patch | 29 ++++++ package/gstreamer1/gst1-mm/Config.in | 18 ++++ package/gstreamer1/gst1-mm/gst1-mm.hash | 2 + package/gstreamer1/gst1-mm/gst1-mm.mk | 23 +++++ 7 files changed, 249 insertions(+) create mode 100644 package/gstreamer1/gst1-mm/0001-gst-audioclock-auto-generate-some-audioclock-methods.patch create mode 100644 package/gstreamer1/gst1-mm/0002-fix-iterator-build.patch create mode 100644 package/gstreamer1/gst1-mm/0003-remove-gstreamer-check-dependency.patch create mode 100644 package/gstreamer1/gst1-mm/Config.in create mode 100644 package/gstreamer1/gst1-mm/gst1-mm.hash create mode 100644 package/gstreamer1/gst1-mm/gst1-mm.mk
package/gstreamer1/Config.in +1 -0
@@ -8,6 +8,7 @@ source "package/gstreamer1/gst1-plugins-bad/Config.in" source "package/gstreamer1/gst1-plugins-ugly/Config.in" source "package/gstreamer1/gst1-imx/Config.in" source "package/gstreamer1/gst1-libav/Config.in" +source "package/gstreamer1/gst1-mm/Config.in" source "package/gstreamer1/gst1-rtsp-server/Config.in" source "package/gstreamer1/gst1-validate/Config.in" source "package/gstreamer1/gst1-vaapi/Config.in"
package/gstreamer1/gst1-mm/0001-gst-audioclock-auto-generate-some-audioclock-methods.patch new file +68 -0
68 lines not on this page · raw message
package/gstreamer1/gst1-mm/0002-fix-iterator-build.patch new file +108 -0
108 lines not on this page · raw message
package/gstreamer1/gst1-mm/0003-remove-gstreamer-check-dependency.patch new file +29 -0
@@ -0,0 +1,29 @@ +From f65960a21c76bcd1371a9d0d3b008731d02a0e5d Mon Sep 17 00:00:00 2001 +From: Adam Duskett <[email protected]> +Date: Thu, 31 Aug 2017 11:42:40 -0400 +Subject: [PATCH] remove gstreamer-check dependency + +gstreamer-check is disabled by default in buildroot and itsn't required to +build gstreamermm. Remove the requirement from configure. + +Signed-off-by: Adam Duskett <[email protected]> +--- + configure | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure b/configure +index de43442..c30bc4c 100755 +--- a/configure ++++ b/configure +@@ -16685,7 +16685,7 @@ fi + # The format below is used so that the requirements appear nicely in the .pc + # file. + +-GSTREAMERMM_MODULES='giomm-2.4 >= 2.47.6 gstreamer-1.0 >= 1.8.0 gstreamer-base-1.0 >= 1.8.0 gstreamer-check-1.0 >= 1.8.0 gstreamer-controller-1.0 >= 1.8.0 gstreamer-net-1.0 >= 1.8.0 gstreamer-allocators-1.0 >= 1.8.0 gstreamer-app-1.0 >= 1.8.0 gstreamer-audio-1.0 >= 1.8.0 gstreamer-fft-1.0 >= 1.8.0 gstreamer-pbutils-1.0 >= 1.8.0 gstreamer-plugins-base-1.0 >= 1.8.0 gstreamer-riff-1.0 >= 1.8.0 gstreamer-rtp-1.0 >= 1.8.0 gstreamer-rtsp-1.0 >= 1.8.0 gstreamer-sdp-1.0 >= 1.8.0 gstreamer-tag-1.0 >= 1.8.0 gstreamer-video-1.0 >= 1.8.0' ++GSTREAMERMM_MODULES='giomm-2.4 >= 2.47.6 gstreamer-1.0 >= 1.8.0 gstreamer-base-1.0 >= 1.8.0 gstreamer-controller-1.0 >= 1.8.0 gstreamer-net-1.0 >= 1.8.0 gstreamer-allocators-1.0 >= 1.8.0 gstreamer-app-1.0 >= 1.8.0 gstreamer-audio-1.0 >= 1.8.0 gstreamer-fft-1.0 >= 1.8.0 gstreamer-pbutils-1.0 >= 1.8.0 gstreamer-plugins-base-1.0 >= 1.8.0 gstreamer-riff-1.0 >= 1.8.0 gstreamer-rtp-1.0 >= 1.8.0 gstreamer-rtsp-1.0 >= 1.8.0 gstreamer-sdp-1.0 >= 1.8.0 gstreamer-tag-1.0 >= 1.8.0 gstreamer-video-1.0 >= 1.8.0' + + + +-- +2.13.5 +
package/gstreamer1/gst1-mm/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_GST1_MM + bool "Gstreamer C++ bindings" + select BR2_PACKAGE_GST1_PLUGINS_BASE + select BR2_PACKAGE_GLIBMM + help + gstreamermm provides C++ bindings for the GStreamer streaming + multimedia library (http://gstreamer.freedesktop.org). With + gstreamermm it is possible to develop applications that work + with multimedia in C++. + + gstreamermm is developed over glibmm, libsigc++ and libxml++ + and the functionalities they provide. This means that, among + other things, referencing and unreferencing of GObjects is + handled automatically via glibmm's automatic pointer class, + Glib::RefPtr, and libsigc++'s slots are used for callbacks and + signals. + + https://gstreamer.freedesktop.org/bindings/cplusplus.html
package/gstreamer1/gst1-mm/gst1-mm.hash new file +2 -0
@@ -0,0 +1,2 @@ +#From http://ftp.gnome.org/pub/gnome/sources/gstreamermm/1.8/gstreamermm-1.8.0.sha256sum +sha256 3ee3c1457ea2c32c1e17b784faa828f414ba27a9731532bf26d137a2ad999a44 gstreamermm-1.8.0.tar.xz
package/gstreamer1/gst1-mm/gst1-mm.mk new file +23 -0
@@ -0,0 +1,23 @@ +################################################################################ +# +# gst1-mm +# +################################################################################ + +GST1_MM_VERSION_MAJOR = 1.8 +GST1_MM_VERSION = $(GST1_MM_VERSION_MAJOR).0 +GST1_MM_SITE = http://ftp.gnome.org/pub/gnome/sources/gstreamermm/$(GST1_MM_VERSION_MAJOR) +GST1_MM_SOURCE = gstreamermm-$(GST1_MM_VERSION).tar.xz +GST1_MM_LICENSE = LGPL-2.1+ +GST1_MM_LICENSE_FILES = COPYING.LIB +GST1_MM_INSTALL_STAGING = YES +GST1_MM_DEPENDENCIES += \ + glibmm \ + gstreamer1 \ + gst1-plugins-base + +GST1_MM_CONF_OPTS += \ + --disable-gl \ + --disable-plugins-bad + +$(eval $(autotools-package))
Signature · 1 line
2.13.5
PATCH 2/2 gst1-mm: new package
Hi Adam,
I have a lot of nitpicky comments :-)
Quoted 1 line · Adam Duskett
Gstreamermm provides C++ bindings for gstreamer.
Since upstream calls it gstreamermm, we should have a name that closely
resembles it. I think we could even use gstreamermm itself, but it could also be gstreamer1-mm to be more similar to the existing gst1 packages. Note that the upstream of gst1-plugins-bad is called gst-plugins-bad, not gstreamer-plugins-bad.
But since we already have a gst-omx (this is a plugin that didn't exist in
gstreamer-0.10), I think we could choose gstreamermm.
Quoted 1 line
Signed-off-by Adam Duskett <[email protected]>
[snip]
package/gstreamer1/gst1-mm/0001-gst-audioclock-auto-generate-some-audioclock-methods.patch line 2
Quoted 8 lines
package/gstreamer1/gst1-mm/0001-gst-audioclock-auto-generate-some-audioclock-methods.patch new file +2
-0@@ -0,0 +1,68 @@ +From 631414d89ba50bb207ce1fb7e0324c0e91cdcf43 Mon Sep 17 00:00:00 2001 +From: Adam Duskett <[email protected]>
You should really keep the upstream author information...
git clone https://git.gnome.org/browse/gstreamermm
cd gstreamermm
git checkout 1.8.0
git cherry-pick -s 167eeba7757027e5faf8cdb59030ca094af04763 git commit --amend
package/gstreamer1/gst1-mm/0001-gst-audioclock-auto-generate-some-audioclock-methods.patch line 13
Quoted 11 lines
package/gstreamer1/gst1-mm/0001-gst-audioclock-auto-generate-some-audioclock-methods.patch new file +11
-0+Date: Thu, 31 Aug 2017 11:40:37 -0400 +Subject: [PATCH] Gst::AudioClock: auto generate some audioclock methods + +Those methods used to have object of GstClock type as a +first argument, so had to be wrapped manually. It has been +fixed in GStreamer (https://bugzilla.gnome.org/show_bug.cgi?id=756628) +in version 1.12.0 +https://bugzilla.gnome.org/show_bug.cgi?id=783628 + +Signed-off-by: Adam Duskett <[email protected]> +[Upstream commit: https://github.com/GNOME/gstreamermm/commit/167eeba7757027e5faf8cdb59030ca094af04763]
The upstream repo is (AFAIK) https://git.gnome.org/browse/gstreamermm, github
is just a mirror.
[snip]
package/gstreamer1/gst1-mm/0003-remove-gstreamer-check-dependency.patch line 6
Quoted 12 lines
package/gstreamer1/gst1-mm/0003-remove-gstreamer-check-dependency.patch new file +6
-0@@ -0,0 +1,29 @@ +From f65960a21c76bcd1371a9d0d3b008731d02a0e5d Mon Sep 17 00:00:00 2001 +From: Adam Duskett <[email protected]> +Date: Thu, 31 Aug 2017 11:42:40 -0400 +Subject: [PATCH] remove gstreamer-check dependency + +gstreamer-check is disabled by default in buildroot and itsn't required to
it isn't
package/gstreamer1/gst1-mm/0003-remove-gstreamer-check-dependency.patch line 7
Quoted 1 line
package/gstreamer1/gst1-mm/0003-remove-gstreamer-check-dependency.patch new file +1
-0+build gstreamermm. Remove the requirement from configure.
Do you think this patch could be sent upstream?
Quoted 28 lines
package/gstreamer1/gst1-mm/0003-remove-gstreamer-check-dependency.patch new file +22
-0+ +Signed-off-by: Adam Duskett <[email protected]> +--- + configure | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure b/configure +index de43442..c30bc4c 100755 +--- a/configure ++++ b/configure +@@ -16685,7 +16685,7 @@ fi + # The format below is used so that the requirements appear nicely in the .pc + # file. + +-GSTREAMERMM_MODULES='giomm-2.4 >= 2.47.6 gstreamer-1.0 >= 1.8.0 gstreamer-base-1.0 >= 1.8.0 gstreamer-check-1.0 >= 1.8.0 gstreamer-controller-1.0 >= 1.8.0 gstreamer-net-1.0 >= 1.8.0 gstreamer-allocators-1.0 >= 1.8.0 gstreamer-app-1.0 >= 1.8.0 gstreamer-audio-1.0 >= 1.8.0 gstreamer-fft-1.0 >= 1.8.0 gstreamer-pbutils-1.0 >= 1.8.0 gstreamer-plugins-base-1.0 >= 1.8.0 gstreamer-riff-1.0 >= 1.8.0 gstreamer-rtp-1.0 >= 1.8.0 gstreamer-rtsp-1.0 >= 1.8.0 gstreamer-sdp-1.0 >= 1.8.0 gstreamer-tag-1.0 >= 1.8.0 gstreamer-video-1.0 >= 1.8.0' ++GSTREAMERMM_MODULES='giomm-2.4 >= 2.47.6 gstreamer-1.0 >= 1.8.0 gstreamer-base-1.0 >= 1.8.0 gstreamer-controller-1.0 >= 1.8.0 gstreamer-net-1.0 >= 1.8.0 gstreamer-allocators-1.0 >= 1.8.0 gstreamer-app-1.0 >= 1.8.0 gstreamer-audio-1.0 >= 1.8.0 gstreamer-fft-1.0 >= 1.8.0 gstreamer-pbutils-1.0 >= 1.8.0 gstreamer-plugins-base-1.0 >= 1.8.0 gstreamer-riff-1.0 >= 1.8.0 gstreamer-rtp-1.0 >= 1.8.0 gstreamer-rtsp-1.0 >= 1.8.0 gstreamer-sdp-1.0 >= 1.8.0 gstreamer-tag-1.0 >= 1.8.0 gstreamer-video-1.0 >= 1.8.0' + + + +-- +2.13.5 +package/gstreamer1/gst1-mm/Config.in new file +0
-0
package/gstreamer1/gst1-mm/Config.in line 3
Quoted 3 lines
package/gstreamer1/gst1-mm/Config.in new file +3
-0@@ -0,0 +1,18 @@ +config BR2_PACKAGE_GST1_MM + bool "Gstreamer C++ bindings" + select BR2_PACKAGE_GST1_PLUGINS_BASE
Based on the modules listed above, I'd guess that you actually need to select a
bunch of modules from plugins-base, e.g. BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP. And isn't e.g. BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTSP needed as well?
Quoted 5 lines
package/gstreamer1/gst1-mm/Config.in new file +5
-0+ select BR2_PACKAGE_GLIBMM + help + gstreamermm provides C++ bindings for the GStreamer streaming + multimedia library (http://gstreamer.freedesktop.org). With + gstreamermm it is possible to develop applications that work
package/gstreamer1/gst1-mm/Config.in line 18
Quoted 10 lines
package/gstreamer1/gst1-mm/Config.in new file +10
-0+ with multimedia in C++. + + gstreamermm is developed over glibmm, libsigc++ and libxml++ + and the functionalities they provide. This means that, among + other things, referencing and unreferencing of GObjects is + handled automatically via glibmm's automatic pointer class, + Glib::RefPtr, and libsigc++'s slots are used for callbacks and + signals. + + https://gstreamer.freedesktop.org/bindings/cplusplus.html
Good choice of upstream URL!
Regards,
Arnout
Quoted 38 lines
package/gstreamer1/gst1-mm/gst1-mm.hash new file +2
-0@@ -0,0 +1,2 @@ +#From http://ftp.gnome.org/pub/gnome/sources/gstreamermm/1.8/gstreamermm-1.8.0.sha256sum +sha256 3ee3c1457ea2c32c1e17b784faa828f414ba27a9731532bf26d137a2ad999a44 gstreamermm-1.8.0.tar.xzpackage/gstreamer1/gst1-mm/gst1-mm.mk new file +23
-0@@ -0,0 +1,23 @@ +################################################################################ +# +# gst1-mm +# +################################################################################ + +GST1_MM_VERSION_MAJOR = 1.8 +GST1_MM_VERSION = $(GST1_MM_VERSION_MAJOR).0 +GST1_MM_SITE = http://ftp.gnome.org/pub/gnome/sources/gstreamermm/$(GST1_MM_VERSION_MAJOR) +GST1_MM_SOURCE = gstreamermm-$(GST1_MM_VERSION).tar.xz +GST1_MM_LICENSE = LGPL-2.1+ +GST1_MM_LICENSE_FILES = COPYING.LIB +GST1_MM_INSTALL_STAGING = YES +GST1_MM_DEPENDENCIES += \ + glibmm \ + gstreamer1 \ + gst1-plugins-base + +GST1_MM_CONF_OPTS += \ + --disable-gl \ + --disable-plugins-bad + +$(eval $(autotools-package))
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF