[med-svn] [biosquid] 04/04: Add pkg-config support

Andreas Tille tille at debian.org
Wed Apr 5 10:57:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository biosquid.

commit d92b0ee191ad47bc1282839a05d66357b4e00da4
Author: Andreas Tille <tille at debian.org>
Date:   Wed Apr 5 12:44:41 2017 +0200

    Add pkg-config support
---
 debian/patches/pkg-config.patch | 47 +++++++++++++++++++++++++++++++++++++++++
 debian/patches/series           |  1 +
 debian/rules                    |  1 +
 3 files changed, 49 insertions(+)

diff --git a/debian/patches/pkg-config.patch b/debian/patches/pkg-config.patch
new file mode 100644
index 0000000..805e69c
--- /dev/null
+++ b/debian/patches/pkg-config.patch
@@ -0,0 +1,47 @@
+Description: Provide pkg-config input file
+Author: Andreas Tille <tille at 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
+@@ -74,6 +74,9 @@ bin_PROGRAMS =	afetch\
+ 
+ LDADD = -lsquid -lm
+ 
++pkgconfigdir=$(libdir)/pkgconfig
++pkgconfig_DATA = libsquid.pc
++
+ bin_MANS =  afetch\
+ 	alistat\
+ 	compstruct\
diff --git a/debian/patches/series b/debian/patches/series
index 680cb33..f032cfd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@ getopt-segmentation-fault.patch
 reproducible.patch
 perl-testsuite-inc.patch
 automake.patch
+pkg-config.patch
diff --git a/debian/rules b/debian/rules
index 4a867bf..d482630 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,6 +32,7 @@ override_dh_install:
 		    --movedev debian/tmp/usr/include/* usr/include \
 		    --movedev squid.h usr/include/$(DEBPKGNAME) \
 		    --movedev squidconf.h usr/include/$(DEBPKGNAME) \
+		    --movedev "debian/tmp/usr/lib/*/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
 		    debian/tmp/usr/lib/*/$(LIBNAME).so
 
 #		    --movedev "debian/tmp/usr/lib/*/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/biosquid.git



More information about the debian-med-commit mailing list