[PATCH xlocale-config 6/6] Add pkg-config file
Ran Benita
ran234 at gmail.com
Sun Sep 14 13:44:39 PDT 2014
Besides the usual stuff, a "xlocaledatadir" variable is added; this is
very useful for programs who wish to use the files without doing
guesswork or requiring explicit configure flags.
Signed-off-by: Ran Benita <ran234 at gmail.com>
---
Makefile.am | 3 +++
configure.ac | 3 ++-
xlocale-config.pc.in | 8 ++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
create mode 100644 xlocale-config.pc.in
diff --git a/Makefile.am b/Makefile.am
index 5d163e8..0826e15 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,6 +2,9 @@ SUBDIRS=nls specs
ACLOCAL_AMFLAGS = -I m4
+pkgconfigdir = $(datadir)/pkgconfig
+pkgconfig_DATA = xlocale-config.pc
+
MAINTAINERCLEANFILES = ChangeLog INSTALL
.PHONY: ChangeLog INSTALL
diff --git a/configure.ac b/configure.ac
index 76e0fce..9b599c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,5 +59,6 @@ AC_CONFIG_FILES([Makefile
specs/Makefile
specs/i18n/Makefile
specs/i18n/compose/Makefile
- specs/i18n/localedb/Makefile])
+ specs/i18n/localedb/Makefile
+ xlocale-config.pc])
AC_OUTPUT
diff --git a/xlocale-config.pc.in b/xlocale-config.pc.in
new file mode 100644
index 0000000..ec902ab
--- /dev/null
+++ b/xlocale-config.pc.in
@@ -0,0 +1,8 @@
+prefix=@prefix@
+datarootdir=@datarootdir@
+datadir=@datadir@
+xlocaledatadir=@X11_LOCALEDATADIR@
+
+Name: xlocale-config
+Description: X locale configuration data
+Version: @VERSION@
--
2.1.0
More information about the xorg-devel
mailing list