10-xproto.sh 562 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/proto/xorgproto.git"
  3. SCRIPT_COMMIT="9d5e1d1dc150e0eb3a562020f2069fad7ec9b3a9"
  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. )
  13. if [[ $TARGET == linux* ]]; then
  14. myconf+=(
  15. --host="$FFBUILD_TOOLCHAIN"
  16. )
  17. else
  18. echo "Unknown target"
  19. return -1
  20. fi
  21. ./configure "${myconf[@]}"
  22. make -j$(nproc)
  23. make install
  24. }