git: f64391dd0140 - main - security/openssl: Fix build on aarch64

From: Bernard Spil <brnrd_at_FreeBSD.org>
Date: Mon, 20 Dec 2021 18:05:57 UTC
The branch main has been updated by brnrd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f64391dd014047d542cd394dda3dc00c1d061801

commit f64391dd014047d542cd394dda3dc00c1d061801
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2021-12-20 18:03:30 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2021-12-20 18:03:30 +0000

    security/openssl: Fix build on aarch64
    
     * Upstream only partly merged changes
    
    PR:             259937, 260572
    Reported by:    allanjude, "Naram Qashat" <cyberbotx cyberbotx com>
---
 security/openssl/Makefile                                |  1 +
 security/openssl/files/patch-Configurations_10-main.conf | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index d0b156e605ea..dcac89a98972 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	openssl
 PORTVERSION=	1.1.1m
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	security devel
 MASTER_SITES=	https://www.openssl.org/source/ \
diff --git a/security/openssl/files/patch-Configurations_10-main.conf b/security/openssl/files/patch-Configurations_10-main.conf
new file mode 100644
index 000000000000..03be5801b885
--- /dev/null
+++ b/security/openssl/files/patch-Configurations_10-main.conf
@@ -0,0 +1,16 @@
+--- Configurations/10-main.conf.orig	2021-12-14 15:45:01 UTC
++++ Configurations/10-main.conf
+@@ -988,6 +988,13 @@ my %targets = (
+         perlasm_scheme   => "elf",
+     },
+ 
++    "BSD-aarch64" => {
++        inherit_from     => [ "BSD-generic64", asm("aarch64_asm") ],
++        lib_cppflags     => add("-DL_ENDIAN"),
++        bn_ops           => "SIXTY_FOUR_BIT_LONG",
++        perlasm_scheme   => "linux64",
++    },
++
+     "bsdi-elf-gcc" => {
+         inherit_from     => [ "BASE_unix", asm("x86_elf_asm") ],
+         CC               => "gcc",