summaryrefslogtreecommitdiff
path: root/user/gst-plugins-good
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-10 15:54:11 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-10 15:54:11 +0000
commit738717bfd979326a0a1060103e15dfc6deb064b1 (patch)
treeb41c683cc0a4615b59cbba70f36ff7e9d9e9dafb /user/gst-plugins-good
parentda8d23d2df44fb4b8a9510ce36d0d66758609426 (diff)
downloadpackages-738717bfd979326a0a1060103e15dfc6deb064b1.tar.gz
packages-738717bfd979326a0a1060103e15dfc6deb064b1.tar.bz2
packages-738717bfd979326a0a1060103e15dfc6deb064b1.tar.xz
packages-738717bfd979326a0a1060103e15dfc6deb064b1.zip
user/gst-plugins-good: new package
Diffstat (limited to 'user/gst-plugins-good')
-rw-r--r--user/gst-plugins-good/APKBUILD59
-rw-r--r--user/gst-plugins-good/endian-test.patch20
2 files changed, 79 insertions, 0 deletions
diff --git a/user/gst-plugins-good/APKBUILD b/user/gst-plugins-good/APKBUILD
new file mode 100644
index 000000000..fb4d05277
--- /dev/null
+++ b/user/gst-plugins-good/APKBUILD
@@ -0,0 +1,59 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=gst-plugins-good
+pkgver=1.14.4
+pkgrel=0
+pkgdesc="GStreamer multimedia framework - Free, well-written plugins"
+url="https://gstreamer.freedesktop.org/modules/gst-plugins-good.html"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+checkdepends="orc-compiler cmd:which"
+makedepends="gst-plugins-base-dev gstreamer-dev gobject-introspection-dev
+ orc-dev libgudev-dev v4l-utils-dev libx11-dev cairo-dev flac-dev
+ gdk-pixbuf-dev gtk+3.0-dev libjpeg-turbo-dev lame-dev libdv-dev
+ libpng-dev mpg123-dev pulseaudio-dev libraw1394-dev libiec61883-dev
+ libavc1394-dev libsoup-dev speex-dev taglib-dev wavpack-dev zlib-dev
+ bzip2-dev"
+subpackages="$pkgname-doc $pkgname-gtk $pkgname-lang"
+ldpath="/usr/lib/gstreamer-1.0"
+source="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.xz
+ endian-test.patch
+ "
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-introspection \
+ --with-package-origin="${DISTRO_NAME:-Adélie Linux} (${DISTRO_URL:-https://www.adelielinux.org/})"
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+gtk() {
+ pkgdesc="$pkgdesc (Gtk+ 3 integration)"
+ install_if="$pkgname=$pkgver-r$pkgrel gtk+3.0"
+ mkdir -p "$subpkgdir"/usr/lib/gstreamer-1.0
+ mv "$pkgdir"/usr/lib/gstreamer-1.0/libgstgdkpixbuf.so \
+ "$subpkgdir"/usr/lib/gstreamer-1.0/
+ mv "$pkgdir"/usr/lib/gstreamer-1.0/libgstgtk.so \
+ "$subpkgdir"/usr/lib/gstreamer-1.0/
+}
+
+sha512sums="30aeb3bb74571287cad1598973da38e7a43a0128d35480ded6d280c1373dc4ecd4ea76caaa04a71cdfba2e1850aee5f1b72d96be86ae92d66633e7d32081c504 gst-plugins-good-1.14.4.tar.xz
+1cecf260cfeb19675a819f9858426aaed3b9627ed90b8facb6cb12dfc0b265232639b1888d7cc03edb87025e3eddab6e3606f16b5f7ca261a6b1c39b0dbdc6f7 endian-test.patch"
diff --git a/user/gst-plugins-good/endian-test.patch b/user/gst-plugins-good/endian-test.patch
new file mode 100644
index 000000000..52065bf34
--- /dev/null
+++ b/user/gst-plugins-good/endian-test.patch
@@ -0,0 +1,20 @@
+--- gst-plugins-good-1.14.4/tests/check/elements/alpha.c.old 2018-03-23 20:44:48.000000000 +0000
++++ gst-plugins-good-1.14.4/tests/check/elements/alpha.c 2019-01-10 15:47:17.410000000 +0000
+@@ -99,9 +99,17 @@
+ int i;
+
+ if (color == FILL_GREEN)
++#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
++ rgba_col = 0x00ff00ff;
++#else
+ rgba_col = 0xff00ff00; /* GREEN */
++#endif
+ else
++#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
++ rgba_col = 0x0000ffff;
++#else
+ rgba_col = 0xffff0000; /* BLUE */
++#endif
+
+ for (i = 0; i < HEIGHT * WIDTH; i++)
+ rgba32[i] = rgba_col;