2022-12-16 08:18:02 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2020-07-28 06:45:11 +00:00
|
|
|
set -e
|
|
|
|
|
2023-06-01 17:10:38 +00:00
|
|
|
pip3 install meson==1.1.1 --break-system-packages
|
2020-04-15 13:12:22 +00:00
|
|
|
|
2021-09-29 07:31:22 +00:00
|
|
|
# gstreamer-rs already has a 'gstreamer' directory so don't clone there
|
|
|
|
pushd .
|
|
|
|
cd ..
|
2022-12-16 08:13:43 +00:00
|
|
|
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git \
|
|
|
|
--depth 1 \
|
2023-02-20 07:55:58 +00:00
|
|
|
--branch main
|
2022-12-16 08:13:43 +00:00
|
|
|
|
2021-09-29 07:31:22 +00:00
|
|
|
cd gstreamer
|
2020-04-15 13:12:22 +00:00
|
|
|
|
2021-10-21 09:37:27 +00:00
|
|
|
# plugins required by tests
|
2022-12-16 08:13:43 +00:00
|
|
|
PLUGINS="-D gst-plugins-base:ogg=enabled \
|
|
|
|
-D gst-plugins-base:vorbis=enabled \
|
|
|
|
-D gst-plugins-base:theora=enabled \
|
|
|
|
-D gst-plugins-good:matroska=enabled \
|
|
|
|
-D gst-plugins-good:vpx=enabled \
|
|
|
|
-D gst-plugins-bad:opus=enabled \
|
|
|
|
-D gst-plugins-ugly:x264=enabled"
|
2021-10-21 09:37:27 +00:00
|
|
|
|
2023-07-19 07:54:06 +00:00
|
|
|
echo "subproject('gtk')" >> meson.build
|
2022-12-16 08:19:28 +00:00
|
|
|
meson setup build \
|
2022-12-16 08:13:43 +00:00
|
|
|
-D prefix=/usr/local \
|
|
|
|
-D gpl=enabled \
|
|
|
|
-D ugly=enabled \
|
|
|
|
-D examples=disabled \
|
|
|
|
-D gtk_doc=disabled \
|
|
|
|
-D introspection=disabled \
|
|
|
|
-D libav=disabled \
|
|
|
|
-D python=disabled \
|
|
|
|
-D vaapi=disabled \
|
|
|
|
$PLUGINS
|
2022-12-16 08:19:28 +00:00
|
|
|
meson compile -C build
|
|
|
|
meson install -C build
|
2022-12-16 08:47:19 +00:00
|
|
|
ldconfig
|
2021-09-29 07:31:22 +00:00
|
|
|
|
2022-05-10 07:11:04 +00:00
|
|
|
cd ..
|
|
|
|
rm -rf gstreamer/
|
|
|
|
|
2022-12-16 07:59:11 +00:00
|
|
|
# Check what plugins we installed
|
|
|
|
gst-inspect-1.0
|
|
|
|
|
2021-10-21 09:37:27 +00:00
|
|
|
popd
|