1 This patch is original to Guix, ongoing work to upstream bits as possible.
3 From 9acc56db5e7469f5976be38b52ba4993de98ee38 Mon Sep 17 00:00:00 2001
4 From: Efraim Flashner <efraim@flashner.co.il>
5 Date: Sun, 17 Jan 2021 13:27:17 +0200
6 Subject: [PATCH] devendor-dependants
9 meson.build | 84 +++++++++++++++++++++++++++++++++++++++++------------
10 1 file changed, 66 insertions(+), 18 deletions(-)
12 diff --git a/meson.build b/meson.build
13 index f6bf242..bded4af 100644
16 @@ -9,8 +9,13 @@ project('freebayes', ['cpp', 'c'],
18 zlib_dep = dependency('zlib')
19 lzma_dep = dependency('liblzma')
20 +simde_dep = dependency('simde')
21 bzip2_dep = dependency('bz2lib', required: false)
22 htslib_dep = dependency('htslib', required : false)
23 +tabixpp_dep = dependency('tabixpp', required : false)
24 +fastahack_dep = dependency('fastahack', required : false)
25 +smithwaterman_dep = dependency('smithwaterman', required : false)
26 +vcflib_dep = dependency('vcflib', required: false)
27 thread_dep = dependency('threads')
30 @@ -59,6 +64,56 @@ else
34 +if tabixpp_dep.found()
35 + tabixpp_includes = ''
38 + tabixpp_includes = [
42 + 'vcflib/tabixpp/tabix.cpp',
46 +if vcflib_dep.found()
47 + vcflib_includes = ''
52 + 'vcflib/multichoose',
53 + 'vcflib/filevercmp',
56 + 'vcflib/src/Variant.cpp',
60 +if fastahack_dep.found()
64 + 'vcflib/fastahack/Fasta.cpp',
65 + 'vcflib/src/split.cpp',
69 +if smithwaterman_dep.found()
70 + smithwaterman_includes = ''
71 + smithwaterman_src = []
73 + smithwaterman_includes = [
74 + 'vcflib/smithwaterman',
76 + smithwaterman_src = [
77 + 'vcflib/smithwaterman/SmithWatermanGotoh.cpp',
78 + 'vcflib/smithwaterman/disorder.cpp',
79 + 'vcflib/smithwaterman/Repeats.cpp',
80 + 'vcflib/smithwaterman/LeftAlign.cpp',
81 + 'vcflib/smithwaterman/IndelAllele.cpp',
87 @@ -105,23 +160,18 @@ seqlib_src = [
91 - 'vcflib/tabixpp/tabix.cpp',
92 - 'vcflib/src/Variant.cpp',
93 - 'vcflib/smithwaterman/SmithWatermanGotoh.cpp',
94 - 'vcflib/smithwaterman/disorder.cpp',
95 - 'vcflib/smithwaterman/Repeats.cpp',
96 - 'vcflib/smithwaterman/LeftAlign.cpp',
97 - 'vcflib/smithwaterman/IndelAllele.cpp',
104 'src/bamleftalign.cpp',
105 'src/IndelAllele.cpp',
106 'contrib/SeqLib/src/BamWriter.cpp',
107 - 'vcflib/fastahack/Fasta.cpp',
108 - 'vcflib/smithwaterman/LeftAlign.cpp',
109 - 'vcflib/smithwaterman/IndelAllele.cpp',
110 - 'vcflib/src/split.cpp',
117 @@ -134,11 +184,9 @@ incdir = include_directories(
123 - 'vcflib/smithwaterman',
124 - 'vcflib/multichoose',
125 - 'vcflib/filevercmp')
127 + smithwaterman_includes,
130 c_args = ['-fpermissive','-w']
131 cpp_args = ['-fpermissive','-w','-Wc++14-compat']
132 @@ -152,7 +200,7 @@ executable('freebayes',
133 include_directories : incdir,
136 - dependencies: [zlib_dep, lzma_dep, htslib_dep, thread_dep],
137 + dependencies: [zlib_dep, lzma_dep, simde_dep, htslib_dep, tabixpp_dep, smithwaterman_dep, vcflib_dep, thread_dep],
141 @@ -165,7 +213,7 @@ executable('bamleftalign',
142 include_directories : incdir,
145 - dependencies: [zlib_dep, lzma_dep, htslib_dep, thread_dep],
146 + dependencies: [zlib_dep, lzma_dep, simde_dep, htslib_dep, tabixpp_dep, fastahack_dep, smithwaterman_dep, vcflib_dep, thread_dep],