Tue Jun 27 10:46:51 2023 UTC ()
security/openssl: Make this cross-compile.


(riastradh)
diff -r1.289 -r1.290 pkgsrc/security/openssl/Makefile

cvs diff -r1.289 -r1.290 pkgsrc/security/openssl/Makefile (expand / switch to unified diff)

--- pkgsrc/security/openssl/Makefile 2023/05/30 14:52:00 1.289
+++ pkgsrc/security/openssl/Makefile 2023/06/27 10:46:50 1.290
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.289 2023/05/30 14:52:00 wiz Exp $ 1# $NetBSD: Makefile,v 1.290 2023/06/27 10:46:50 riastradh Exp $
2 2
3# Remember to upload-distfiles when updating OpenSSL -- otherwise it 3# Remember to upload-distfiles when updating OpenSSL -- otherwise it
4# is not possible for users who have bootstrapped without OpenSSL 4# is not possible for users who have bootstrapped without OpenSSL
5# to install it and enable HTTPS fetching. 5# to install it and enable HTTPS fetching.
6DISTNAME= openssl-1.1.1u 6DISTNAME= openssl-1.1.1u
7CATEGORIES= security 7CATEGORIES= security
8MASTER_SITES= https://www.openssl.org/source/ 8MASTER_SITES= https://www.openssl.org/source/
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://www.openssl.org/ 11HOMEPAGE= https://www.openssl.org/
12COMMENT= Secure Socket Layer and cryptographic library 12COMMENT= Secure Socket Layer and cryptographic library
13LICENSE= openssl 13LICENSE= openssl
14 14
@@ -28,26 +28,48 @@ CONFIGURE_ARGS+= shared @@ -28,26 +28,48 @@ CONFIGURE_ARGS+= shared
28 28
29.include "../../mk/bsd.prefs.mk" 29.include "../../mk/bsd.prefs.mk"
30 30
31.if ${MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc} 31.if ${MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc}
32# No {get,make,set}context support before Darwin 9 32# No {get,make,set}context support before Darwin 9
33CONFIGURE_ARGS+= no-async 33CONFIGURE_ARGS+= no-async
34.endif 34.endif
35 35
36# Fix 64-bit build on at least Mac OS X Snow Leopard 36# Fix 64-bit build on at least Mac OS X Snow Leopard
37.if ${OPSYS} == "Darwin" && ${MACHINE_ARCH} == "x86_64" 37.if ${OPSYS} == "Darwin" && ${MACHINE_ARCH} == "x86_64"
38CONFIGURE_ENV+= KERNEL_BITS=${ABI} 38CONFIGURE_ENV+= KERNEL_BITS=${ABI}
39.endif 39.endif
40 40
 41.if ${USE_CROSS_COMPILE:tl} == "yes"
 42
 43OPENSSL_ARCH.aarch64= arm64
 44OPENSSL_ARCH.x86_64= amd64
 45CONFIGURE_ENV+= MACHINE=${OPENSSL_ARCH.${MACHINE_ARCH}:U${MACHINE_GNU_ARCH}:Q}
 46CONFIGURE_ENV+= RELEASE=${OS_VERSION:Q}
 47CONFIGURE_ENV+= SYSTEM=${OPSYS:Q}
 48CONFIGURE_ENV+= BUILD=${OPSYS:Q}\ ${OS_VERSION:Q}
 49
 50# We don't carry a runtime dependency on Perl, but OpenSSL does provide
 51# a Perl script that you can use if you do install Perl.
 52SUBST_CLASSES+= perlcross
 53SUBST_MESSAGE.perlcross= Fixing Perl interpreter path for cross-build
 54SUBST_STAGE.perlcross= pre-install
 55SUBST_FILES.perlcross+= tools/c_rehash
 56SUBST_FILES.perlcross+= apps/CA.pl
 57SUBST_FILES.perlcross+= apps/tsget.pl
 58SUBST_SED.perlcross= -e s,${PERL5:Q},${LOCALBASE:Q}/bin/perl5,g
 59CHECK_INTERPRETER_SKIP+= bin/c_rehash
 60
 61.endif # USE_CROSS_COMPILE
 62
41.include "options.mk" 63.include "options.mk"
42 64
43CONFIGURE_ENV+= PERL=${PERL5:Q} 65CONFIGURE_ENV+= PERL=${PERL5:Q}
44 66
45# If the config script cannot guess the host system correctly then we need to 67# If the config script cannot guess the host system correctly then we need to
46# specify it manually and call the Configure script directly. 68# specify it manually and call the Configure script directly.
47OPENSSL_HOST.SunOS-i386= solaris-x86-gcc 69OPENSSL_HOST.SunOS-i386= solaris-x86-gcc
48.if ${PKGSRC_COMPILER:Msunpro} 70.if ${PKGSRC_COMPILER:Msunpro}
49OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-cc 71OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-cc
50.else 72.else
51OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-gcc 73OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-gcc
52.endif 74.endif
53OPENSSL_HOST.Darwin-aarch64= darwin64-arm64-cc 75OPENSSL_HOST.Darwin-aarch64= darwin64-arm64-cc