Package: libseqlib / 1.1.2+dfsg-3

pkg-config.patch Patch series | download
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
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 27 Jan 2017 13:18:48 +0100
Description: Add pkg-config file

--- /dev/null
+++ b/libseqlib.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include/SeqLib
+
+Name: libseqlib
+Version: @VERSION@
+Description: C++ htslib/bwa-mem/fermi interface for interrogating sequence data
+Libs: -L${libdir} -lseqlib -lfml -lbwa -lssw -lz
+Cflags: -I${includedir}
+
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,3 +6,7 @@ install:
 
 seqtools:
 	mkdir -p bin && cd src/seqtools && make && mv seqtools ../../bin
+
+pkgconfigdir=$(libdir)/pkgconfig
+pkgconfig_DATA = libseqlib.pc
+
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,8 @@ AC_SUBST(LIBS, "$LIBS -pthread")
 
 AC_CONFIG_FILES([Makefile
 	         src/Makefile
-	         src/seqtools/Makefile])	
+	         src/seqtools/Makefile
+                 libseqlib.pc
+                ])	
 
 AC_OUTPUT