diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-03-30 20:56:01 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-03-30 20:56:01 +0000 |
commit | 68b8b224c10ad03ac60907f4e39a7e0286f6e5c4 (patch) | |
tree | e2023ee8d9b266f34872d6f7e17c3e014acff014 /security/nettle/Makefile | |
parent | c3e991bdb22722af0b3b8305e8754a246d7a5858 (diff) | |
download | ports-68b8b224c10ad03ac60907f4e39a7e0286f6e5c4.tar.gz ports-68b8b224c10ad03ac60907f4e39a7e0286f6e5c4.zip |
Build and install example applications
- Bump PORTREVISION for package change
Notes
Notes:
svn path=/head/; revision=569597
Diffstat (limited to 'security/nettle/Makefile')
-rw-r--r-- | security/nettle/Makefile | 9 |
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> |