forked from UMCUGenetics/guix-additions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanta-use-system-samtools.patch
48 lines (43 loc) · 1.79 KB
/
manta-use-system-samtools.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
This patch originates from Debian:
https://anonscm.debian.org/cgit/debian-med/manta.git/tree/debian/patches/use_debian_packaged_samtools.patch
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 15 Nov 2016 14:29:08 +0100
Description: Check for Debian packaged samtools
--- a/redist/CMakeLists.txt
+++ b/redist/CMakeLists.txt
@@ -63,34 +63,11 @@ superset(HTSLIB_LIBRARY "${CMAKE_INSTALL
#
# samtools
#
-set(SAMTOOLS_PREFIX "samtools-1.2")
-set(SAMTOOLS_DIR "${CMAKE_CURRENT_BINARY_DIR}/${SAMTOOLS_PREFIX}")
-set(SAMTOOLS_LIBRARY "${SAMTOOLS_DIR}/libbam.a")
+set(SAMTOOLS_DIR "/usr/bin")
superset(SAMTOOLS_PROG "${SAMTOOLS_DIR}/samtools")
-# final directory copy below would ideally be a soft-link, copy is for windows build
-add_custom_command(
- OUTPUT ${SAMTOOLS_DIR}
- COMMAND ${CMAKE_COMMAND} -E remove_directory "${SAMTOOLS_DIR}"
- COMMAND ${CMAKE_COMMAND} -E tar xjf "${THIS_REDIST_DIR}/${SAMTOOLS_PREFIX}.tar.bz2"
- COMMAND ${CMAKE_COMMAND} -E copy_directory "${HTSLIB_DIR}" "${SAMTOOLS_DIR}/${HTSLIB_PREFIX}"
- DEPENDS ${HTSLIB_FINAL_TASK}
- COMMENT "Unpacking samtools package")
-
-set (SAMTOOLS_FINAL_TASK ${SAMTOOLS_DIR})
+# set (SAMTOOLS_FINAL_TASK ${SAMTOOLS_DIR})
-if (NOT WIN32)
- add_custom_command(
- OUTPUT ${SAMTOOLS_PROG}
- COMMAND $(MAKE) HTSDIR=${HTSLIB_PREFIX} all 2>| samtools.build.log
- DEPENDS ${HTSLIB_LIBRARY}
- DEPENDS ${SAMTOOLS_DIR}
- WORKING_DIRECTORY ${SAMTOOLS_DIR}
- COMMENT "Building samtools package")
-
- set (SAMTOOLS_FINAL_TASK ${SAMTOOLS_PROG})
-endif ()
-
-set(THIS_SAMTOOLS "${THIS_PROJECT_NAME}_samtools")
-add_custom_target(${THIS_SAMTOOLS} DEPENDS "${SAMTOOLS_FINAL_TASK}")
+# set(THIS_SAMTOOLS "${THIS_PROJECT_NAME}_samtools")
+# add_custom_target(${THIS_SAMTOOLS} DEPENDS "${SAMTOOLS_FINAL_TASK}")