2020-07-28 06:45:11 +00:00
|
|
|
set -e
|
|
|
|
|
2022-07-12 07:26:44 +00:00
|
|
|
pip3 install meson==0.63.0
|
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 ..
|
|
|
|
git clone --depth 1 https://gitlab.freedesktop.org/gstreamer/gstreamer.git --branch main
|
|
|
|
cd gstreamer
|
2020-04-15 13:12:22 +00:00
|
|
|
|
2021-10-21 09:37:27 +00:00
|
|
|
# plugins required by tests
|
|
|
|
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"
|
|
|
|
|
2022-09-02 16:11:13 +00:00
|
|
|
meson build -D prefix=/usr/local -D examples=disabled -D gtk_doc=disabled -D introspection=disabled -D libav=disabled -D python=disabled -D ugly=disabled -D vaapi=disabled $PLUGINS
|
2020-04-15 13:12:22 +00:00
|
|
|
ninja -C build
|
|
|
|
ninja -C build install
|
2021-09-29 07:31:22 +00:00
|
|
|
|
2022-05-10 07:11:04 +00:00
|
|
|
cd ..
|
|
|
|
rm -rf gstreamer/
|
|
|
|
|
2021-10-21 09:37:27 +00:00
|
|
|
popd
|