Changes: http://www.boost.org/users/history/version_1_70_0.html PR: 235956 Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D19303
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= botan
|
|
DISTVERSION= 2.10.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://botan.randombit.net/releases/
|
|
PKGNAMESUFFIX= 2
|
|
DISTNAME= Botan-${PORTVERSION}
|
|
|
|
MAINTAINER= tremere@cainites.net
|
|
COMMENT= Portable, easy to use and efficient C++ crypto library
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
BROKEN_armv6= include/arm_neon.h:28:2: error: "NEON support not enabled"
|
|
|
|
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs
|
|
|
|
USES= compiler:c++11-lang gmake python:build shebangfix tar:tgz
|
|
SHEBANG_FILES= configure.py src/scripts/install.py
|
|
HAS_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_SCRIPT= configure.py
|
|
CONFIGURE_ARGS= --with-external-includedir=${PREFIX}/include \
|
|
--with-external-libdir=${PREFIX}/lib \
|
|
--with-boost --with-bzip2 --with-lzma --with-zlib \
|
|
--cc=${COMPILER_TYPE}
|
|
LDFLAGS+= -pthread
|
|
|
|
SHLIBVER= ${DISTVERSION:S/./ /g:[2]}
|
|
PLIST_SUB= SHLIBVER=${SHLIBVER}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS SQLITE3 SSL
|
|
OPTIONS_DEFAULT= SSL
|
|
OPTIONS_SUB= yes
|
|
|
|
SQLITE3_USES= sqlite
|
|
SQLITE3_CONFIGURE_WITH= sqlite3
|
|
|
|
SSL_USES= ssl
|
|
SSL_CONFIGURE_WITH= openssl
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == aarch64
|
|
CONFIGURE_ARGS+= --cc-abi="-march=armv8-a+crypto"
|
|
.endif
|
|
|
|
.if ${ARCH} == i386 || ${ARCH} == amd64
|
|
PLIST_SUB+= HAS_RDRAND_RNG=""
|
|
.else
|
|
PLIST_SUB+= HAS_RDRAND_RNG="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^optimization_flags .*|optimization_flags "${CXXFLAGS}"|' \
|
|
${WRKSRC}/src/build-data/cc/clang.txt
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/botan ${STAGEDIR}${PREFIX}/lib/libbotan-2.so.${SHLIBVER}.${SHLIBVER}.0
|
|
|
|
.include <bsd.port.mk>
|