diff options
| author | sjmulder <sjmulder@pkgsrc.org> | 2020-07-22 20:41:30 +0000 |
|---|---|---|
| committer | sjmulder <sjmulder@pkgsrc.org> | 2020-07-22 20:41:30 +0000 |
| commit | f89d0985fbe6ffb5536b276572d699e3a9fa0620 (patch) | |
| tree | 06c04ca96861db42d7fb5373a213963f4732ea3b /security/openssl | |
| parent | 83db00f0548d5fe30efe7d91ca0870012b18e787 (diff) | |
| download | pkgsrc-f89d0985fbe6ffb5536b276572d699e3a9fa0620.tar.gz | |
security/openssl: Make compatible with Apple Silicon
Diffstat (limited to 'security/openssl')
| -rw-r--r-- | security/openssl/Makefile | 3 | ||||
| -rw-r--r-- | security/openssl/distinfo | 3 | ||||
| -rw-r--r-- | security/openssl/patches/patch-Configurations_10-main.conf | 22 |
3 files changed, 26 insertions, 2 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile index 312b6886fcc..c9b0a098a22 100644 --- a/security/openssl/Makefile +++ b/security/openssl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.261 2020/07/13 11:35:54 jperkin Exp $ +# $NetBSD: Makefile,v 1.262 2020/07/22 20:41:30 sjmulder Exp $ DISTNAME= openssl-1.1.1g PKGREVISION= 2 @@ -39,6 +39,7 @@ CONFIGURE_ENV+= PERL=${PERL5:Q} # specify it manually and call the Configure script directly. OPENSSL_HOST.SunOS-i386= solaris-x86-gcc OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-gcc +OPENSSL_HOST.Darwin-aarch64= darwin64-arm64-cc .if defined(OPENSSL_HOST.${OPSYS}-${MACHINE_ARCH}) CONFIG_SHELL= ${PERL5} diff --git a/security/openssl/distinfo b/security/openssl/distinfo index d0212a28dc6..176d42c10ca 100644 --- a/security/openssl/distinfo +++ b/security/openssl/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.143 2020/07/10 10:04:54 hauke Exp $ +$NetBSD: distinfo,v 1.144 2020/07/22 20:41:30 sjmulder Exp $ SHA1 (openssl-1.1.1g.tar.gz) = b213a293f2127ec3e323fb3cfc0c9807664fd997 RMD160 (openssl-1.1.1g.tar.gz) = 427b7b12c06715ad1c95d3ff5e38055c6bb66c1d SHA512 (openssl-1.1.1g.tar.gz) = 01e3d0b1bceeed8fb066f542ef5480862001556e0f612e017442330bbd7e5faee228b2de3513d7fc347446b7f217e27de1003dc9d7214d5833b97593f3ec25ab Size (openssl-1.1.1g.tar.gz) = 9801502 bytes +SHA1 (patch-Configurations_10-main.conf) = d27643187e0b71041f47a9a7c7eec811f7539085 SHA1 (patch-Configurations_shared-info.pl) = 0e835f6e343b5d05ef9a0e6ef2a195201262d15c SHA1 (patch-Configurations_unix-Makefile.tmpl) = d58376dfc8cbb4c7d98ca64093759f173eac73da SHA1 (patch-Configure) = 479f1bc826f7721f6b44d6b5a6cf460432924bf2 diff --git a/security/openssl/patches/patch-Configurations_10-main.conf b/security/openssl/patches/patch-Configurations_10-main.conf new file mode 100644 index 00000000000..053f59b8f1a --- /dev/null +++ b/security/openssl/patches/patch-Configurations_10-main.conf @@ -0,0 +1,22 @@ +$NetBSD: patch-Configurations_10-main.conf,v 1.1 2020/07/22 20:41:30 sjmulder Exp $ + +Add support for Apple Silicon. Imported from open pull request: +https://github.com/openssl/openssl/pull/12369 + +--- Configurations/10-main.conf.orig 2020-04-21 12:22:39.000000000 +0000 ++++ Configurations/10-main.conf +@@ -1557,6 +1557,14 @@ my %targets = ( + bn_ops => "SIXTY_FOUR_BIT_LONG", + perlasm_scheme => "macosx", + }, ++ "darwin64-arm64-cc" => { ++ inherit_from => [ "darwin-common", asm("aarch64_asm") ], ++ CFLAGS => add("-Wall"), ++ cflags => add("-arch arm64"), ++ lib_cppflags => add("-DL_ENDIAN"), ++ bn_ops => "SIXTY_FOUR_BIT_LONG", ++ perlasm_scheme => "ios64", ++ }, + + ##### GNU Hurd + "hurd-x86" => { |
