[PATCH 5/5] Make wayland-scanner.pc sysroot aware

Thierry Reding thierry.reding at gmail.com
Mon May 19 08:12:43 PDT 2014


From: Thierry Reding <treding at nvidia.com>

The pkgdatadir variable is used to find data files installed by wayland.
If wayland is installed in a sysroot, the path to this directory needs
to be prefixed with the sysroot to make sure the proper files are found.

${pc_sysrootdir} is expanded to the value of the PKG_CONFIG_SYSROOT_DIR
environment variable.

Signed-off-by: Thierry Reding <treding at nvidia.com>
---
 src/wayland-scanner.pc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wayland-scanner.pc.in b/src/wayland-scanner.pc.in
index 7b2a4c92e0e3..af505113520a 100644
--- a/src/wayland-scanner.pc.in
+++ b/src/wayland-scanner.pc.in
@@ -1,7 +1,7 @@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 datarootdir=@datarootdir@
-pkgdatadir=@datadir@/@PACKAGE@
+pkgdatadir=${pc_sysrootdir}@datadir@/@PACKAGE@
 wayland_scanner=@bindir@/wayland-scanner
 
 Name: Wayland Scanner
-- 
1.9.2



More information about the wayland-devel mailing list