blob: d0eaff6472dcf3a0d6cd305c9897b2e022f85b00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# ex:ts=8
# New ports collection makefile for: botan
# Date created: Mar 3, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= botan
PORTVERSION= 1.8.8
PORTREVISION= 1
CATEGORIES= security
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= SSL "Enable OpenSSL engine" on \
GMP "Enable GMP engine" on \
ECC "Enable ECC support" on
USE_BZIP2= yes
USE_PYTHON_BUILD= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure.py
CONFIGURE_ARGS= --prefix=${PREFIX} --with-tr1-implementation=boost \
--with-bzip2 --with-zlib
USE_GMAKE= yes
MAKE_ARGS= CXX="${CXX}" LIB_OPT="${CXXFLAGS}"
USE_LDCONFIG= yes
PORTDOCS= *
.include <bsd.port.options.mk>
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-openssl
.endif
.if !defined(WITHOUT_GMP)
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
CONFIGURE_ARGS+=--with-gnump
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib"
.endif
.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
.else
CONFIGURE_ARGS+=--with-tr1-implementation=none
.endif
.if defined(NOPORTDOCS)
post-patch:
${REINPLACE_CMD} -e '/$$(MKDIR_INSTALL) $$(DOCDIR)/d' \
-e '/$$(INSTALL_CMD_DATA) $$$$i $$(DOCDIR); /d' \
${WRKSRC}/src/build-data/makefile/unix_shr.in
.endif
post-install:
@(cd ${PREFIX}; ${FIND} -s include/botan -not -type d) >> ${TMPPLIST}
@${ECHO_CMD} @dirrm include/botan >> ${TMPPLIST}
.include <bsd.port.mk>
|