blob: 99432f7f5a15f2dd0365bbbd92215bbdb9fe5102 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
set -e
BUILD="$(pwd)"
newline="
"
if test -f "$BUILD"/mpv_options ; then
IFS=$newline
set -- $(cat "$BUILD"/mpv_options) "$@"
unset -v IFS
fi
case "$PKG_CONFIG_PATH" in
'')
export PKG_CONFIG_PATH="$BUILD/build_libs/lib/pkgconfig"
;;
*)
export PKG_CONFIG_PATH="$BUILD/build_libs/lib/pkgconfig:$PKG_CONFIG_PATH"
;;
esac
echo Using mpv options: $OPTIONS "$@"
cd "$BUILD"/mpv
# add missing private dependencies from libass.pc
# this is necessary due to the hybrid static / dynamic nature of the build
# need to link against stdc++ in case libplacebo was built with glslang,
# which requires that
export LDFLAGS="$LDFLAGS $(pkg-config --libs fontconfig harfbuzz fribidi) -lstdc++"
meson setup build -Dbuildtype=release $OPTIONS "$@"
|