Ticket #62198: 0001-libgcrypt-Fix-i386-x86_64-universal-build.patch

File 0001-libgcrypt-Fix-i386-x86_64-universal-build.patch, 1.2 KB (added by Gcenx, 4 years ago)

Here's a patch that fixes the issue on my system

  • devel/libgcrypt/Portfile

    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 
    6262
    6363post-patch {
    6464    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
    6667    }
    6768}
    6869
     70set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
     71set merger_host(i386)   i386-apple-${os.platform}${os.major}
     72
    6973post-destroot {
    7074    set docdir ${prefix}/share/doc/${name}
    7175    xinstall -d ${destroot}${docdir}