45-harfbuzz.sh 993 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/harfbuzz/harfbuzz.git"
  3. SCRIPT_COMMIT="5e32b5ca8fe430132b87c0eee6a1c056d37c35eb"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. mkdir build && cd build
  9. local myconf=(
  10. --cross-file=/cross.meson
  11. --prefix="$FFBUILD_PREFIX"
  12. --buildtype=release
  13. --default-library=static
  14. -Dfreetype=enabled
  15. -Dglib=disabled
  16. -Dgobject=disabled
  17. -Dcairo=disabled
  18. -Dchafa=disabled
  19. -Dtests=disabled
  20. -Dintrospection=disabled
  21. -Ddocs=disabled
  22. -Ddoc_tests=false
  23. -Dutilities=disabled
  24. )
  25. if [[ $TARGET == win* ]]; then
  26. myconf+=(
  27. -Dgdi=enabled
  28. )
  29. fi
  30. meson setup "${myconf[@]}" ..
  31. ninja -j"$(nproc)"
  32. ninja install
  33. echo "Libs.private: -lpthread" >> "$FFBUILD_PREFIX"/lib/pkgconfig/harfbuzz.pc
  34. }
  35. ffbuild_configure() {
  36. (( $(ffbuild_ffver) > 600 )) || return 0
  37. echo --enable-libharfbuzz
  38. }