From 24510eb3e9bf885c685afee61338badb84c7ce83 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sun, 11 Aug 2013 23:18:14 +0200 Subject: [PATCH] build: create and install a pkgconfig file This adds trivial changes to the autotools infrastructur and a template to generate and install a pkgconfig file libsodium.pc. --- Makefile.am | 3 +++ configure.ac | 1 + libsodium.pc.in | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 libsodium.pc.in diff --git a/Makefile.am b/Makefile.am index 8dc756da..ee7aabaf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,3 +9,6 @@ EXTRA_DIST = \ SUBDIRS = \ src \ test + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = @PACKAGE_NAME@.pc diff --git a/configure.ac b/configure.ac index 41d0678f..2222d9c3 100644 --- a/configure.ac +++ b/configure.ac @@ -362,6 +362,7 @@ AH_VERBATIM([NDEBUG], [/* Never ever ignore assertions */ #/**/undef/**/ NDEBUG #endif]) +AC_CONFIG_FILES([libsodium.pc]) AC_CONFIG_FILES([Makefile src/Makefile src/libsodium/Makefile diff --git a/libsodium.pc.in b/libsodium.pc.in new file mode 100644 index 00000000..c1d43725 --- /dev/null +++ b/libsodium.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Description: A portable, cross-compilable, installable, packageable fork of NaCl, with a compatible API. + +Libs: -L${libdir} -lsodium +Cflags: -I${includedir}