Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4KB

  1. #!/bin/bash
  2. set -e
  3. cd $(dirname ${0})
  4. PAWPAW_ROOT="${PWD}"
  5. # ---------------------------------------------------------------------------------------------------------------------
  6. # check target
  7. target="${1}"
  8. if [ -z "${target}" ]; then
  9. echo "usage: ${0} <target>"
  10. exit 1
  11. fi
  12. # ---------------------------------------------------------------------------------------------------------------------
  13. # run bootstrap dependencies
  14. export PAWPAW_SKIP_SAMPLERATE=1
  15. ./bootstrap-common.sh "${target}"
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. # source setup code
  18. source setup/check_target.sh
  19. source setup/env.sh
  20. source setup/functions.sh
  21. source setup/versions.sh
  22. # ---------------------------------------------------------------------------------------------------------------------
  23. # file/magic (posix only)
  24. if [ "${WIN32}" -eq 0 ]; then
  25. download file "${FILE_VERSION}" "ftp://ftp.astron.com/pub/file"
  26. build_autoconf file "${FILE_VERSION}"
  27. fi
  28. # ---------------------------------------------------------------------------------------------------------------------
  29. # wine bootstrap for python (needed for cross-compilation)
  30. if [ "${WIN32}" -eq 1 ] && [ -n "${EXE_WRAPPER}" ] && [ ! -d "${WINEPREFIX}" ]; then
  31. wineboot -u
  32. fi
  33. # ---------------------------------------------------------------------------------------------------------------------