git: c547e9e899e0 - main - security/cryptlib: fix build on powerpc64le

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 01 Dec 2021 17:33:13 UTC
The branch main has been updated by pkubaj:

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

commit c547e9e899e0cab7bd2c50cbb100e2f041a2ea4d
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-12-01 17:25:26 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-12-01 17:25:26 +0000

    security/cryptlib: fix build on powerpc64le
---
 security/cryptlib/Makefile                     | 2 +-
 security/cryptlib/files/patch-crypt_osconfig.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/security/cryptlib/Makefile b/security/cryptlib/Makefile
index 28484e46c006..bdd0dcc64276 100644
--- a/security/cryptlib/Makefile
+++ b/security/cryptlib/Makefile
@@ -9,7 +9,7 @@ DISTNAME=		cl${PORTVERSION:S/.//g}
 MAINTAINER=		ale@FreeBSD.org
 COMMENT=		Powerful security programming toolkit
 
-ONLY_FOR_ARCHS=		amd64 armv6 armv7 i386 powerpc powerpc64
+ONLY_FOR_ARCHS=		amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
 
 OPTIONS_DEFINE=		DOCS
 
diff --git a/security/cryptlib/files/patch-crypt_osconfig.h b/security/cryptlib/files/patch-crypt_osconfig.h
index 4737b39c8c61..3cc1a7d7de9b 100644
--- a/security/cryptlib/files/patch-crypt_osconfig.h
+++ b/security/cryptlib/files/patch-crypt_osconfig.h
@@ -4,10 +4,10 @@
  	  #define L_ENDIAN
  	#else
  	  #define B_ENDIAN
+ 	#endif	/* Usually big-endian but may be little-endian */
 +	#ifdef __LP64__
 +	  #undef SIXTY_FOUR_BIT
 +	  #define SIXTY_FOUR_BIT_LONG
 +	#endif
- 	#endif	/* Usually big-endian but may be little-endian */
  	#define BN_LLONG
  	#define DES_RISC1