summary history branches tags files
commit:defe79828074a793f270cc1301a2b7646f2dd3a2
author:mrmekon
committer:mrmekon
date:Sun Nov 13 18:13:24 2011 -0500
parents:1fbd9b302504296d918eaec3222f5475445a3e28
Added pkg-config script
diff --git a/Makefile.am b/Makefile.am
line changes: +3/-0
index 8b94d94..62aa259
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,9 @@
 pkglib_LTLIBRARIES = libsimplepgp.la
 pkginclude_HEADERS = src/simplepgp.h
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = simplepgp.pc
+
 libsimplepgp_la_LDFLAGS = -version-info 0:1:0
 libsimplepgp_la_SOURCES = \
 	src/packet.c \

diff --git a/configure.ac b/configure.ac
line changes: +1/-1
index ecdc723..6bd23d6
--- a/configure.ac
+++ b/configure.ac
@@ -8,7 +8,7 @@ AC_COPYRIGHT(Trevor Bentley 2011)
 
 AC_CONFIG_SRCDIR([src/packet.c])
 AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile simplepgp.pc])
 
 AM_INIT_AUTOMAKE([subdir-objects foreign])
 AC_PROG_LIBTOOL

diff --git a/simplepgp.pc.in b/simplepgp.pc.in
line changes: +13/-0
index 0000000..aba18b3
--- /dev/null
+++ b/simplepgp.pc.in
@@ -0,0 +1,13 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libsimplepgp
+Description: Simple implementation of OpenPGP
+Requires.private: zlib
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lsimplepgp
+Libs.private: `libgcrypt-config --libs` `gpg-error-config --libs`
+Cflags: -I${includedir}/simplepgp
+Cflags.private: `libgcrypt-config --cflags` `gpg-error-config --cflags`