pkg-config

ace jones <[email protected]> Mon, 26 Sep 2005 21:46:19 -0700
Newsgroups gmane.comp.finance.libofx.devel
Message-ID <[email protected]>
Hi, I would like to add a pkg-config file to libofx.  This will help
manage which version of the library I depend on.  It's a pretty simple,
low-impact fix.  Just generates and installs a libofx.pc file.  I'll
attach a patch and the libofx.pc.in file for review/comment.

I also want to bump the CVS version number to 0.8.1.  This way I can
require 0.8.1, and the requirement will be satisfied if the user has CVS
-or- if 0.8.1 happens to get released, and the users gets that.  All
without any additional change on my part.

Thoughts?

</Ace>
libofx.pc.in (text/plain, 333 B)
# libofx pkg-config source file

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libofx
Description: libofx is a library for processing Open Financial eXchange (OFX) data
Version: @VERSION@
Requires:
Conflicts:
Libs: -L${libdir} @OPENSPLIBS@ -lofx
Cflags: -I${includedir} -I@OPENSPINCLUDES@
pkgconfig.patch (text/x-patch, 1.1 KB)
Index: Makefile.am
===================================================================
RCS file: /cvsroot/libofx/libofx/Makefile.am,v
retrieving revision 1.10
diff -u -r1.10 Makefile.am
--- Makefile.am	31 Jul 2005 19:48:50 -0000	1.10
+++ Makefile.am	27 Sep 2005 04:42:09 -0000
@@ -14,9 +14,13 @@
 EXTRA_DIST = \
   libofx.spec.in \
   libofx.spec \
+  libofx.pc \
   totest.txt \
   libofx.lsm
 
+pkgconfigdir=$(libdir)/pkgconfig
+pkgconfig_DATA=libofx.pc
+
 .PHONY: doc
 doc:
 	$(MAKE) -C doc doc
Index: configure.in
===================================================================
RCS file: /cvsroot/libofx/libofx/configure.in,v
retrieving revision 1.23
diff -u -r1.23 configure.in
--- configure.in	31 Jul 2005 19:48:50 -0000	1.23
+++ configure.in	27 Sep 2005 04:42:10 -0000
@@ -17,7 +17,7 @@
 
 LIBOFX_MAJOR_VERSION=0
 LIBOFX_MINOR_VERSION=8
-LIBOFX_MICRO_VERSION=0
+LIBOFX_MICRO_VERSION=1
 LIBOFX_VERSION=$LIBOFX_MAJOR_VERSION.$LIBOFX_MINOR_VERSION.$LIBOFX_MICRO_VERSION
 
 AC_SUBST(LIBOFX_MAJOR_VERSION)
@@ -296,6 +296,7 @@
 			
 AC_OUTPUT( 		Makefile 
 	   		libofx.spec
+			libofx.pc
 			lib/Makefile
 			inc/Makefile
 			dtd/Makefile