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-35
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 |
|
|
|
24 |
GNU_CONFIGURE= yes |
23 |
CONFIGURE_ARGS= --enable-shared |
25 |
CONFIGURE_ARGS= --enable-shared |
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 |
|
|
34 |
# no EXAMPLES option on 11.x with base SSL since the examples require EV_MD_CTX_new() |
35 |
OPTIONS_EXCLUDE= ${${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base:?EXAMPLES:} |
36 |
EXAMPLES_USES= ssl |
37 |
EXAMPLES_CFLAGS= -I${OPENSSLINC} |
33 |
|
38 |
|
34 |
.include <bsd.port.options.mk> |
39 |
.include <bsd.port.options.mk> |
35 |
|
40 |
|
Lines 43-48
Link Here
|
43 |
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure |
48 |
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure |
44 |
.endif |
49 |
.endif |
45 |
|
50 |
|
|
|
51 |
post-patch-EXAMPLES-off: |
52 |
${REINPLACE_CMD} -e '/TARGETS.*=/ s|nettle-benchmark$$(EXEEXT)||' ${WRKSRC}/examples/Makefile.in |
53 |
|
46 |
post-install: |
54 |
post-install: |
47 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so |
55 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so |
48 |
|
56 |
|