35-fontconfig.sh 929 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. SCRIPT_REPO="https://gitlab.freedesktop.org/fontconfig/fontconfig.git"
  3. SCRIPT_COMMIT="3bb79f0a4ac7977942d75a16a9e7ac9cb353509d"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. ./autogen.sh --noconf
  9. local myconf=(
  10. --prefix="$FFBUILD_PREFIX"
  11. --disable-docs
  12. --enable-libxml2
  13. --enable-iconv
  14. --disable-shared
  15. --enable-static
  16. )
  17. if [[ $TARGET == linux* ]]; then
  18. myconf+=(
  19. --sysconfdir=/etc
  20. --localstatedir=/var
  21. --host="$FFBUILD_TOOLCHAIN"
  22. )
  23. elif [[ $TARGET == win* ]]; then
  24. myconf+=(
  25. --host="$FFBUILD_TOOLCHAIN"
  26. )
  27. else
  28. echo "Unknown target"
  29. return -1
  30. fi
  31. ./configure "${myconf[@]}"
  32. make -j$(nproc)
  33. make install
  34. }
  35. ffbuild_configure() {
  36. echo --enable-fontconfig
  37. }
  38. ffbuild_unconfigure() {
  39. echo --disable-fontconfig
  40. }