summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-03-25 03:20:01 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-04-02 13:07:35 -0500
commit891bf2c1ed9f6efbd8175537e15f8732a94e7e77 (patch)
tree3f20cda13badac95954de05659710c01ae119249
parent8ed8830794a1a16494bc2771e3684fc877bea776 (diff)
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 <yselkowitz@users.sourceforge.net> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--xorg-sgml-doctools.pc.in6
3 files changed, 10 insertions, 0 deletions
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@