25-freetype.sh 698 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. SCRIPT_REPO="https://gitlab.freedesktop.org/freetype/freetype.git"
  3. SCRIPT_COMMIT="5d4e649f740c675426fbe4cdaffc53ee2a4cb954"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. ./autogen.sh
  9. local myconf=(
  10. --prefix="$FFBUILD_PREFIX"
  11. --disable-shared
  12. --enable-static
  13. )
  14. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  15. myconf+=(
  16. --host="$FFBUILD_TOOLCHAIN"
  17. )
  18. else
  19. echo "Unknown target"
  20. return -1
  21. fi
  22. ./configure "${myconf[@]}"
  23. make -j$(nproc)
  24. make install
  25. }
  26. ffbuild_configure() {
  27. echo --enable-libfreetype
  28. }
  29. ffbuild_unconfigure() {
  30. echo --disable-libfreetype
  31. }