Sun Nov 5 19:37:20 2023 UTC ()
openssl: Fix building on Mac OS X Tiger.


(nia)
diff -r1.293 -r1.294 pkgsrc/security/openssl/Makefile

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

--- pkgsrc/security/openssl/Makefile 2023/10/27 18:30:12 1.293
+++ pkgsrc/security/openssl/Makefile 2023/11/05 19:37:19 1.294
@@ -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.
6DISTNAME= openssl-3.1.4 6DISTNAME= openssl-3.1.4
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
@@ -25,26 +25,32 @@ CONFIGURE_ARGS+= --prefix=${PREFIX} @@ -25,26 +25,32 @@ CONFIGURE_ARGS+= --prefix=${PREFIX}
25CONFIGURE_ARGS+= --libdir=${PREFIX}/lib 25CONFIGURE_ARGS+= --libdir=${PREFIX}/lib
26CONFIGURE_ARGS+= --openssldir=${PKG_SYSCONFDIR} 26CONFIGURE_ARGS+= --openssldir=${PKG_SYSCONFDIR}
27CONFIGURE_ARGS+= shared 27CONFIGURE_ARGS+= shared
28MAKE_FLAGS+= MANSUFFIX= 28MAKE_FLAGS+= MANSUFFIX=
29MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR} 29MAKE_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
35CONFIGURE_ARGS+= no-async 35CONFIGURE_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.
 41CFLAGS+= -DOPENSSL_NO_APPLE_CRYPTO_RANDOM=1
 42.endif
 43
38PLIST_VARS+= devcrypto afalg 44PLIST_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"
42PLIST.afalg= yes 48PLIST.afalg= yes
43.endif 49.endif
44.if exists(/dev/crypto) && ${OPSYS} != "SunOS" 50.if exists(/dev/crypto) && ${OPSYS} != "SunOS"
45PLIST.devcrypto= yes 51PLIST.devcrypto= yes
46.else 52.else
47CONFIGURE_ARGS+= no-devcryptoeng 53CONFIGURE_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