# $FreeBSD$

freebsd_instance:
  image: freebsd-14-1-release-amd64-ufs

env:
  CIRRUS_CLONE_DEPTH: 1
  CIRRUS_CLONE_SUBMODULES: true

task:
  install_script:
  - pkg install -y
    cmake ninja binutils pkgconf curl kf6-extra-cmake-modules
    ffmpeg qt6-base qt6-svg jansson libsysinfo e2fsprogs-libuuid pulseaudio
    alsa-lib pipewire v4l_compat libpci librist srt nlohmann-json uthash
    qr-code-generator websocketpp asio vlc swig luajit jackit sndio fdk-aac
    libdatachannel
  script:
  - cmake
    -S $(pwd)
    -B build
    -G Ninja
    -DOBS_CMAKE_VERSION=3.0
    -DENABLE_JACK:BOOL=ON
    -DENABLE_SNDIO:BOOL=ON
    -DENABLE_LIBFDK:BOOL=ON
  - cmake
    --build build
    --config RelWithDebInfo
