1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00
mpv/ci/build-freebsd.sh
Dudemanguy 09bbca8770 ci: refactor ci so common args are picked from one location
Mostly. It is annoying if we want to add some flag/option to all the cis
and then have to do it manually. Things easily get missed that way.
Skipped powershell because of course I'm not going to deal with that.
2024-10-18 14:02:51 +00:00

28 lines
689 B
Bash
Executable File

#!/bin/sh
set -e
. ./ci/build-common.sh
export CFLAGS="$CFLAGS -isystem/usr/local/include -march=native"
export CXXFLAGS="$CXXFLAGS -isystem/usr/local/include"
export LDFLAGS="$LDFLAGS -L/usr/local/lib"
# TODO: readd -Ddvbin=enabled
meson setup build $common_args \
-Db_sanitize=address,undefined \
-Diconv=disabled \
-Dlua=enabled \
-Degl-drm=enabled \
-Dopenal=enabled \
-Dsndio=enabled \
-Dvdpau=enabled \
-Dvulkan=enabled \
-Doss-audio=enabled \
$(pkg info -q libdvdnav && echo -Ddvdnav=enabled) \
$(pkg info -q libcdio-paranoia && echo -Dcdda=enabled) \
$(pkg info -q pipewire && echo -Dpipewire=enabled)
meson compile -C build
./build/mpv -v --no-config