Add gstreamer

This commit is contained in:
Jeremy Soller 2019-01-05 15:40:35 -07:00
parent ca67cf226d
commit 9445ecf824
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,48 @@
VERSION=1.14.4
TAR=https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$VERSION.tar.xz
BUILD_DEPENDS=(gettext glib libffi libiconv pcre zlib)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib"
export GLIB_GENMARSHAL="$(which glib-genmarshal)"
export GLIB_MKENUMS="$(which glib-mkenums)"
./configure \
--host=${HOST} \
--prefix=/ \
--disable-shared \
--enable-static \
--disable-benchmarks \
--disable-examples \
--disable-tests
make -j"$(nproc)" V=1
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
make clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
make DESTDIR="$dest" install
rm -f "$dest/lib/"*.la
skip=1
}

View File

@ -0,0 +1,24 @@
diff -ruwN source/gst/gstpoll.c source-new/gst/gstpoll.c
--- source/gst/gstpoll.c 2018-03-23 14:44:36.000000000 -0600
+++ source-new/gst/gstpoll.c 2019-01-05 15:17:35.861961634 -0700
@@ -85,6 +85,10 @@
#include <sys/socket.h>
#endif
+#if defined(__redox__)
+#include <sys/select.h>
+#endif
+
#ifdef G_OS_WIN32
# ifndef EWOULDBLOCK
# define EWOULDBLOCK EAGAIN /* This is just to placate gcc */
@@ -689,7 +693,9 @@
{
gint control_sock[2];
+#if !defined(__redox__)
if (socketpair (PF_UNIX, SOCK_STREAM, 0, control_sock) < 0)
+#endif
goto no_socket_pair;
nset->control_read_fd.fd = control_sock[0];