45 lines
845 B
Bash
Executable file
45 lines
845 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://gitlab.freedesktop.org/fontconfig/fontconfig.git"
|
|
SCRIPT_COMMIT="2ef790a0dbbab24235d1b8c0325ab4414de5f0a9"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" fc
|
|
cd fc
|
|
|
|
./autogen.sh --noconf
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--disable-docs
|
|
--enable-libxml2
|
|
--enable-iconv
|
|
--disable-shared
|
|
--enable-static
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
./configure "${myconf[@]}"
|
|
make -j$(nproc)
|
|
make install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-fontconfig
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-fontconfig
|
|
}
|