2017-10-15 01:02:21 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://gstreamer.freedesktop.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Open source multimedia framework"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="LGPL-2.0"
|
2018-10-18 22:30:32 +02:00
|
|
|
TERMUX_PKG_VERSION=1.14.4
|
|
|
|
TERMUX_PKG_SHA256=f94f6696c5f05a3b3a9183e39c5f5c0b779f75a04c0efa497e7920afa985ffc7
|
2017-10-15 01:02:21 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${TERMUX_PKG_VERSION}.tar.xz
|
|
|
|
TERMUX_PKG_DEPENDS="glib"
|
2017-12-05 20:48:45 +01:00
|
|
|
TERMUX_PKG_DEVPACKAGE_DEPENDS="glib-dev"
|
2019-02-16 14:32:53 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-check
|
|
|
|
--disable-tests
|
|
|
|
--disable-examples
|
|
|
|
--disable-benchmarks
|
|
|
|
--with-unwind=no
|
|
|
|
--with-dw=no
|
|
|
|
GLIB_GENMARSHAL=/usr/bin/glib-genmarshal
|
|
|
|
GLIB_MKENUMS=/usr/bin/glib-mkenums
|
|
|
|
"
|
2017-10-15 01:02:21 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2017-10-15 01:02:21 +02:00
|
|
|
for BINARY in gst-inspect-1.0 gst-stats-1.0 gst-typefind-1.0 gst-launch-1.0
|
|
|
|
do
|
|
|
|
echo $BINARY
|
|
|
|
local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/$BINARY
|
|
|
|
local BIN_BINARY=$TERMUX_PREFIX/bin/$BINARY
|
|
|
|
local LIB_PATH=/system/lib
|
|
|
|
if [ ! "$TERMUX_ARCH_BITS" == "32" ]
|
|
|
|
then
|
|
|
|
LIB_PATH+=64
|
|
|
|
fi
|
|
|
|
|
|
|
|
mv $BIN_BINARY $LIBEXEC_BINARY
|
|
|
|
|
|
|
|
cat << EOF > $BIN_BINARY
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Avoid linker errors due to libOpenSLES.so:
|
|
|
|
LD_LIBRARY_PATH=/system/lib64/:$TERMUX_PREFIX/lib exec $LIBEXEC_BINARY "\$@"
|
|
|
|
EOF
|
|
|
|
chmod +x $BIN_BINARY
|
|
|
|
done
|
|
|
|
}
|