From: Guus Sliepen Date: Mon, 28 Dec 2009 21:42:17 +0000 (+0100) Subject: Install a pkg-config file. X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=d5341a49b2aeb87cee3cdd3dc7dccc7b9154788e;p=fides Install a pkg-config file. --- diff --git a/configure.ac b/configure.ac index 415538b..3135d47 100644 --- a/configure.ac +++ b/configure.ac @@ -13,9 +13,10 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_LIBTOOL +PKG_PROG_PKG_CONFIG PKG_CHECK_MODULES(BOTAN, botan-1.8 >= 1.8.0) AC_SUBST(BOTAN_CFLAGS) AC_SUBST(BOTAN_LIBS) -AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile]) +AC_CONFIG_FILES([Makefile lib/Makefile lib/fides.pc src/Makefile]) AC_OUTPUT diff --git a/lib/Makefile.am b/lib/Makefile.am index 127f866..c81d37b 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -2,3 +2,8 @@ lib_LTLIBRARIES = libfides.la libfides_la_SOURCES = fides.cc certificate.cc publickey.cc privatekey.cc utility.cc include_HEADERS = fides.h certificate.h publickey.h privatekey.h utility.h libfides_la_LIBADD = $(BOTAN_LIBS) + +EXTRA_DIST = fides.pc.in +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = fides.pc + diff --git a/lib/fides.pc.in b/lib/fides.pc.in new file mode 100644 index 0000000..8312db1 --- /dev/null +++ b/lib/fides.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: fides +Description: A lightweight cryptographic authorisation framework +URL: http://www.tinc-vpn.org/ +Requires: botan-1.8 +Version: @VERSION@ +Libs: -L${libdir} -lfides +Cflags: -I${includedir}