Package: xmltooling / 1.6.0-4+deb9u2

Make-pkgxmldir-configurable.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@niif.hu>
Date: Tue, 5 Jul 2016 13:45:57 +0200
Subject: Make pkgxmldir configurable

---
 configure.ac        | 6 ++++++
 schemas/Makefile.am | 2 --
 xmltooling.pc.in    | 2 ++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0050d2c..05ed466 100644
--- a/configure.ac
+++ b/configure.ac
@@ -274,5 +274,11 @@ AM_CONDITIONAL(BUILD_UNITTEST,test -f ${CXXTEST})
 dnl Disabled on Debian since build log analysis wants verbose logs.
 dnl LIBTOOL="$LIBTOOL --silent"
 
+AC_ARG_WITH([pkgxmldir],
+    AS_HELP_STRING([--with-pkgxmldir=DIR],
+        [where to install the schema files @<:@default=${datadir}/xml/AC_PACKAGE_TARNAME@:>@])],
+    [],[with_pkgxmldir=${datadir}/xml/AC_PACKAGE_TARNAME])
+AC_SUBST([pkgxmldir],[${with_pkgxmldir}])
+
 # output packaging and makefiles
 AC_OUTPUT
diff --git a/schemas/Makefile.am b/schemas/Makefile.am
index ee11aac..3b9c00c 100644
--- a/schemas/Makefile.am
+++ b/schemas/Makefile.am
@@ -9,8 +9,6 @@ schemafiles = \
 	xml.xsd \
 	xmltooling.xsd
 
-pkgxmldir = $(datadir)/xml/@PACKAGE_NAME@
-
 pkgxml_DATA = \
 	catalog.xml \
 	$(schemafiles)
diff --git a/xmltooling.pc.in b/xmltooling.pc.in
index e5dd983..a289acd 100644
--- a/xmltooling.pc.in
+++ b/xmltooling.pc.in
@@ -2,6 +2,8 @@ prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
 includedir=@includedir@
+datarootdir=@datarootdir@
+pkgxmldir=@pkgxmldir@
 
 Name: @PACKAGE_NAME@
 Description: OpenSAML XMLTooling-C library