45 lines
870 B
Bash
Executable file
45 lines
870 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://github.com/ultravideo/kvazaar.git"
|
|
SCRIPT_COMMIT="a085e802ec6d24319160fec32c4027122e73580f"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" kvazaar
|
|
cd kvazaar
|
|
|
|
./autogen.sh
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--disable-shared
|
|
--enable-static
|
|
--with-pic
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
./configure "${myconf[@]}"
|
|
make -j$(nproc)
|
|
make install
|
|
|
|
echo "Cflags.private: -DKVZ_STATIC_LIB" >> "$FFBUILD_PREFIX"/lib/pkgconfig/kvazaar.pc
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libkvazaar
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libkvazaar
|
|
}
|