| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.293 2023/10/27 18:30:12 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.294 2023/11/05 19:37:19 nia 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 | |
| @@ -25,26 +25,32 @@ CONFIGURE_ARGS+= --prefix=${PREFIX} | | | @@ -25,26 +25,32 @@ 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 ${MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc} | | 33 | .if ${MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc} |
34 | # No {get,make,set}context support before Darwin 9 | | 34 | # No {get,make,set}context support before Darwin 9 |
35 | CONFIGURE_ARGS+= no-async | | 35 | CONFIGURE_ARGS+= no-async |
36 | .endif | | 36 | .endif |
37 | | | 37 | |
| | | 38 | .if ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 101200 |
| | | 39 | # While it does check for this, it does so using a header that is only |
| | | 40 | # available in OS X versions starting with Leopard. |
| | | 41 | CFLAGS+= -DOPENSSL_NO_APPLE_CRYPTO_RANDOM=1 |
| | | 42 | .endif |
| | | 43 | |
38 | PLIST_VARS+= devcrypto afalg | | 44 | PLIST_VARS+= devcrypto afalg |
39 | # the AF_ALG engine is supported only on Linux, where it | | 45 | # the AF_ALG engine is supported only on Linux, where it |
40 | # is used instead of the BSD /dev/crypto engine. | | 46 | # is used instead of the BSD /dev/crypto engine. |
41 | .if ${OPSYS} == "Linux" | | 47 | .if ${OPSYS} == "Linux" |
42 | PLIST.afalg= yes | | 48 | PLIST.afalg= yes |
43 | .endif | | 49 | .endif |
44 | .if exists(/dev/crypto) && ${OPSYS} != "SunOS" | | 50 | .if exists(/dev/crypto) && ${OPSYS} != "SunOS" |
45 | PLIST.devcrypto= yes | | 51 | PLIST.devcrypto= yes |
46 | .else | | 52 | .else |
47 | CONFIGURE_ARGS+= no-devcryptoeng | | 53 | CONFIGURE_ARGS+= no-devcryptoeng |
48 | .endif | | 54 | .endif |
49 | | | 55 | |
50 | # Fix 64-bit build on at least Mac OS X Snow Leopard | | 56 | # Fix 64-bit build on at least Mac OS X Snow Leopard |