diff options
author | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2011-05-29 05:29:39 +0000 |
---|---|---|
committer | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2011-05-29 05:29:39 +0000 |
commit | 052fec9cc45344bc15e26a51e0578daf8143510f (patch) | |
tree | 31747e27ff386edf41e76e78f693558c1979c994 | |
parent | 226a87414c76ef51214579fd6ee5da9106c3eb44 (diff) | |
download | libyaml-052fec9cc45344bc15e26a51e0578daf8143510f.tar.gz |
Added support for pkg-config.
git-svn-id: http://svn.pyyaml.org/libyaml/branches/stable@373 18f92427-320e-0410-9341-c67f048884a3
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | yaml-0.1.pc.in | 10 |
3 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 7835b61..4111fdb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,6 +5,9 @@ SUBDIRS = include src . tests win32 EXTRA_DIST = README LICENSE doc/doxygen.cfg +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = yaml-0.1.pc + maintainer-clean-local: -rm -f aclocal.m4 config.h.in configure config/* -find ${builddir} -name Makefile.in -exec rm -f '{}' ';' diff --git a/configure.ac b/configure.ac index 6719caa..f94a2a5 100644 --- a/configure.ac +++ b/configure.ac @@ -67,7 +67,7 @@ AC_C_CONST AC_TYPE_SIZE_T # Define Makefiles. -AC_CONFIG_FILES([include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile]) +AC_CONFIG_FILES([yaml-0.1.pc include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile]) # Generate the "configure" script. AC_OUTPUT diff --git a/yaml-0.1.pc.in b/yaml-0.1.pc.in new file mode 100644 index 0000000..c566abf --- /dev/null +++ b/yaml-0.1.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ + +Name: LibYAML +Description: Library to parse and emit YAML +Version: @PACKAGE_VERSION@ +Cflags: +Libs: -L${libdir} -lyaml |