2020-05-23 15:29:28 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export CFLAGS="$CFLAGS -isystem/usr/local/include"
|
|
|
|
export CXXFLAGS="$CXXFLAGS -isystem/usr/local/include"
|
|
|
|
export LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
|
|
|
|
2022-10-29 02:40:53 +00:00
|
|
|
meson setup build \
|
2021-11-07 19:29:11 +00:00
|
|
|
-Dlibmpv=true \
|
|
|
|
-Dlua=enabled \
|
|
|
|
-Degl-drm=enabled \
|
|
|
|
-Dopenal=enabled \
|
|
|
|
-Dsdl2=enabled \
|
2022-01-22 18:48:48 +00:00
|
|
|
-Dsndio=enabled \
|
2021-11-07 19:29:11 +00:00
|
|
|
-Dvdpau=enabled \
|
|
|
|
-Dvulkan=enabled \
|
|
|
|
-Doss-audio=enabled \
|
|
|
|
$(pkg info -q v4l_compat && echo -Ddvbin=enabled) \
|
|
|
|
$(pkg info -q libdvdnav && echo -Ddvdnav=enabled) \
|
|
|
|
$(pkg info -q libcdio-paranoia && echo -Dcdda=enabled) \
|
2022-08-18 10:14:46 +00:00
|
|
|
$(pkg info -q pipewire && echo -Dpipewire=enabled) \
|
2021-11-07 19:29:11 +00:00
|
|
|
$NULL
|
|
|
|
|
|
|
|
meson compile -C build
|
|
|
|
./build/mpv
|
|
|
|
|
2020-05-23 15:29:28 +00:00
|
|
|
if [ ! -e "./waf" ] ; then
|
|
|
|
python3 ./bootstrap.py
|
|
|
|
fi
|
|
|
|
|
|
|
|
python3 ./waf configure \
|
|
|
|
--enable-libmpv-shared \
|
|
|
|
--enable-lua \
|
|
|
|
--enable-egl-drm \
|
|
|
|
--enable-openal \
|
|
|
|
--enable-sdl2 \
|
2022-01-22 18:48:48 +00:00
|
|
|
--enable-sndio \
|
2020-05-23 15:29:28 +00:00
|
|
|
--enable-vdpau \
|
|
|
|
--enable-vulkan \
|
2021-11-01 22:03:24 +00:00
|
|
|
--enable-oss-audio \
|
2020-05-23 15:29:28 +00:00
|
|
|
$(pkg info -q v4l_compat && echo --enable-dvbin) \
|
|
|
|
$(pkg info -q libdvdnav && echo --enable-dvdnav) \
|
|
|
|
$(pkg info -q libcdio-paranoia && echo --enable-cdda) \
|
2022-08-18 10:14:46 +00:00
|
|
|
$(pkg info -q pipewire && echo --enable-pipewire) \
|
2020-05-23 15:29:28 +00:00
|
|
|
$NULL
|
|
|
|
|
|
|
|
python3 ./waf build
|