diff options
Diffstat (limited to 'security/botan/Makefile')
-rw-r--r-- | security/botan/Makefile | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/security/botan/Makefile b/security/botan/Makefile index a8b3bb3e71e6..05000001a4cf 100644 --- a/security/botan/Makefile +++ b/security/botan/Makefile @@ -7,35 +7,47 @@ # PORTNAME= botan -PORTVERSION= 1.6.5 +PORTVERSION= 1.8.7 CATEGORIES= security -MASTER_SITES= http://files.randombit.net/botan/v1.6/ +MASTER_SITES= http://files.randombit.net/botan/v1.8/ DISTNAME= Botan-${PORTVERSION} EXTRACT_SUFX= .tbz MAINTAINER= lapo@lapo.it COMMENT= A portable, easy to use, and efficient C++ crypto library +OPTIONS= ECC "Enable ECC support" on + USE_BZIP2= yes -USE_PERL5= yes +USE_PYTHON_BUILD= yes HAS_CONFIGURE= yes -CONFIGURE_SCRIPT= configure.pl -CONFIGURE_ARGS= --prefix=${PREFIX} gcc-freebsd-generic +CONFIGURE_SCRIPT= configure.py +CONFIGURE_ARGS= --prefix=${PREFIX} --with-tr1-implementation=boost USE_GMAKE= yes -MAKE_ARGS= CXX="${CXX}" LIB_OPT="${CXXFLAGS}" \ - LANG_FLAGS="-fpermissive" +MAKE_ARGS= CXX="${CXX}" LIB_OPT="${CXXFLAGS}" USE_LDCONFIG= yes -PLIST_SUB= PORTVERSION=${PORTVERSION} +PLIST_SUB= SOVERSION=1.8.2 -.if !defined(NOPORTDOCS) -DOCSDIR= ${PREFIX}/share/doc/Botan-${PORTVERSION} PORTDOCS= * + +.include <bsd.port.options.mk> + +.if !defined(WITHOUT_ECC) +BUILD_DEPENDS+= ${LOCALBASE}/include/boost/tr1/memory.hpp:${PORTSDIR}/devel/boost-libs +CONFIGURE_ARGS+=--with-tr1-implementation=boost +CXXFLAGS+= -I${LOCALBASE}/include +PLIST_SUB+= ECC="" .else -post-configure: +CONFIGURE_ARGS+=--with-tr1-implementation=none +PLIST_SUB+= ECC="@comment " +.endif + +.if defined(NOPORTDOCS) +post-patch: ${REINPLACE_CMD} -e '/$$(MKDIR_INSTALL) $$(DOCDIR)/d' \ -e '/$$(INSTALL_CMD_DATA) $$$$i $$(DOCDIR); /d' \ - ${WRKSRC}/Makefile + ${WRKSRC}/src/build-data/makefile/unix_shr.in .endif .include <bsd.port.mk> |