mpv/ci/build-freebsd.sh

28 lines
689 B
Bash
Raw Normal View History

2020-05-23 15:29:28 +00:00
#!/bin/sh
set -e
. ./ci/build-common.sh
export CFLAGS="$CFLAGS -isystem/usr/local/include -march=native"
2020-05-23 15:29:28 +00:00
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