10-xtrans.sh 697 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxtrans.git"
  3. SCRIPT_COMMIT="c8c291390f4befb7d813d7fce6caeb6607561903"
  4. ffbuild_enabled() {
  5. [[ $TARGET != linux* ]] && return -1
  6. return 0
  7. }
  8. ffbuild_dockerbuild() {
  9. autoreconf -i
  10. local myconf=(
  11. --prefix="$FFBUILD_PREFIX"
  12. --without-xmlto
  13. --without-fop
  14. --without-xsltproc
  15. )
  16. if [[ $TARGET == linux* ]]; then
  17. myconf+=(
  18. --host="$FFBUILD_TOOLCHAIN"
  19. )
  20. else
  21. echo "Unknown target"
  22. return -1
  23. fi
  24. ./configure "${myconf[@]}"
  25. make -j$(nproc)
  26. make install
  27. cp -r "$FFBUILD_PREFIX"/share/aclocal/. /usr/share/aclocal
  28. }