From f4ab86974ecafc3e8637710d9fb4922fcb05d76d Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 10 Feb 2013 21:05:54 +0100 Subject: Add pkg-config support --- Makefile.am | 3 ++- configure.ac | 1 + libvformat-1.0.pc.in | 12 ++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 libvformat-1.0.pc.in diff --git a/Makefile.am b/Makefile.am index 21ad378..e5a2721 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,4 @@ SUBDIRS = src vformat test $(DOC_SUB) - +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libvformat-1.0.pc \ No newline at end of file diff --git a/configure.ac b/configure.ac index e7eb13e..06cbed4 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,7 @@ src/Makefile vformat/Makefile test/Makefile doc/Makefile +libvformat-1.0.pc ]) echo " diff --git a/libvformat-1.0.pc.in b/libvformat-1.0.pc.in new file mode 100644 index 0000000..60a4db9 --- /dev/null +++ b/libvformat-1.0.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libvformat +Description: A small, portable library for accessing vformat objects eg VCARD. +Version: @VERSION@ +Requires: +Libs: -L${libdir} -llibvformat +Cflags: -I${includedir} + -- cgit v1.1-32-gdbae