summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Simonov <xi@resolvent.net>2011-05-29 05:29:39 +0000
committerKirill Simonov <xi@resolvent.net>2011-05-29 05:29:39 +0000
commit242a44b6a64b9781b0288b0d9ce1e7b6b83c0907 (patch)
tree31747e27ff386edf41e76e78f693558c1979c994
parent52e34e2b73bef427dd85915199b7d97fc40d3aee (diff)
downloadlibyaml-hg-242a44b6a64b9781b0288b0d9ce1e7b6b83c0907.tar.gz
Added support for pkg-config.
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac2
-rw-r--r--yaml-0.1.pc.in10
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