summaryrefslogtreecommitdiffstats
path: root/scripts/mpv-config
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mpv-config')
-rwxr-xr-xscripts/mpv-config11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/mpv-config b/scripts/mpv-config
index b23cf4d..397c513 100755
--- a/scripts/mpv-config
+++ b/scripts/mpv-config
@@ -9,7 +9,16 @@ if test -f "$BUILD"/mpv_options ; then
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
-PKG_CONFIG_PATH="$BUILD"/build_libs/lib/pkgconfig ./waf configure $OPTIONS
+./waf configure $OPTIONS