From 242a44b6a64b9781b0288b0d9ce1e7b6b83c0907 Mon Sep 17 00:00:00 2001 From: Kirill Simonov Date: Sun, 29 May 2011 05:29:39 +0000 Subject: Added support for pkg-config. --- Makefile.am | 3 +++ configure.ac | 2 +- yaml-0.1.pc.in | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 yaml-0.1.pc.in 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 -- cgit v1.2.1