Commits

Kirill Simonov  committed c63805e

Added support for pkg-config.

  • Participants
  • Parent commits 0aa4497

Comments (0)

Files changed (3)

 
 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 '{}' ';'

File configure.ac

 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

File yaml-0.1.pc.in

+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