25-libxml2.sh 716 B

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