mpv/ci/build-openbsd.sh

35 lines
751 B
Bash
Raw Normal View History

2024-02-24 18:38:06 +00:00
#!/bin/sh
set -e
# 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
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
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-02-24 18:38:06 +00:00
meson setup build \
-Dffmpeg:vulkan=auto \
2024-02-24 18:38:06 +00:00
-Dlibmpv=true \
-Dlua=enabled \
-Dopenal=enabled \
-Dpulse=enabled \
-Dtests=true \
-Dvulkan=enabled \
-Ddvdnav=enabled \
-Dcdda=enabled
meson compile -C build
./build/mpv -v --no-config