2022-08-18 07:59:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SCRIPT_REPO="https://github.com/ultravideo/kvazaar.git"
|
2023-07-08 15:37:10 +00:00
|
|
|
SCRIPT_COMMIT="aaae5b0f4926065136f287876c6bc41631bae692"
|
2022-08-18 07:59:15 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2022-08-18 07:59:15 +00:00
|
|
|
|
|
|
|
./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
|
|
|
|
}
|