pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/x11/xcb-util-errors



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Tue Jun 27 10:42:17 UTC 2023

Modified Files:
        pkgsrc/x11/xcb-util-errors: Makefile

Log Message:
x11/xcb-util-errors: Make this cross-compile.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/x11/xcb-util-errors/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/x11/xcb-util-errors/Makefile
diff -u pkgsrc/x11/xcb-util-errors/Makefile:1.4 pkgsrc/x11/xcb-util-errors/Makefile:1.5
--- pkgsrc/x11/xcb-util-errors/Makefile:1.4     Wed Oct 19 08:29:35 2022
+++ pkgsrc/x11/xcb-util-errors/Makefile Tue Jun 27 10:42:17 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2022/10/19 08:29:35 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2023/06/27 10:42:17 riastradh Exp $
 
 DISTNAME=      xcb-util-errors-1.0.1
 CATEGORIES=    x11
@@ -18,6 +18,17 @@ USE_LIBTOOL= yes
 
 PKGCONFIG_OVERRIDE=    xcb-errors.pc.in
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${USE_CROSS_COMPILE:tl} == "yes"
+# XXX Why is this necessary here and not in other packages?
+ALL_ENV+=      PKG_CONFIG_SYSROOT_DIR=${_CROSS_DESTDIR:Q}
+
+# xcb-proto abuses pc_sysrootdir in its .pc files, causing the
+# cross-destdir to be prefixed twice to paths.
+ALL_ENV+=      PKG_CONFIG_FDO_SYSROOT_RULES=1
+.endif
+
 .include "../../lang/python/tool.mk"
 .include "../../x11/libxcb/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index