2001-03-02 20:15:58 +01:00
|
|
|
# ex:ts=8
|
2002-08-20 07:03:18 +02:00
|
|
|
# New ports collection makefile for: botan
|
2001-03-02 20:15:58 +01:00
|
|
|
# Date created: Mar 3, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-08-20 07:03:18 +02:00
|
|
|
PORTNAME= botan
|
2010-11-04 02:03:29 +01:00
|
|
|
PORTVERSION= 1.8.11
|
2001-03-02 20:15:58 +01:00
|
|
|
CATEGORIES= security
|
2009-10-27 14:37:59 +01:00
|
|
|
MASTER_SITES= http://files.randombit.net/botan/v1.8/
|
2002-08-20 07:03:18 +02:00
|
|
|
DISTNAME= Botan-${PORTVERSION}
|
2005-02-17 08:43:43 +01:00
|
|
|
EXTRACT_SUFX= .tbz
|
2001-03-02 20:15:58 +01:00
|
|
|
|
2009-10-22 09:19:28 +02:00
|
|
|
MAINTAINER= lapo@lapo.it
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= A portable, easy to use, and efficient C++ crypto library
|
2001-03-02 20:15:58 +01:00
|
|
|
|
2010-07-24 07:55:26 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
LICENSE_FILE= ${WRKSRC}/doc/license.txt
|
|
|
|
|
2009-10-27 15:49:54 +01:00
|
|
|
OPTIONS= SSL "Enable OpenSSL engine" on \
|
|
|
|
GMP "Enable GMP engine" on \
|
|
|
|
ECC "Enable ECC support" on
|
2009-10-27 14:37:59 +01:00
|
|
|
|
2005-02-17 08:43:43 +01:00
|
|
|
USE_BZIP2= yes
|
2009-10-27 14:37:59 +01:00
|
|
|
USE_PYTHON_BUILD= yes
|
2001-03-02 20:15:58 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2009-10-27 14:37:59 +01:00
|
|
|
CONFIGURE_SCRIPT= configure.py
|
2009-10-27 15:49:54 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --with-tr1-implementation=boost \
|
|
|
|
--with-bzip2 --with-zlib
|
2001-03-02 20:15:58 +01:00
|
|
|
USE_GMAKE= yes
|
2009-10-27 14:37:59 +01:00
|
|
|
MAKE_ARGS= CXX="${CXX}" LIB_OPT="${CXXFLAGS}"
|
2006-08-14 06:09:27 +02:00
|
|
|
USE_LDCONFIG= yes
|
2010-11-04 02:03:29 +01:00
|
|
|
PLIST_FILES= bin/botan-config lib/libbotan.a lib/libbotan.so lib/libbotan.so.0 libdata/pkgconfig/botan-1.8.pc
|
2001-03-02 20:15:58 +01:00
|
|
|
|
2005-02-17 08:43:43 +01:00
|
|
|
PORTDOCS= *
|
2009-10-27 14:37:59 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2009-10-27 15:49:54 +01:00
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-openssl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_GMP)
|
2010-04-19 12:43:42 +02:00
|
|
|
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
|
2009-10-27 15:49:54 +01:00
|
|
|
CONFIGURE_ARGS+=--with-gnump
|
|
|
|
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
.endif
|
|
|
|
|
2009-10-27 14:37:59 +01:00
|
|
|
.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
|
2009-04-05 15:31:45 +02:00
|
|
|
.else
|
2009-10-27 14:37:59 +01:00
|
|
|
CONFIGURE_ARGS+=--with-tr1-implementation=none
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
post-patch:
|
2009-04-05 15:31:45 +02:00
|
|
|
${REINPLACE_CMD} -e '/$$(MKDIR_INSTALL) $$(DOCDIR)/d' \
|
|
|
|
-e '/$$(INSTALL_CMD_DATA) $$$$i $$(DOCDIR); /d' \
|
2009-10-27 14:37:59 +01:00
|
|
|
${WRKSRC}/src/build-data/makefile/unix_shr.in
|
2005-02-17 08:43:43 +01:00
|
|
|
.endif
|
|
|
|
|
2009-10-27 15:49:54 +01:00
|
|
|
post-install:
|
|
|
|
@(cd ${PREFIX}; ${FIND} -s include/botan -not -type d) >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} @dirrm include/botan >> ${TMPPLIST}
|
|
|
|
|
2008-10-06 07:22:26 +02:00
|
|
|
.include <bsd.port.mk>
|