aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gstreamermm
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-03-22 15:29:20 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-03-23 07:58:01 +0000
commit913ab399a3758b18030f549fce9c96e530678b4b (patch)
tree9f3fd784fd0510e20bf8d004174a120558a78c10 /testing/gstreamermm
parent7a1d8ad654dc33c40ef173d862f53fc1adb91bf2 (diff)
downloadaports-913ab399a3758b18030f549fce9c96e530678b4b.tar.bz2
aports-913ab399a3758b18030f549fce9c96e530678b4b.tar.xz
testing/gstreamermm: new aport
Diffstat (limited to 'testing/gstreamermm')
-rw-r--r--testing/gstreamermm/APKBUILD35
-rw-r--r--testing/gstreamermm/fix-ftbfs.patch11
2 files changed, 46 insertions, 0 deletions
diff --git a/testing/gstreamermm/APKBUILD b/testing/gstreamermm/APKBUILD
new file mode 100644
index 0000000000..0d8f7b0300
--- /dev/null
+++ b/testing/gstreamermm/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=gstreamermm
+pkgver=1.4.3
+pkgrel=0
+pkgdesc="C++ interface for GStreamer"
+url="http://gstreamer.freedesktop.org/bindings/cplusplus.html"
+arch="all"
+license="LGPL"
+makedepends="glibmm-dev gst-plugins-base1-dev"
+checkdepends="gtest-dev"
+options="!check"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://ftp.gnome.org/pub/GNOME/sources/gstreamermm/${pkgver%.[0-9]*}/$pkgname-$pkgver.tar.xz
+fix-ftbfs.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ export CXXFLAGS="$CXXFLAGS -std=c++11"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+sha512sums="ea4d281a4f3b79113fc3a0474e23d82442facac6eaf66215de412310b9c306aa5d586ee5570087d94d90acbfc09c5766edba1414b50f0fd9a3111cda610f5671 gstreamermm-1.4.3.tar.xz
+83636b6fe9f4438dfe1e4188ac62ba996b9ac575994406a234a2597f89a396f5cf4fda781f403308137e740e0215d01010e433bdce06aa896c767f50ab379017 fix-ftbfs.patch"
diff --git a/testing/gstreamermm/fix-ftbfs.patch b/testing/gstreamermm/fix-ftbfs.patch
new file mode 100644
index 0000000000..5ce449799d
--- /dev/null
+++ b/testing/gstreamermm/fix-ftbfs.patch
@@ -0,0 +1,11 @@
+--- a/gstreamer/gstreamermm/check.cc
++++ b/gstreamer/gstreamermm/check.cc
+@@ -54,7 +54,7 @@
+
+ element = ElementFactory::create_element (factory, factory);
+
+- ThrowIf (element, "Could not create a '" + factory + "' element");
++ ThrowIf (!!element, "Could not create a '" + factory + "' element");
+ CheckRefCount (element->gobj(), factory, 1);
+
+ return element;