aboutsummaryrefslogtreecommitdiffstats
path: root/security/nettle/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/nettle/Makefile')
-rw-r--r--security/nettle/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/security/nettle/Makefile b/security/nettle/Makefile
index 10764107b1d3..98ba631471b8 100644
--- a/security/nettle/Makefile
+++ b/security/nettle/Makefile
@@ -3,6 +3,7 @@
PORTNAME= nettle
PORTVERSION= 3.7.2
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= GNU \
https://www.lysator.liu.se/~nisse/archive/
@@ -30,6 +31,9 @@ INFO= nettle
OPTIONS_DEFINE= DOCS EXAMPLES
+EXAMPLES_CFLAGS= -I${OPENSSLINC}
+EXAMPLES_USES= ssl
+
.include <bsd.port.options.mk>
.if ${ARCH} == "sparc64"
@@ -37,12 +41,14 @@ CONFIGURE_ENV+= CCPIC=-fPIC
.endif
post-patch:
- @${REINPLACE_CMD} -e '/SUBDIRS = / s| examples||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/libdir=/ s|lib32|lib|' ${WRKSRC}/configure
.if ${ARCH} == "mips64"
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure
.endif
+post-patch-EXAMPLES-off:
+ @${REINPLACE_CMD} -e '/SUBDIRS = / s| examples||' ${WRKSRC}/Makefile.in
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
@@ -52,6 +58,7 @@ post-install-DOCS-on:
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/examples && ${INSTALL_PROGRAM} base16dec base16enc base64dec base64enc ecc-benchmark hogweed-benchmark nettle-benchmark random-prime rsa-decrypt rsa-encrypt rsa-keygen rsa-sign rsa-verify ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.[ch] ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>