2024-02-24 18:38:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2024-10-16 22:27:13 +00:00
|
|
|
. ./ci/build-common.sh
|
|
|
|
|
2024-06-21 18:27:20 +00:00
|
|
|
# FFmpeg on openBSD (4.4.4) is too old; use a subproject
|
2024-02-24 18:38:06 +00:00
|
|
|
rm -rf subprojects
|
|
|
|
mkdir -p subprojects
|
2024-06-21 17:22:29 +00:00
|
|
|
cat <<EOF > subprojects/ffmpeg.wrap
|
|
|
|
[wrap-git]
|
|
|
|
url = https://gitlab.freedesktop.org/gstreamer/meson-ports/ffmpeg.git
|
2024-10-06 16:44:33 +00:00
|
|
|
revision = meson-7.1
|
2024-06-21 17:22:29 +00:00
|
|
|
depth = 1
|
|
|
|
[provide]
|
|
|
|
libavcodec = libavcodec_dep
|
|
|
|
libavdevice = libavdevice_dep
|
|
|
|
libavfilter = libavfilter_dep
|
|
|
|
libavformat = libavformat_dep
|
|
|
|
libavutil = libavutil_dep
|
|
|
|
libswresample = libswresample_dep
|
|
|
|
libswscale = libswscale_dep
|
|
|
|
EOF
|
|
|
|
|
2024-10-16 22:27:13 +00:00
|
|
|
meson setup build $common_args \
|
|
|
|
-Dffmpeg:vulkan=auto \
|
|
|
|
-Dffmpeg:werror=false \
|
|
|
|
-Dlua=enabled \
|
|
|
|
-Dopenal=enabled \
|
|
|
|
-Dpulse=enabled \
|
|
|
|
-Dvulkan=enabled \
|
2024-10-17 05:41:33 +00:00
|
|
|
-Ddvdnav=enabled
|
2024-02-24 18:38:06 +00:00
|
|
|
meson compile -C build
|
|
|
|
./build/mpv -v --no-config
|