| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.294 2023/11/05 19:37:19 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.295 2023/12/27 14:41:31 schmonz 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-3.1.4 | | 6 | DISTNAME= openssl-3.1.4 |
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 | |
| @@ -20,26 +20,42 @@ BUILD_TARGET= depend all | | | @@ -20,26 +20,42 @@ BUILD_TARGET= depend all |
20 | TEST_TARGET= test | | 20 | TEST_TARGET= test |
21 | | | 21 | |
22 | HAS_CONFIGURE= yes | | 22 | HAS_CONFIGURE= yes |
23 | CONFIGURE_SCRIPT= ./config | | 23 | CONFIGURE_SCRIPT= ./config |
24 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 24 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
25 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib | | 25 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib |
26 | CONFIGURE_ARGS+= --openssldir=${PKG_SYSCONFDIR} | | 26 | CONFIGURE_ARGS+= --openssldir=${PKG_SYSCONFDIR} |
27 | CONFIGURE_ARGS+= shared | | 27 | CONFIGURE_ARGS+= shared |
28 | MAKE_FLAGS+= MANSUFFIX= | | 28 | MAKE_FLAGS+= MANSUFFIX= |
29 | MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR} | | 29 | MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR} |
30 | | | 30 | |
31 | .include "../../mk/bsd.prefs.mk" | | 31 | .include "../../mk/bsd.prefs.mk" |
32 | | | 32 | |
| | | 33 | .if ${OPSYS} == "NetBSD" && \ |
| | | 34 | ((${MACHINE_ARCH} == "arm") || \ |
| | | 35 | (${MACHINE_ARCH} == "hppa") || \ |
| | | 36 | (${MACHINE_ARCH} == "i386") || \ |
| | | 37 | (${MACHINE_ARCH} == "m68k") || \ |
| | | 38 | (${MACHINE_ARCH} == "mips") || \ |
| | | 39 | (${MACHINE_ARCH} == "powerpc") || \ |
| | | 40 | (${MACHINE_ARCH} == "riscv32") || \ |
| | | 41 | (${MACHINE_ARCH} == "sh3") || \ |
| | | 42 | (${MACHINE_ARCH} == "sparc") || \ |
| | | 43 | (${MACHINE_ARCH} == "vax")) |
| | | 44 | # Use OpenSSL's built-in fallbacks (not actually clang-specific) |
| | | 45 | # see src/crypto/external/bsd/openssl/lib/libcrypto/arch/*/crypto.inc |
| | | 46 | CFLAGS+= -DBROKEN_CLANG_ATOMICS # no atomic 64 bit ops |
| | | 47 | .endif |
| | | 48 | |
33 | .if ${MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc} | | 49 | .if ${MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc} |
34 | # No {get,make,set}context support before Darwin 9 | | 50 | # No {get,make,set}context support before Darwin 9 |
35 | CONFIGURE_ARGS+= no-async | | 51 | CONFIGURE_ARGS+= no-async |
36 | .endif | | 52 | .endif |
37 | | | 53 | |
38 | .if ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 101200 | | 54 | .if ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 101200 |
39 | # While it does check for this, it does so using a header that is only | | 55 | # While it does check for this, it does so using a header that is only |
40 | # available in OS X versions starting with Leopard. | | 56 | # available in OS X versions starting with Leopard. |
41 | CFLAGS+= -DOPENSSL_NO_APPLE_CRYPTO_RANDOM=1 | | 57 | CFLAGS+= -DOPENSSL_NO_APPLE_CRYPTO_RANDOM=1 |
42 | .endif | | 58 | .endif |
43 | | | 59 | |
44 | PLIST_VARS+= devcrypto afalg | | 60 | PLIST_VARS+= devcrypto afalg |
45 | # the AF_ALG engine is supported only on Linux, where it | | 61 | # the AF_ALG engine is supported only on Linux, where it |