File: use_debian_packaged_libpcre.patch

package info (click to toggle)
phast 1.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,008 kB
  • sloc: ansic: 54,203; makefile: 361; sh: 348; perl: 321
file content (36 lines) | stat: -rw-r--r-- 1,265 bytes parent folder | download | duplicates (3)
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
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 27 May 2016 18:06:35 +0200
Description: Use Debian packaged libpcre

--- a/src/make-include.mk
+++ b/src/make-include.mk
@@ -57,7 +57,7 @@ else
 endif
 
 PHAST_VERSION=\"$(shell cat ${PHAST}/version)\"
-CFLAGS += -I${INC} -DPHAST_VERSION=${PHAST_VERSION} -DPHAST_HOME=\"${PHAST_HOME}\" -I${PHAST}/src/lib/pcre -fno-strict-aliasing
+CFLAGS += -I${INC} -DPHAST_VERSION=${PHAST_VERSION} -DPHAST_HOME=\"${PHAST_HOME}\" -fno-strict-aliasing
 LIBPATH = -L${LIB} 
 
 # uncomment these lines for profiling (add -g for line-by-line
@@ -138,8 +138,8 @@ else
 ifdef CLAPACKPATH
 ifneq ($(TARGETOS), Windows)
-  LIBS = -lphast -llapack -ltmglib -lblas -lc -lm
+  LIBS = -lphast -llapack -ltmglib -lblas -lc -lm -lpcre
 else
   CFLAGS += -I${CLAPACKPATH}/INCLUDE -I${F2CPATH} -DPCRE_STATIC
   LIBS = -lphast -lm  ${CLAPACKPATH}/liblapack.a ${CLAPACKPATH}/libf2c.a ${CLAPACKPATH}/libblas.a
 endif
 # IMPORTANT: use the following two lines instead for versions of CLAPACK
--- a/src/lib/Makefile
+++ b/src/lib/Makefile
@@ -3,7 +3,7 @@ PHAST := ${PHAST}/..
 
 CDIR = ${PWD}
 
-PACKAGES=base msa feature hmm phylo phylo_hmm motif pcre
+PACKAGES=base msa feature hmm phylo phylo_hmm motif
 
 ifdef RPHAST
 PACKAGES += rphast