diff options
author | Petri Lehtinen <petri@digip.org> | 2010-01-07 19:28:00 +0200 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2010-01-07 19:30:20 +0200 |
commit | aeb5b481c95c6bd71e3025a7965861ab82a643b8 (patch) | |
tree | 9f586fd440f7d264893513fc9ebaff5c1e850143 | |
parent | f5202bedef766b68141e20bba3489b4a3aebaf3d (diff) | |
download | jansson-1.1.zip jansson-1.1.tar.gz jansson-1.1.tar.bz2 |
Add pkg-config support1.1
Thanks to Sean Middleditch for contributing.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | jansson.pc.in | 10 |
4 files changed, 15 insertions, 0 deletions
@@ -22,3 +22,4 @@ missing *.la stamp-h1 *.pyc +*.pc diff --git a/Makefile.am b/Makefile.am index e64f397..2a69f16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,9 @@ EXTRA_DIST = CHANGES LICENSE README.rst SUBDIRS = doc src test +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = jansson.pc + distcheck-hook: sphinx-build -b html -W \ $(distdir)/doc \ diff --git a/configure.ac b/configure.ac index 5df7d77..1bda9de 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,7 @@ AC_PROG_LIBTOOL # Checks for library functions. AC_CONFIG_FILES([ + jansson.pc Makefile doc/Makefile src/Makefile diff --git a/jansson.pc.in b/jansson.pc.in new file mode 100644 index 0000000..d9bf4da --- /dev/null +++ b/jansson.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=${prefix}/include + +Name: Jansson +Description: Library for encoding, decoding and manipulating JSON data +Version: @VERSION@ +Libs: -L${libdir} -ljansson +Cflags: -I${includedir} |