pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/libgcrypt



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Thu Jun 15 23:41:41 UTC 2023

Modified Files:
        pkgsrc/security/libgcrypt: Makefile

Log Message:
security/libgcrypt: Make this cross-compile.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 pkgsrc/security/libgcrypt/Makefile

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

Modified files:

Index: pkgsrc/security/libgcrypt/Makefile
diff -u pkgsrc/security/libgcrypt/Makefile:1.108 pkgsrc/security/libgcrypt/Makefile:1.109
--- pkgsrc/security/libgcrypt/Makefile:1.108    Fri Apr  7 09:15:55 2023
+++ pkgsrc/security/libgcrypt/Makefile  Thu Jun 15 23:41:41 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.108 2023/04/07 09:15:55 adam Exp $
+# $NetBSD: Makefile,v 1.109 2023/06/15 23:41:41 riastradh Exp $
 
 DISTNAME=      libgcrypt-1.10.2
 CATEGORIES=    security
@@ -32,6 +32,18 @@ PKGCONFIG_OVERRIDE+= src/libgcrypt.pc.in
 
 .include "options.mk"
 
+.if ${USE_CROSS_COMPILE:tl} == "yes"
+CONFIGURE_ARGS+=       CC_FOR_BUILD=${NATIVE_CC:Q}
+
+# libgpg-error installs scripts in the _target_ system, that are
+# expected to be run on the _build_ system when compiling downstream
+# dependencies like libgcrypt.  I don't see a way to use pkg-config or
+# anything reasonable to override this, so, we do the nonsense thing
+# instead.
+CONFIGURE_ARGS+=       GPGRT_CONFIG=${CROSS_DESTDIR:Q}${LOCALBASE:Q}/bin/gpgrt-config
+CONFIGURE_ARGS+=       GPG_ERROR_CONFIG=${CROSS_DESTDIR:Q}${LOCALBASE:Q}/bin/gpg-error-config
+.endif
+
 BUILDLINK_API_DEPENDS.libgpg-error+=   libgpg-error>=1.13
 .include "../../security/libgpg-error/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"



Home | Main Index | Thread Index | Old Index