blob: 397c51387109b72b5dd6dd6e0e4fef699ddc08df (
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
|
#!/bin/sh
set -e
BUILD="$(pwd)"
USER_OPTS="$@"
if test -f "$BUILD"/mpv_options ; then
USER_OPTS="$(cat "$BUILD"/mpv_options) $USER_OPTS"
fi
OPTIONS="$USER_OPTS"
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
./waf configure $OPTIONS
|