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:
parent
6b3691be00
commit
24510eb3e9
@ -9,3 +9,6 @@ EXTRA_DIST = \
|
|||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
src \
|
src \
|
||||||
test
|
test
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = @PACKAGE_NAME@.pc
|
||||||
|
@ -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
11
libsodium.pc.in
Normal 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}
|
Loading…
Reference in New Issue
Block a user