blob: ffe9e3227c193e8aff56dc234eb21841252ca6e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
PORTNAME= wolfssl
PORTVERSION= 5.9.2
CATEGORIES= security devel
MASTER_SITES= https://www.wolfssl.com/ \
LOCAL/fox
MAINTAINER= fox@FreeBSD.org
COMMENT= Embedded SSL C-Library
WWW= https://www.wolfssl.com/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe libtool zip
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking \
--enable-certgen \
--enable-context-extra-user-data \
--enable-des3 \
--enable-dh \
--enable-dsa \
--enable-dtls \
--enable-ecc \
--enable-haproxy \
--enable-ipv6 \
--enable-keygen \
--enable-opensslall \
--enable-opensslextra \
--enable-quic \
--enable-ripemd \
--enable-sessioncerts \
--enable-sha512 \
--enable-shared \
--enable-sni \
--enable-ssh \
--enable-static \
--enable-tls13 \
--enable-tls13-draft18 \
--enable-keying-material \
--enable-all-asm
.if "${ARCH}" == "amd64"
CONFIGURE_ARGS+= --enable-aesni-with-avx
.endif
TEST_TARGET= check
CFLAGS+= -DWOLFSSL_ALT_NAMES -DWOLFSSL_GETRANDOM=1 -DWOLFSSL_TLS13_MIDDLEBOX_COMPAT
CFLAGS_i386= -DWOLFSSL_SHA224
CFLAGS_powerpc= -DWOLFSSL_SHA224
CFLAGS_powerpc64= -DWOLFSSL_SHA224
CFLAGS_powerpc64le= -DWOLFSSL_SHA224
OPTIONS_DEFINE= DEBUG DOCS
DEBUG_CONFIGURE_ON= --enable-debug
.include <bsd.port.options.mk>
.if "${ARCH}" == "i386" || ${ARCH:Marmv?} || ${ARCH:Mpowerpc*}
PLIST_SUB+= SP_H="@comment "
.else
PLIST_SUB+= SP_H=""
.endif
post-configure:
@${REINPLACE_CMD} \
-e 's|$${prefix}/cyassl/include|$${prefix}/include/cyassl|' \
-e 's|$${prefix}/cyassl/lib|$${prefix}/lib/cyassl|' \
-e '/^pkgconfigdir/s|(libdir)|&data|' \
${WRKSRC}/Makefile
post-install-DEBUG-off:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libwolfssl.so
.include <bsd.port.mk>
|