From 80fe1806941d555433f3a1c97ab116dd281041e0 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 17 Feb 2011 22:24:16 +0100 Subject: Add a proper pkg-config file. --- module/Makefile.am | 10 +++++----- module/p11-kit.pc.in | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 module/p11-kit.pc.in (limited to 'module') diff --git a/module/Makefile.am b/module/Makefile.am index 6103485..23589d2 100644 --- a/module/Makefile.am +++ b/module/Makefile.am @@ -1,8 +1,4 @@ -INCLUDES = \ - -DPKCS11_CONFIG_FILE=\"$(sysconfdir)/pkcs11.conf\" \ - -DPKCS11_CONFIG_LIBS=\"$(sysconfdir)/pkcs11/libs\" - MODULE_SRCS = \ conf.c conf.h \ hash.c hash.h \ @@ -26,5 +22,9 @@ libp11_kit_testable_la_LDFLAGS = \ libp11_kit_testable_la_SOURCES = $(MODULE_SRCS) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = p11-kit.pc + EXTRA_DIST = \ - pkcs11.h \ No newline at end of file + pkcs11.h \ + p11-kit.pc.in \ No newline at end of file diff --git a/module/p11-kit.pc.in b/module/p11-kit.pc.in new file mode 100644 index 0000000..d80167e --- /dev/null +++ b/module/p11-kit.pc.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +datarootdir=@datarootdir@ +datadir=@datadir@ +sysconfdir=@sysconfdir@ +p11_system_conf=@p11_system_conf@ +p11_system_modules=@p11_system_modules@ +p11_user_conf=@p11_user_conf@ +p11_user_modules=@p11_user_modules@ + +Name: p11-kit +Description: Library and proxy module for properly loading and sharing PKCS#11 modules. +Version: @VERSION@ +Libs: -L${libdir} -lp11-kit +Cflags: -I${includedir}/p11-kit -- cgit v1.2.3