From b676e8c15ff582bcb234aef28034084763ad1ea8 Mon Sep 17 00:00:00 2001
From: Gcenx <38226388+Gcenx@users.noreply.github.com>
Date: Mon, 1 Feb 2021 18:22:34 -0500
Subject: [PATCH] libgcrypt: Fix i386 & x86_64 universal build
---
devel/libgcrypt/Portfile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/devel/libgcrypt/Portfile b/devel/libgcrypt/Portfile
index c1778c33df9..299a4efa838 100644
a
|
b
|
use_parallel_build yes |
62 | 62 | |
63 | 63 | post-patch { |
64 | 64 | if {[variant_exists universal] && [variant_isset universal]} { |
65 | | reinplace "s/@LIBGCRYPT_CONFIG_HOST@/${os.arch}-apple-darwin${os.major}/" ${worksrcpath}/src/libgcrypt-config.in |
| 65 | reinplace "s/@LIBGCRYPT_CONFIG_HOST@/${os.arch}-apple-darwin${os.major}/" ${worksrcpath}/src/libgcrypt-config.in \ |
| 66 | ${worksrcpath}/src/libgcrypt.pc.in |
66 | 67 | } |
67 | 68 | } |
68 | 69 | |
| 70 | set merger_host(x86_64) x86_64-apple-${os.platform}${os.major} |
| 71 | set merger_host(i386) i386-apple-${os.platform}${os.major} |
| 72 | |
69 | 73 | post-destroot { |
70 | 74 | set docdir ${prefix}/share/doc/${name} |
71 | 75 | xinstall -d ${destroot}${docdir} |