You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
TERMUX_PKG_HOMEPAGE=https://gstreamer.freedesktop.org/
|
|
TERMUX_PKG_DESCRIPTION="Open source multimedia framework"
|
|
TERMUX_PKG_VERSION=1.12.4
|
|
TERMUX_PKG_SHA256=5a8704aa4c2eeb04da192c4a9942f94f860ac1a585de90d9f914bac26a970674
|
|
TERMUX_PKG_SRCURL=https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_DEPENDS="glib"
|
|
TERMUX_PKG_DEVPACKAGE_DEPENDS="glib-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-check --disable-tests --disable-examples --disable-benchmarks --with-unwind=no --with-dw=no"
|
|
|
|
termux_step_post_make_install () {
|
|
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
|
|
}
|
|
|