File: dynamic_lib.patch

package info (click to toggle)
libseqlib 1.2.0%2Bdfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,304 kB
  • sloc: cpp: 7,376; makefile: 63; sh: 5
file content (47 lines) | stat: -rw-r--r-- 1,558 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
37
38
39
40
41
42
43
44
45
46
47
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 27 Jan 2017 13:18:48 +0100
Description: Create dynamic library
Forwarded: not-needed

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,8 @@
-noinst_LIBRARIES = libseqlib.a
+lib_LTLIBRARIES  = libseqlib.la
 
-libseqlib_a_CPPFLAGS =  -I/usr/include/fml -Wno-sign-compare
+libseqlib_la_CPPFLAGS = -I/usr/include -I/usr/include/htslib -I/usr/include/fml -Wno-sign-compare
 
-libseqlib_a_SOURCES =   FastqReader.cpp BFC.cpp ReadFilter.cpp SeqPlot.cpp ssw_cpp.cpp ssw.c \
+libseqlib_la_SOURCES =   FastqReader.cpp BFC.cpp ReadFilter.cpp SeqPlot.cpp ssw_cpp.cpp ssw.c \
 			GenomicRegion.cpp RefGenome.cpp BamWriter.cpp BamReader.cpp \
 			BWAWrapper.cpp BamRecord.cpp FermiAssembler.cpp BamHeader.cpp jsoncpp.cpp
+libseqlib_la_LDFLAGS = -version-info @LIB_VERSION@ -lfml `@PKG_CONFIG@ --libs htslib`
--- a/configure.ac
+++ b/configure.ac
@@ -7,10 +7,16 @@ AC_CONFIG_HEADER([config.h])
 AM_MAINTAINER_MODE([disable])
 ##m4_include([m4/m4_ax_openmp.m4])
 
+LIB_VERSION=2:0
+
+AC_SUBST([VERSION])
+AC_SUBST([LIB_VERSION])
+
 # Checks for programs.
 AC_PROG_CXX ## test for cpp compiler
 AC_PROG_CC ## test for C compiler
 AC_PROG_RANLIB ## required if libraries are built in package
+AC_PROG_LIBTOOL
 
 # Check for headers
 AC_LANG([C++])
@@ -32,6 +38,8 @@ if test "$enable_development"; then
     fail_on_warning="-Werror"
 fi
 
+PKG_CHECK_MODULES([hts], [htslib])
+
 # Set compiler flags.
 AC_SUBST(AM_CXXFLAGS, "-g $fail_on_warning -std=c++11 -Wno-unknown-pragmas")
 AC_SUBST(CXXFLAGS, "$CXXFLAGS")