| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.266 2020/12/08 18:54:17 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.267 2021/01/25 20:26:43 schmonz Exp $ |
2 | | | 2 | |
3 | DISTNAME= openssl-1.1.1i | | 3 | DISTNAME= openssl-1.1.1i |
4 | CATEGORIES= security | | 4 | CATEGORIES= security |
5 | MASTER_SITES= https://www.openssl.org/source/ | | 5 | MASTER_SITES= https://www.openssl.org/source/ |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= https://www.openssl.org/ | | 8 | HOMEPAGE= https://www.openssl.org/ |
9 | COMMENT= Secure Socket Layer and cryptographic library | | 9 | COMMENT= Secure Socket Layer and cryptographic library |
10 | LICENSE= openssl | | 10 | LICENSE= openssl |
11 | | | 11 | |
12 | USE_GCC_RUNTIME= yes | | 12 | USE_GCC_RUNTIME= yes |
13 | | | 13 | |
14 | USE_TOOLS+= fgrep gmake makedepend perl | | 14 | USE_TOOLS+= fgrep gmake makedepend perl |
| @@ -30,27 +30,28 @@ CONFIGURE_ARGS+= no-async | | | @@ -30,27 +30,28 @@ CONFIGURE_ARGS+= no-async |
30 | .endif | | 30 | .endif |
31 | | | 31 | |
32 | .include "options.mk" | | 32 | .include "options.mk" |
33 | | | 33 | |
34 | CONFIGURE_ARGS+= ${CFLAGS} ${LDFLAGS} | | 34 | CONFIGURE_ARGS+= ${CFLAGS} ${LDFLAGS} |
35 | CONFIGURE_ENV+= PERL=${PERL5:Q} | | 35 | CONFIGURE_ENV+= PERL=${PERL5:Q} |
36 | | | 36 | |
37 | # If the config script cannot guess the host system correctly then we need to | | 37 | # If the config script cannot guess the host system correctly then we need to |
38 | # specify it manually and call the Configure script directly. | | 38 | # specify it manually and call the Configure script directly. |
39 | OPENSSL_HOST.SunOS-i386= solaris-x86-gcc | | 39 | OPENSSL_HOST.SunOS-i386= solaris-x86-gcc |
40 | OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-gcc | | 40 | OPENSSL_HOST.SunOS-x86_64= solaris64-x86_64-gcc |
41 | OPENSSL_HOST.Darwin-aarch64= darwin64-arm64-cc | | 41 | OPENSSL_HOST.Darwin-aarch64= darwin64-arm64-cc |
42 | | | 42 | |
43 | LDFLAGS.SunOS+= -lrt | | 43 | LDFLAGS.SunOS+= -lrt |
| | | 44 | CPPFLAGS.OpenBSD+= -D__STDC_NO_ATOMICS__ |
44 | | | 45 | |
45 | .if defined(OPENSSL_HOST.${OPSYS}-${MACHINE_ARCH}) | | 46 | .if defined(OPENSSL_HOST.${OPSYS}-${MACHINE_ARCH}) |
46 | CONFIG_SHELL= ${PERL5} | | 47 | CONFIG_SHELL= ${PERL5} |
47 | CONFIGURE_SCRIPT= ./Configure | | 48 | CONFIGURE_SCRIPT= ./Configure |
48 | CONFIGURE_ARGS+= ${OPENSSL_HOST.${OPSYS}-${MACHINE_ARCH}} | | 49 | CONFIGURE_ARGS+= ${OPENSSL_HOST.${OPSYS}-${MACHINE_ARCH}} |
49 | .endif | | 50 | .endif |
50 | | | 51 | |
51 | PKGCONFIG_OVERRIDE+= libcrypto.pc libssl.pc openssl.pc | | 52 | PKGCONFIG_OVERRIDE+= libcrypto.pc libssl.pc openssl.pc |
52 | PKGCONFIG_OVERRIDE_STAGE= post-build | | 53 | PKGCONFIG_OVERRIDE_STAGE= post-build |
53 | | | 54 | |
54 | PKG_SYSCONFSUBDIR= openssl | | 55 | PKG_SYSCONFSUBDIR= openssl |
55 | CONF_FILES= ${PREFIX}/share/examples/openssl/openssl.cnf \ | | 56 | CONF_FILES= ${PREFIX}/share/examples/openssl/openssl.cnf \ |
56 | ${PKG_SYSCONFDIR}/openssl.cnf | | 57 | ${PKG_SYSCONFDIR}/openssl.cnf |