Browse Source

add subproject fallbacks for pcre,pcre2,sdl2,xxhash

Use RtAudio wrap from meson wrap db instead of custom repository.
polyline2d
parent
commit
3828850510
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 30
      meson.build
  2. 12
      subprojects/pcre.wrap
  3. 15
      subprojects/pcre2.wrap
  4. 12
      subprojects/rtaudio.wrap
  5. 12
      subprojects/sdl2.wrap
  6. 12
      subprojects/xxhash.wrap

30
meson.build

@ -1154,26 +1154,21 @@ endif @@ -1154,26 +1154,21 @@ endif
rtaudio_dep = dependency (
'rtaudio', required: get_option ('rtaudio'),
version: '>=5.1.0',
fallback: ['rtaudio', 'zrythm_rtaudio_dep'],
static: all_static)
fallback: ['rtaudio', 'rtaudio_dep'])
if rtaudio_dep.found ()
cdata.set('HAVE_RTAUDIO', 1)
endif
sdl_dep = dependency (
'sdl2', required: get_option ('sdl'),
static: all_static)
fallback: ['sdl2', 'sdl2_dep'])
if sdl_dep.found ()
cdata.set('HAVE_SDL', 1)
endif
zstd_dep = dependency (
'libzstd', required: false,
static: all_static)
if not zstd_dep.found ()
zstd_dep = cc.find_library (
'zstd', static: all_static)
endif
'libzstd',
fallback: ['zstd', 'libzstd_dep'])
reproc_dep = dependency (
'reproc', version: '>=14.1.0', required: false,
@ -1210,10 +1205,8 @@ endif @@ -1210,10 +1205,8 @@ endif
cdata.set ('HAVE_LIBBACKTRACE', 1)
xxhash_dep = dependency (
'libxxhash', required: false)
if not xxhash_dep.found ()
xxhash_dep = cc.find_library ('xxhash')
endif
'libxxhash',
fallback: ['xxhash', 'xxhash_dep'])
vamp_static = get_option ('vamp_static')
vamp_dep = dependency ('vamp', static: vamp_static)
@ -1221,6 +1214,13 @@ vamp_host_sdk_dep = dependency ( @@ -1221,6 +1214,13 @@ vamp_host_sdk_dep = dependency (
'vamp-hostsdk', static: vamp_static)
vamp_deps = [ vamp_dep, vamp_host_sdk_dep ]
pcre_dep = dependency (
'libpcre',
fallback: ['pcre', 'pcre_dep'])
pcre2_dep = dependency (
'libpcre2-8',
fallback: ['pcre2', 'libpcre2_8'])
# TODO add Cantarell font as dependency
zrythm_deps = [
@ -1251,9 +1251,9 @@ zrythm_deps = [ @@ -1251,9 +1251,9 @@ zrythm_deps = [
sord_dep,
sratom_dep,
lilv_dep,
pcre_dep,
pcre2_dep,
dependency ('rubberband'),
dependency ('libpcre'),
dependency ('libpcre2-8'),
dependency ('epoxy'),
cc.find_library ('dl', static: all_static),
chromaprint_dep,

12
subprojects/pcre.wrap

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
[wrap-file]
directory = pcre-8.37
source_url = https://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.bz2
source_filename = pcre-8.37.tar.bz2
source_hash = 51679ea8006ce31379fb0860e46dd86665d864b5020fc9cd19e71260eef4789d
patch_filename = pcre_8.37-3_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/pcre_8.37-3/get_patch
patch_hash = a6c6f1bf1c0c4f30b9d79dd6eba1b375c77931a57af69b4a22325a88ebbbb1ff
[provide]
libpcre = pcre_dep

15
subprojects/pcre2.wrap

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
[wrap-file]
directory = pcre2-10.39
source_url = https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.tar.bz2
source_filename = pcre2-10.39.tar.bz2
source_hash = 0f03caf57f81d9ff362ac28cd389c055ec2bf0678d277349a1a4bee00ad6d440
patch_filename = pcre2_10.39-1_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/pcre2_10.39-1/get_patch
patch_hash = 277aeb6109a61f8266d106d8e6a61e556ba012b2dde0f52c844cfbe022334f1b
[provide]
libpcre2-8 = -libpcre2_8
libpcre2-16 = -libpcre2_16
libpcre2-32 = -libpcre2_32
libpcre2-posix = -libpcre2_posix

12
subprojects/rtaudio.wrap

@ -1,3 +1,9 @@ @@ -1,3 +1,9 @@
[wrap-git]
url = https://git.sr.ht/~alextee/zrythm-rtaudio
revision = 16ea17d20e6cb6de57e88e80579d258f547b5e88
[wrap-file]
directory = rtaudio-5.2.0
source_url = https://github.com/thestk/rtaudio/archive/refs/tags/5.2.0.tar.gz
source_filename = 5.2.0.tar.gz
source_hash = a8d9c738addffd485c3f0bab14cbba72600267e3113f274398c67829bbb49332
[provide]
dependency_names = rtaudio

12
subprojects/sdl2.wrap

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
[wrap-file]
directory = SDL2-2.0.12
source_url = https://www.libsdl.org/release/SDL2-2.0.12.tar.gz
source_filename = SDL2-2.0.12.tar.gz
source_hash = 349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863
patch_filename = sdl2_2.0.12-3_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/sdl2_2.0.12-3/get_patch
patch_hash = a5fb7c34694e6765da5c86a76119559df8d6891d9ce1d9fc800158c5161ff52b
[provide]
sdl2 = sdl2_dep

12
subprojects/xxhash.wrap

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
[wrap-file]
directory = xxHash-0.8.0
source_url = https://github.com/Cyan4973/xxHash/archive/v0.8.0.tar.gz
source_filename = xxHash-0.8.0.tar.gz
source_hash = 7054c3ebd169c97b64a92d7b994ab63c70dd53a06974f1f630ab782c28db0f4f
patch_filename = xxhash_0.8.0-2_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/xxhash_0.8.0-2/get_patch
patch_hash = 793101300da5d24b7341e6b9e9e39e57e73cf1858aba6fef86adb54a7e9d58c8
[provide]
libxxhash = xxhash_dep
Loading…
Cancel
Save