summaryrefslogtreecommitdiff
path: root/security/gnupg
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2013-05-10 20:18:39 +0000
committerriastradh <riastradh@pkgsrc.org>2013-05-10 20:18:39 +0000
commit32371be1c6c7a2954ad37c333927ade1cfcee8db (patch)
tree367486f102dd6b7e825499b008609e85f3ea3305 /security/gnupg
parentc0c3f0d1c7b5e3c8071cc895d4c38d1a040d328b (diff)
downloadpkgsrc-32371be1c6c7a2954ad37c333927ade1cfcee8db.tar.gz
Fix cross-build of gnupg with CC_FOR_BUILD=NATIVE_CC.
Diffstat (limited to 'security/gnupg')
-rw-r--r--security/gnupg/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile
index 0c2fc24524b..e244ed33136 100644
--- a/security/gnupg/Makefile
+++ b/security/gnupg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.118 2013/02/06 23:23:36 jperkin Exp $
+# $NetBSD: Makefile,v 1.119 2013/05/10 20:18:39 riastradh Exp $
DISTNAME= gnupg-1.4.13
PKGREVISION= 2
@@ -38,6 +38,10 @@ CONFIGURE_ARGS+= --disable-gnupg-iconv
CONFIGURE_ARGS+= --disable-asm
.endif
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
+.endif
+
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/DETAILS \
${DESTDIR}${PREFIX}/share/gnupg