New package: gstreamermm-1.8.0
This commit is contained in:
parent
9efc259722
commit
a813448594
4 changed files with 80 additions and 0 deletions
|
@ -2822,6 +2822,7 @@ libbrotlidec.so.0.6.0 brotli-0.6.0_1
|
|||
libbrotlienc.so.0.6.0 brotli-0.6.0_1
|
||||
libfilteraudio.so filter_audio-0.0.1_1
|
||||
libarmadillo.so.7 armadillo-7.800.2_1
|
||||
libgstreamermm-1.0.so.1 gstreamermm-1.8.0_1
|
||||
libduktape.so.201 duktape-2.1.1_1
|
||||
libccgnu2-1.8.so.0 commoncpp2-1.8.1_1
|
||||
libccext2-1.8.so.0 commoncpp2-1.8.1_1
|
||||
|
|
1
srcpkgs/gstreamermm-devel
Symbolic link
1
srcpkgs/gstreamermm-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
gstreamermm
|
|
@ -0,0 +1,45 @@
|
|||
Author: Marcin Kolny <marcin.kolny@gmail.com>
|
||||
Description: Gst::AudioClock: auto generate some audioclock methods
|
||||
Origin: https://bugzilla.gnome.org/show_bug.cgi?id=783628
|
||||
Last-update: 2017-07-01
|
||||
|
||||
--- gstreamer/gstreamermm/audioclock.cc
|
||||
+++ gstreamer/gstreamermm/audioclock.cc
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include <glibmm.h>
|
||||
+#include <gst/gstversion.h>
|
||||
|
||||
#include <gstreamermm/audioclock.h>
|
||||
#include <gstreamermm/private/audioclock_p.h>
|
||||
@@ -76,17 +77,29 @@ AudioClock::AudioClock(const Glib::ustri
|
||||
|
||||
Gst::ClockTime AudioClock::adjust(Gst::ClockTime time)
|
||||
{
|
||||
+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12
|
||||
+ return ((Gst::ClockTime)(gst_audio_clock_adjust(gobj(), ((GstClockTime)(time)))));
|
||||
+#else
|
||||
return static_cast<Gst::ClockTime>(gst_audio_clock_adjust(GST_CLOCK_CAST(gobj()), static_cast<GstClockTime>(time)));
|
||||
+#endif
|
||||
}
|
||||
|
||||
Gst::ClockTime AudioClock::get_time() const
|
||||
{
|
||||
+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12
|
||||
+ return ((Gst::ClockTime)(gst_audio_clock_get_time(const_cast<GstAudioClock*>(gobj()))));
|
||||
+#else
|
||||
return static_cast<Gst::ClockTime>(gst_audio_clock_get_time(GST_CLOCK_CAST(gobj())));
|
||||
+#endif
|
||||
}
|
||||
|
||||
void AudioClock::invalidate()
|
||||
{
|
||||
+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12
|
||||
+ gst_audio_clock_invalidate(gobj());
|
||||
+#else
|
||||
gst_audio_clock_invalidate(GST_CLOCK_CAST(gobj()));
|
||||
+#endif
|
||||
}
|
||||
|
||||
} //namespace Gst
|
33
srcpkgs/gstreamermm/template
Normal file
33
srcpkgs/gstreamermm/template
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Template file for 'gstreamermm'
|
||||
pkgname=gstreamermm
|
||||
version=1.8.0
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config perl"
|
||||
makedepends="gst-plugins-base1-devel pangomm-devel"
|
||||
configure_args="--disable-plugins-bad"
|
||||
short_desc="GStreamer API C++ bindings"
|
||||
maintainer="newbluemoon <blaumolch@mailbox.org>"
|
||||
homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
|
||||
license="GPL-2, GPL-2.1"
|
||||
distfiles="${GNOME_SITE}/${pkgname}/1.8/${pkgname}-${version}.tar.xz"
|
||||
checksum=3ee3c1457ea2c32c1e17b784faa828f414ba27a9731532bf26d137a2ad999a44
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING
|
||||
vlicense COPYING.examples
|
||||
vlicense COPYING.tools
|
||||
}
|
||||
|
||||
gstreamermm-devel_package() {
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/gstreamermm-1.0
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove usr/lib/*.so
|
||||
vmove usr/share
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue