| @@ -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. |
6 | DISTNAME= openssl-1.1.1u | | 6 | DISTNAME= openssl-1.1.1u |
7 | CATEGORIES= security | | 7 | CATEGORIES= security |
8 | MASTER_SITES= https://www.openssl.org/source/ | | 8 | MASTER_SITES= https://www.openssl.org/source/ |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= https://www.openssl.org/ | | 11 | HOMEPAGE= https://www.openssl.org/ |
12 | COMMENT= Secure Socket Layer and cryptographic library | | 12 | COMMENT= Secure Socket Layer and cryptographic library |
13 | LICENSE= openssl | | 13 | LICENSE= 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 |
33 | CONFIGURE_ARGS+= no-async | | 33 | CONFIGURE_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" |
38 | CONFIGURE_ENV+= KERNEL_BITS=${ABI} | | 38 | CONFIGURE_ENV+= KERNEL_BITS=${ABI} |
39 | .endif | | 39 | .endif |
40 | | | 40 | |
| | | 41 | .if ${USE_CROSS_COMPILE:tl} == "yes" |
| | | 42 | |
| | | 43 | OPENSSL_ARCH.aarch64= arm64 |
| | | 44 | OPENSSL_ARCH.x86_64= amd64 |
| | | 45 | CONFIGURE_ENV+= MACHINE=${OPENSSL_ARCH.${MACHINE_ARCH}:U${MACHINE_GNU_ARCH}:Q} |
| | | 46 | CONFIGURE_ENV+= RELEASE=${OS_VERSION:Q} |
| | | 47 | CONFIGURE_ENV+= SYSTEM=${OPSYS:Q} |
| | | 48 | CONFIGURE_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. |
| | | 52 | SUBST_CLASSES+= perlcross |
| | | 53 | SUBST_MESSAGE.perlcross= Fixing Perl interpreter path for cross-build |
| | | 54 | SUBST_STAGE.perlcross= pre-install |
| | | 55 | SUBST_FILES.perlcross+= tools/c_rehash |
| | | 56 | SUBST_FILES.perlcross+= apps/CA.pl |
| | | 57 | SUBST_FILES.perlcross+= apps/tsget.pl |
| | | 58 | SUBST_SED.perlcross= -e s,${PERL5:Q},${LOCALBASE:Q}/bin/perl5,g |
| | | 59 | CHECK_INTERPRETER_SKIP+= bin/c_rehash |
| | | 60 | |
| | | 61 | .endif # USE_CROSS_COMPILE |
| | | 62 | |
41 | .include "options.mk" | | 63 | .include "options.mk" |
42 | | | 64 | |
43 | CONFIGURE_ENV+= PERL=${PERL5:Q} | | 65 | CONFIGURE_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. |
47 | OPENSSL_HOST.SunOS-i386= solaris-x86-gcc | | 69 | OPENSSL_HOST.SunOS-i386= solaris-x86-gcc |
48 | .if ${PKGSRC_COMPILER:Msunpro} | | 70 | .if ${PKGSRC_COMPILER:Msunpro} |
49 | OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-cc | | 71 | OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-cc |
50 | .else | | 72 | .else |
51 | OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-gcc | | 73 | OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-gcc |
52 | .endif | | 74 | .endif |
53 | OPENSSL_HOST.Darwin-aarch64= darwin64-arm64-cc | | 75 | OPENSSL_HOST.Darwin-aarch64= darwin64-arm64-cc |