Changeset View
Changeset View
Standalone View
Standalone View
security/botan2/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= botan | PORTNAME= botan | ||||
DISTVERSION= 2.7.0 | DISTVERSION= 2.8.0 | ||||
CATEGORIES= security | CATEGORIES= security | ||||
MASTER_SITES= http://botan.randombit.net/releases/ | MASTER_SITES= http://botan.randombit.net/releases/ | ||||
PKGNAMESUFFIX= 2 | PKGNAMESUFFIX= 2 | ||||
DISTNAME= Botan-${PORTVERSION} | DISTNAME= Botan-${PORTVERSION} | ||||
MAINTAINER= tremere@cainites.net | MAINTAINER= tremere@cainites.net | ||||
COMMENT= Portable, easy to use and efficient C++ crypto library | COMMENT= Portable, easy to use and efficient C++ crypto library | ||||
LICENSE= BSD2CLAUSE | LICENSE= BSD2CLAUSE | ||||
LICENSE_FILE= ${WRKSRC}/license.txt | LICENSE_FILE= ${WRKSRC}/license.txt | ||||
BROKEN_armv6= include/arm_neon.h:28:2: error: "NEON support not enabled" | BROKEN_armv6= include/arm_neon.h:28:2: error: "NEON support not enabled" | ||||
BROKEN_armv7= fails to package: pkg-static: Unable to access file stage/usr/local/include/botan-2/botan/rdrand_rng.h:No such file or directory | BROKEN_armv7= fails to package: pkg-static: Unable to access file stage/usr/local/include/botan-2/botan/rdrand_rng.h:No such file or directory | ||||
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs | LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs | ||||
OPTIONS_DEFINE= SQLITE3 SSL DOCS | |||||
OPTIONS_DEFAULT= SSL | |||||
OPTIONS_SUB= yes | |||||
USES= compiler:c++11-lang gmake python:build shebangfix tar:tgz | USES= compiler:c++11-lang gmake python:build shebangfix tar:tgz | ||||
SHEBANG_FILES= configure.py src/scripts/install.py | |||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CONFIGURE_SCRIPT= configure.py | CONFIGURE_SCRIPT= configure.py | ||||
CONFIGURE_ARGS= --with-external-includedir=${PREFIX}/include \ | CONFIGURE_ARGS= --with-external-includedir=${PREFIX}/include \ | ||||
--with-external-libdir=${PREFIX}/lib \ | --with-external-libdir=${PREFIX}/lib \ | ||||
--with-boost --with-bzip2 --with-lzma --with-zlib | --with-boost --with-bzip2 --with-lzma --with-zlib | ||||
LDFLAGS+= -pthread | LDFLAGS+= -pthread | ||||
SHEBANG_FILES= configure.py src/scripts/install.py | |||||
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} | DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} | ||||
PORTDOCS= * | PORTDOCS= * | ||||
OPTIONS_DEFINE= DOCS SQLITE3 SSL | |||||
OPTIONS_DEFAULT= SSL | |||||
OPTIONS_SUB= yes | |||||
SQLITE3_USES= sqlite | SQLITE3_USES= sqlite | ||||
SQLITE3_CONFIGURE_WITH= sqlite3 | SQLITE3_CONFIGURE_WITH= sqlite3 | ||||
SSL_USES= ssl | SSL_USES= ssl | ||||
SSL_CONFIGURE_WITH= openssl | SSL_CONFIGURE_WITH= openssl | ||||
SSL_VARS= BROKEN_SSL= openssl-devel | SSL_VARS= BROKEN_SSL= openssl-devel | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${ARCH} == aarch64 | .if ${ARCH} == aarch64 | ||||
CONFIGURE_ARGS+= --cc-abi="-march=armv8-a+crypto" | CONFIGURE_ARGS+= --cc-abi="-march=armv8-a+crypto" | ||||
.endif | .endif | ||||
.if ${ARCH} == i386 || ${ARCH} == amd64 | .if ${ARCH} == i386 || ${ARCH} == amd64 | ||||
PLIST_SUB+= HAS_RDRAND_RNG="" | PLIST_SUB+= HAS_RDRAND_RNG="" | ||||
.else | .else | ||||
PLIST_SUB+= HAS_RDRAND_RNG="@comment " | PLIST_SUB+= HAS_RDRAND_RNG="@comment " | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|^optimization_flags .*|optimization_flags "${CXXFLAGS}"|' \ | @${REINPLACE_CMD} -e 's|^optimization_flags .*|optimization_flags "${CXXFLAGS}"|' \ | ||||
${WRKSRC}/src/build-data/cc/clang.txt | ${WRKSRC}/src/build-data/cc/clang.txt | ||||
post-install: | post-install: | ||||
.for i in bin/botan lib/libbotan-2.so.7.7.0 | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/botan ${STAGEDIR}${PREFIX}/lib/libbotan-2.so.8.8.0 | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${i} | |||||
.endfor | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |