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}