[PATCH:doctools] Provide a pkg-config file

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Thu Mar 25 01:48:24 PDT 2010


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

This allows the SGML entities to be found no matter where they are
installed, or even when cross-compiling.

Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 Makefile.am              |    5 +++++
 configure.ac             |    1 +
 xorg-sgml-doctools.pc.in |    6 ++++++
 3 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 xorg-sgml-doctools.pc.in

diff --git a/Makefile.am b/Makefile.am
index f05b87a..384815b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,6 +23,11 @@ sgmlentdir = $(prefix)/share/sgml/X11
 
 dist_sgmlent_DATA = defs.ent
 
+pkgconfigdir = $(datadir)/pkgconfig
+pkgconfig_DATA = xorg-sgml-doctools.pc
+
+EXTRA_DIST = xorg-sgml-doctools.pc.in
+
 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@
-- 
1.6.6.1



More information about the xorg-devel mailing list