mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 05:44:17 +08:00
Add gstreamer
This commit is contained in:
parent
ca67cf226d
commit
9445ecf824
48
recipes/gstreamer/recipe.sh
Normal file
48
recipes/gstreamer/recipe.sh
Normal 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
|
||||
}
|
||||
24
recipes/gstreamer/redox.patch
Normal file
24
recipes/gstreamer/redox.patch
Normal 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];
|
||||
Loading…
Reference in New Issue
Block a user