Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= nettle |
4 |
PORTNAME= nettle |
5 |
PORTVERSION= 3.6 |
5 |
PORTVERSION= 3.7.2 |
6 |
CATEGORIES= security |
6 |
CATEGORIES= security |
7 |
MASTER_SITES= GNU \ |
7 |
MASTER_SITES= GNU \ |
8 |
https://www.lysator.liu.se/~nisse/archive/ |
8 |
https://www.lysator.liu.se/~nisse/archive/ |
Lines 19-38
Link Here
|
19 |
LIB_DEPENDS= libgmp.so:math/gmp |
19 |
LIB_DEPENDS= libgmp.so:math/gmp |
20 |
|
20 |
|
21 |
USES= compiler:c11 gmake localbase makeinfo pathfix |
21 |
USES= compiler:c11 gmake localbase makeinfo pathfix |
|
|
22 |
USE_LDCONFIG= yes |
22 |
|
23 |
|
23 |
CONFIGURE_ARGS= --enable-shared |
24 |
GNU_CONFIGURE= yes |
|
|
25 |
CONFIGURE_ARGS= --enable-shared --disable-static |
24 |
CONFIGURE_ENV= M4="/usr/bin/m4 -g" |
26 |
CONFIGURE_ENV= M4="/usr/bin/m4 -g" |
25 |
GNU_CONFIGURE= yes |
27 |
TEST_TARGET= check |
26 |
USE_LDCONFIG= yes |
|
|
27 |
|
28 |
|
28 |
INFO= nettle |
29 |
INFO= nettle |
29 |
PORTDOCS= NEWS README nettle.html nettle.pdf |
30 |
PORTDOCS= NEWS README nettle.html nettle.pdf |
30 |
PORTEXAMPLES= *.c *.h |
31 |
PORTEXAMPLES= *.c *.h |
31 |
|
32 |
|
32 |
OPTIONS_DEFINE= DOCS EXAMPLES |
33 |
OPTIONS_DEFINE= DOCS EXAMPLES OPENSSL |
33 |
|
34 |
|
|
|
35 |
OPENSSL_DESC= Build OpenSSL-based EXAMPLES. |
36 |
OPENSSL_IMPLIES= EXAMPLES |
37 |
OPENSSL_USES= ssl |
38 |
OPENSSL_CONFIGURE_ENABLE= openssl |
39 |
OPENSSL_CFLAGS= -I${OPENSSLINC} |
40 |
|
34 |
.include <bsd.port.options.mk> |
41 |
.include <bsd.port.options.mk> |
35 |
|
42 |
|
|
|
43 |
.if ${PORT_OPTIONS:MOPENSSL} && ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 |
44 |
# FreeBSD 11's base OpenSSL, 1.0.2, is too old for nettle 3.7's examples, |
45 |
# they need OpenSSL >= 1.1.0 |
46 |
BROKEN_SSL= base |
47 |
.endif |
48 |
|
36 |
.if ${ARCH} == "sparc64" |
49 |
.if ${ARCH} == "sparc64" |
37 |
CONFIGURE_ENV+= CCPIC=-fPIC |
50 |
CONFIGURE_ENV+= CCPIC=-fPIC |
38 |
.endif |
51 |
.endif |
Lines 43-48
Link Here
|
43 |
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure |
56 |
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure |
44 |
.endif |
57 |
.endif |
45 |
|
58 |
|
|
|
59 |
post-patch-EXAMPLES-off: |
60 |
${REINPLACE_CMD} -e '/TARGETS.*=/ s|nettle-benchmark$$(EXEEXT)||' ${WRKSRC}/examples/Makefile.in |
61 |
|
46 |
post-install: |
62 |
post-install: |
47 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so |
63 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so |
48 |
|
64 |
|