File: pkg-config.patch

package info (click to toggle)
biosquid 1.9g%2Bcvs20050121-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,624 kB
  • sloc: ansic: 12,750; sh: 1,412; perl: 243; makefile: 233
file content (49 lines) | stat: -rw-r--r-- 1,051 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
48
49
Description: Provide pkg-config input file
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 23 Mar 2017 21:55:15 +0100

--- /dev/null
+++ b/libsquid.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/biosquid
+
+Name: libsquid
+Version: @VERSION@
+Description: utilities for biological sequence analysis
+Libs: -L${libdir} -lsquid
+Cflags: -I${includedir}
--- a/configure.ac
+++ b/configure.ac
@@ -296,9 +296,12 @@ AC_SUBST(PVMINCDIR)
 AC_SUBST(PVMLIBS)
 
 # Write out Makefiles, and squid.h also has some output variable substitution.
-AC_CONFIG_FILES(Makefile)
-AC_CONFIG_FILES(Testsuite/Makefile)
-AC_CONFIG_FILES(squid.h)
+AC_CONFIG_FILES([
+	Makefile
+        Testsuite/Makefile
+        squid.h
+	libsquid.pc
+	])
 
 AC_OUTPUT
 
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,7 +72,10 @@ bin_PROGRAMS =	afetch\
 	translate\
 	weight
 
-LDADD = -lsquid -lm
+LDADD = libsquid.la -lm
+
+pkgconfigdir=$(libdir)/pkgconfig
+pkgconfig_DATA = libsquid.pc
 
 bin_MANS =  afetch\
 	alistat\