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.
This commit is contained in:
Christian Wiese 2013-08-11 23:18:14 +02:00
parent 6b3691be00
commit 24510eb3e9
3 changed files with 15 additions and 0 deletions

View File

@ -9,3 +9,6 @@ EXTRA_DIST = \
SUBDIRS = \ SUBDIRS = \
src \ src \
test test
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = @PACKAGE_NAME@.pc

View File

@ -362,6 +362,7 @@ AH_VERBATIM([NDEBUG], [/* Never ever ignore assertions */
#/**/undef/**/ NDEBUG #/**/undef/**/ NDEBUG
#endif]) #endif])
AC_CONFIG_FILES([libsodium.pc])
AC_CONFIG_FILES([Makefile AC_CONFIG_FILES([Makefile
src/Makefile src/Makefile
src/libsodium/Makefile src/libsodium/Makefile

11
libsodium.pc.in Normal file
View File

@ -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}