From 891bf2c1ed9f6efbd8175537e15f8732a94e7e77 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 25 Mar 2010 03:20:01 -0500 Subject: Provide a pkg-config file This allows the SGML entities to be found no matter where they are installed, or even when cross-compiling. Signed-off-by: Yaakov Selkowitz Reviewed-by: Gaetan Nadon --- Makefile.am | 3 +++ configure.ac | 1 + xorg-sgml-doctools.pc.in | 6 ++++++ 3 files changed, 10 insertions(+) create mode 100644 xorg-sgml-doctools.pc.in diff --git a/Makefile.am b/Makefile.am index f05b87a..11ea95a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,6 +23,9 @@ sgmlentdir = $(prefix)/share/sgml/X11 dist_sgmlent_DATA = defs.ent +pkgconfigdir = $(datadir)/pkgconfig +pkgconfig_DATA = xorg-sgml-doctools.pc + MAINTAINERCLEANFILES = ChangeLog INSTALL .PHONY: ChangeLog INSTALL diff --git a/configure.ac b/configure.ac index 9f290a5..dd97a27 100644 --- a/configure.ac +++ b/configure.ac @@ -35,4 +35,5 @@ AC_PROG_INSTALL AC_OUTPUT([ Makefile + xorg-sgml-doctools.pc ]) diff --git a/xorg-sgml-doctools.pc.in b/xorg-sgml-doctools.pc.in new file mode 100644 index 0000000..ae1422a --- /dev/null +++ b/xorg-sgml-doctools.pc.in @@ -0,0 +1,6 @@ +prefix=@prefix@ +sgmlrootdir=${prefix}/share/sgml + +Name: xorg-sgml-doctools +Description: SGML entities for X.Org documentation +Version: @VERSION@ -- cgit v1.2.3