summaryrefslogtreecommitdiffstats
path: root/scripts/libass-config
blob: f257028ede3a66914f13a499db318a72d08ed4d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e
BUILD="$(pwd)"

OPTIONS="$@"

if "$BUILD"/scripts/test-libmpv ; then
    OPTIONS="$OPTIONS --with-pic"
fi

cd "$BUILD"/libass
# Later libass doesn't automatically run configure with autogen.sh anymore
PKG_CONFIG_PATH="$BUILD"/build_libs/lib/pkgconfig ./autogen.sh --prefix="$BUILD/build_libs" --libdir="$BUILD/build_libs/lib" --enable-static --disable-shared $OPTIONS
PKG_CONFIG_PATH="$BUILD"/build_libs/lib/pkgconfig ./configure  --prefix="$BUILD/build_libs" --libdir="$BUILD/build_libs/lib" --enable-static --disable-shared $OPTIONS