2020-05-06 16:04:05 +02:00
|
|
|
# $NetBSD: Makefile,v 1.36 2020/05/06 14:04:12 adam Exp $
|
2014-02-24 21:49:14 +01:00
|
|
|
|
2019-07-15 20:31:29 +02:00
|
|
|
DISTNAME= Botan-2.11.0
|
2014-02-24 21:49:14 +01:00
|
|
|
PKGNAME= ${DISTNAME:tl}
|
2020-05-06 16:04:05 +02:00
|
|
|
PKGREVISION= 3
|
2014-02-24 21:49:14 +01:00
|
|
|
CATEGORIES= security
|
2017-11-26 11:40:05 +01:00
|
|
|
MASTER_SITES= https://botan.randombit.net/releases/
|
2019-07-15 20:31:29 +02:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
2014-02-24 21:49:14 +01:00
|
|
|
|
2016-11-11 20:46:05 +01:00
|
|
|
MAINTAINER= joerg@NetBSD.org
|
2017-11-26 11:40:05 +01:00
|
|
|
HOMEPAGE= https://botan.randombit.net/
|
2014-02-24 21:49:14 +01:00
|
|
|
COMMENT= Portable, easy to use, and efficient C++ crypto library
|
|
|
|
LICENSE= 2-clause-bsd
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_LANGUAGES= c++
|
|
|
|
|
|
|
|
PYTHON_FOR_BUILD_ONLY= yes
|
|
|
|
|
|
|
|
CONFIG_SHELL= ${PYTHONBIN}
|
|
|
|
CONFIGURE_SCRIPT= ./configure.py
|
2019-07-15 20:31:29 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} --with-zlib --with-boost
|
2018-09-04 02:02:02 +02:00
|
|
|
CONFIGURE_ARGS+= --docdir=share/doc
|
2019-12-22 23:33:15 +01:00
|
|
|
CONFIGURE_ARGS+= --without-sphinx
|
2014-02-24 21:49:14 +01:00
|
|
|
|
2015-05-20 23:57:10 +02:00
|
|
|
REPLACE_PYTHON+= *.py src/scripts/*.py
|
|
|
|
|
2014-03-05 22:22:38 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
|
|
CONFIGURE_ARGS+= --cc-bin=${CXX} --cc=clang
|
2019-07-15 20:31:29 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --cc=gcc
|
2014-03-05 22:22:38 +01:00
|
|
|
.endif
|
|
|
|
|
2016-11-23 14:01:54 +01:00
|
|
|
.if ${MACHINE_ARCH} == "x86_64"
|
|
|
|
CONFIGURE_ARGS+= --cpu=amd64
|
|
|
|
.elif ${MACHINE_ARCH} == "i386"
|
|
|
|
CONFIGURE_ARGS+= --cpu=i386
|
|
|
|
.elif ${MACHINE_ARCH} == "powerpc"
|
|
|
|
CONFIGURE_ARGS+= --cpu=ppc
|
|
|
|
.elif ${MACHINE_ARCH} == "powerpc64"
|
|
|
|
CONFIGURE_ARGS+= --cpu=ppc64
|
|
|
|
.elif ${MACHINE_ARCH} == "arm"
|
|
|
|
CONFIGURE_ARGS+= --cpu=arm
|
|
|
|
.endif
|
|
|
|
|
2014-02-24 21:49:14 +01:00
|
|
|
MAKE_FLAGS+= LIB_OPT=${CXXFLAGS:Q}
|
|
|
|
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
|
Update to Botan 1.11.16:
- Switch to using IETF ALPN extension for negotiating application-level
protocols for TLS in place of NPN extension.
- Optimizations for ECDSA
- Allow using OpenSSL's RSA implementation
- RC4 is deprecated and will be removed in the future
- Removed global state like the global PRNG.
- Cleaner registration for algorithm etc, potentially requires changes
for statically linked programs.
- Simple C binding for common operations
- Optimized reductors for P-192, P-224, P-256, P-384, P-521
- Experimental OCB support for TLS
- Reduced memory footprint of CTR
- botan-config has been merged into botan
- Removal of SSLv3 support
- MCEIES, DTLS-STRP, SipHash, Curve25519, Poly1305, ChaCha20Poly1305
supported
- Changed format of serialized TLS sessions
- TLS heartbeat messages support user-defined size of padding for PMTU
discovery
- RFC 6979 support for deterministic nouns and signatures with DSA and ECDSA
- Support for TLS fallback signaling
2015-05-14 20:39:24 +02:00
|
|
|
PY_PATCHPLIST= yes
|
|
|
|
|
2018-02-02 14:56:35 +01:00
|
|
|
LDFLAGS.SunOS+= -lnsl -lsocket
|
2015-09-13 04:31:22 +02:00
|
|
|
|
2014-02-24 21:49:14 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../devel/boost-libs/buildlink3.mk"
|
|
|
|
.include "../../lang/python/application.mk"
|
Update to Botan 1.11.16:
- Switch to using IETF ALPN extension for negotiating application-level
protocols for TLS in place of NPN extension.
- Optimizations for ECDSA
- Allow using OpenSSL's RSA implementation
- RC4 is deprecated and will be removed in the future
- Removed global state like the global PRNG.
- Cleaner registration for algorithm etc, potentially requires changes
for statically linked programs.
- Simple C binding for common operations
- Optimized reductors for P-192, P-224, P-256, P-384, P-521
- Experimental OCB support for TLS
- Reduced memory footprint of CTR
- botan-config has been merged into botan
- Removal of SSLv3 support
- MCEIES, DTLS-STRP, SipHash, Curve25519, Poly1305, ChaCha20Poly1305
supported
- Changed format of serialized TLS sessions
- TLS heartbeat messages support user-defined size of padding for PMTU
discovery
- RFC 6979 support for deterministic nouns and signatures with DSA and ECDSA
- Support for TLS fallback signaling
2015-05-14 20:39:24 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
2014-02-24 21:49:14 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|