aboutsummaryrefslogtreecommitdiff
path: root/security/botan110
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2018-09-17 09:38:23 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2018-09-17 09:38:23 +0000
commit9eb30921776ce6ac75359d41fbe8eb6e235fe288 (patch)
tree4f40d2717cd0162beb404410635b2b13fa49b5bd /security/botan110
parente4b860a66ccd8727d8b91882dc25184f58b086dd (diff)
downloadports-9eb30921776ce6ac75359d41fbe8eb6e235fe288.tar.gz
ports-9eb30921776ce6ac75359d41fbe8eb6e235fe288.zip
- Switch to options helpers
- Update WWW - Pet portlint Approved by: portmgr blanket
Notes
Notes: svn path=/head/; revision=479922
Diffstat (limited to 'security/botan110')
-rw-r--r--security/botan110/Makefile41
-rw-r--r--security/botan110/pkg-descr2
2 files changed, 17 insertions, 26 deletions
diff --git a/security/botan110/Makefile b/security/botan110/Makefile
index ff15411a3e15..01f5dfc1bce0 100644
--- a/security/botan110/Makefile
+++ b/security/botan110/Makefile
@@ -12,12 +12,13 @@ DISTNAME= Botan-${PORTVERSION}
MAINTAINER= lapo@lapo.it
COMMENT= Portable, easy to use, and efficient C++ crypto library
-BROKEN_SSL= openssl-devel
-BROKEN_SSL_REASON_openssl-devel= error: variable has incomplete type 'EVP_MD_CTX' (aka 'struct evp_md_ctx_st')
-
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/doc/license.txt
+BROKEN_aarch64= Fails to configure: unknown or unidentifiable processor arm64
+BROKEN_SSL= openssl-devel
+BROKEN_SSL_REASON_openssl-devel= error: variable has incomplete type 'EVP_MD_CTX' (aka 'struct evp_md_ctx_st')
+
OPTIONS_DEFINE= SSL GMP DOCS
OPTIONS_DEFAULT= SSL GMP
@@ -34,32 +35,22 @@ PLIST_FILES= bin/botan-config-1.10 lib/libbotan-1.10.a lib/libbotan-1.10.so lib/
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= *
-BROKEN_aarch64= Fails to configure: unknown or unidentifiable processor arm64
-
-.include <bsd.port.options.mk>
+SSL_USES= ssl
+SSL_CONFIGURE_WITH= openssl
-.if ${PORT_OPTIONS:MSSL}
-USES+= ssl
-CONFIGURE_ARGS+=--with-openssl
-.endif
-
-.if ${PORT_OPTIONS:MGMP}
-USES+= localbase:ldflags
-LIB_DEPENDS+= libgmp.so:math/gmp
-CONFIGURE_ARGS+=--with-gnump
-.endif
-
-.include <bsd.port.pre.mk>
+GMP_USES= localbase:ldflags
+GMP_LIB_DEPENDS= libgmp.so:math/gmp
+GMP_CONFIGURE_WITH= gnump
post-patch:
- ${REINPLACE_CMD} -e "s|#!/usr/bin/env python|#!${PYTHON_CMD}|" \
- ${WRKSRC}/configure.py
-.if ! ${PORT_OPTIONS:MDOCS}
- ${REINPLACE_CMD} -e '/DOCDIR/d' \
- ${WRKSRC}/src/build-data/makefile/unix_shr.in
-.endif
+ @${REINPLACE_CMD} -e "s|#!/usr/bin/env python|#!${PYTHON_CMD}|" \
+ ${WRKSRC}/configure.py
+
+post-patch-DOCS-off:
+ @${REINPLACE_CMD} -e '/DOCDIR/d' \
+ ${WRKSRC}/src/build-data/makefile/unix_shr.in
post-install:
@(cd "${STAGEDIR}${PREFIX}"; ${FIND} -s include/botan-1.10 -not -type d) >> ${TMPPLIST}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/botan110/pkg-descr b/security/botan110/pkg-descr
index d4436e230a7a..e9c30d31e055 100644
--- a/security/botan110/pkg-descr
+++ b/security/botan110/pkg-descr
@@ -11,4 +11,4 @@ hashing and multiple precision integer operations.
Botan is licensed under the same permissive terms as FreeBSD itself.
-WWW: http://botan.randombit.net/
+WWW: https://botan.randombit.net/