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.

154 lines
4.4KB

  1. #!/bin/bash
  2. # ---------------------------------------------------------------------------------------------------------------------
  3. # common URLs
  4. DROBILLA_URL=https://download.drobilla.net/
  5. XIPH_URL=https://downloads.xiph.org/releases
  6. # ---------------------------------------------------------------------------------------------------------------------
  7. # bootstrap base
  8. PKG_CONFIG_URL=https://pkg-config.freedesktop.org/releases
  9. PKG_CONFIG_VERSION=0.28
  10. # ---------------------------------------------------------------------------------------------------------------------
  11. # bootstrap common
  12. LIBOGG_URL=${XIPH_URL}/ogg
  13. LIBOGG_VERSION=1.3.5
  14. LIBVORBIS_URL=${XIPH_URL}/vorbis
  15. LIBVORBIS_VERSION=1.3.7
  16. FLAC_URL=${XIPH_URL}/flac
  17. FLAC_VERSION=1.3.3
  18. OPUS_URL=https://archive.mozilla.org/pub/opus
  19. OPUS_VERSION=1.3.1
  20. LIBSNDFILE_URL=https://github.com/libsndfile/libsndfile/releases/download/1.0.31
  21. LIBSNDFILE_VERSION=1.0.31
  22. LIBSAMPLERATE_URL=http://www.mega-nerd.com/SRC
  23. LIBSAMPLERATE_VERSION=0.1.9
  24. ZLIB_URL=https://github.com/madler/zlib.git
  25. ZLIB_VERSION=cacf7f1d4e3d44d871b605da3b647f07d718623f # 1.2.11
  26. # ---------------------------------------------------------------------------------------------------------------------
  27. # bootstrap plugins
  28. FFTW_URL=http://www.fftw.org
  29. FFTW_VERSION=3.3.10
  30. GLIB_URL=http://download.gnome.org/sources/glib/2.22
  31. GLIB_MVERSION=2.22
  32. GLIB_VERSION=2.22.5
  33. LIBLO_URL=http://download.sourceforge.net/liblo
  34. LIBLO_VERSION=0.31
  35. PCRE_URL=https://ftp.pcre.org/pub/pcre
  36. PCRE_VERSION=8.44
  37. LV2_URL=https://gitlab.com/lv2/lv2.git
  38. LV2_VERSION=6cefc7df1a6158c79d23029df183c09b10b88cad
  39. SERD_URL=${DROBILLA_URL}
  40. SERD_VERSION=0.30.8
  41. SORD_URL=${DROBILLA_URL}
  42. SORD_VERSION=0.16.8
  43. SRATOM_URL=${DROBILLA_URL}
  44. SRATOM_VERSION=0.6.8
  45. LILV_URL=${DROBILLA_URL}
  46. LILV_VERSION=0.24.12
  47. LV2LINT_URL=https://gitlab.com/OpenMusicKontrollers/lv2lint/-/archive/0.14.0
  48. LV2LINT_VERSION=0.14.0
  49. KXSTUDIO_LV2_EXTENSIONS_URL=https://github.com/KXStudio/LV2-Extensions.git
  50. KXSTUDIO_LV2_EXTENSIONS_VERSION=4f6802f9f0ac9f5e2a909e4ab2cfbf71648a1b1d
  51. MOD_SDK_URL=https://github.com/moddevices/mod-sdk.git
  52. MOD_SDK_VERSION=21a80729dde1439dcea03bfafbc42981fb503d8a
  53. FLUIDSYNTH_URL=https://github.com/FluidSynth/fluidsynth.git
  54. FLUIDSYNTH_VERSION=f65c6ba25fb2c7e37c89fc6a4afc5aa645e208c2 # 1.1.11
  55. MXML_URL=https://github.com/michaelrsweet/mxml.git
  56. MXML_VERSION=38b044ed8ca2a611ed9ed3e26c4b46416335194e # 3.2
  57. CARLA_URL=https://github.com/falkTX/Carla.git
  58. CARLA_VERSION=613e6950581ad0cb3c037fac7f0db89633e099e6
  59. # ---------------------------------------------------------------------------------------------------------------------
  60. # check if lv2lint is supported
  61. LV2LINT_SUPPORTED=1
  62. if [ "${CROSS_COMPILING}" -eq 1 ]; then
  63. LV2LINT_SUPPORTED=0
  64. fi
  65. if [ "${MACOS}" -eq 1 ] && [ "$(uname -r)" = "12.6.0" ]; then
  66. LV2LINT_SUPPORTED=0
  67. fi
  68. # ---------------------------------------------------------------------------------------------------------------------
  69. # bootstrap qt stuff
  70. if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then
  71. QT5_VERSION=5.12.11
  72. QT5_MVERSION=5.12
  73. else
  74. QT5_VERSION=5.9.8
  75. QT5_MVERSION=5.9
  76. fi
  77. # ---------------------------------------------------------------------------------------------------------------------
  78. # bootstrap carla
  79. FILE_VERSION=5.34
  80. LIBFFI_VERSION=3.3
  81. if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then
  82. CXFREEZE_VERSION=e1c33afea842bc61dac82145a8a0be5fbd318a92 # 6.4.2
  83. PYTHON_VERSION=3.9.5
  84. PYLIBLO_VERSION=0.10.0
  85. PYQT5_VERSION=5.13.1
  86. SIP_VERSION=4.19.19
  87. # extra, needed for pyliblo
  88. CYTHON_VERSION=0.29.21
  89. # extra, needed for cxfreeze
  90. IMPORTLIB_METADATA_VERSION=3.1.1
  91. SETUPTOOLS_SCM_VERSION=5.0.0
  92. TOML_VERSION=0.10.2
  93. ZIPP_VERSION=3.4.0
  94. elif [ "${WIN32}" -eq 1 ]; then
  95. CXFREEZE_VERSION=6c1d6f23f401d40368d4fab5cd710a784b114a12 # 6.1
  96. PYTHON_VERSION=3.8.7
  97. PYLIBLO_VERSION=0.9.2
  98. PYQT5_VERSION=5.13.1
  99. SIP_VERSION=4.19.19
  100. else
  101. CXFREEZE_VERSION=6c1d6f23f401d40368d4fab5cd710a784b114a12 # 6.1
  102. PYTHON_VERSION=3.7.4
  103. PYLIBLO_VERSION=0.9.2
  104. PYQT5_VERSION=5.9.2
  105. SIP_VERSION=4.19.13
  106. fi
  107. # ---------------------------------------------------------------------------------------------------------------------
  108. # bootstrap jack
  109. AFTEN_VERSION=0.0.8
  110. DB_VERSION=5.3.28
  111. PORTAUDIO_VERSION=19.6.0
  112. RTAUDIO_VERSION=e03448bd15c1c34e842459939d755f5f89e880ed
  113. TRE_VERSION=6092368aabdd0dbb0fbceb2766a37b98e0ff6911
  114. # ---------------------------------------------------------------------------------------------------------------------