Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= botan |
4 |
DISTVERSION= 2.3.0 |
5 |
CATEGORIES= security |
6 |
MASTER_SITES= http://botan.randombit.net/releases/ |
7 |
PKGNAMESUFFIX= 2 |
8 |
DISTNAME= Botan-${PORTVERSION} |
9 |
|
10 |
MAINTAINER= tremere@cainites.net |
11 |
COMMENT= Portable, easy to use, and efficient C++ crypto library |
12 |
|
13 |
LICENSE= BSD2CLAUSE |
14 |
LICENSE_FILE= ${WRKSRC}/license.txt |
15 |
|
16 |
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs |
17 |
|
18 |
OPTIONS_DEFINE= SQLITE3 SSL DOCS |
19 |
OPTIONS_DEFAULT= SSL |
20 |
|
21 |
USES= compiler:c++11-lang gmake python:build shebangfix tar:tgz |
22 |
HAS_CONFIGURE= yes |
23 |
CONFIGURE_SCRIPT= configure.py |
24 |
CONFIGURE_ARGS= --with-external-includedir=${PREFIX}/include \ |
25 |
--with-external-libdir=${PREFIX}/lib \ |
26 |
--with-boost --with-bzip2 --with-lzma --with-zlib |
27 |
LDFLAGS+= -pthread |
28 |
USE_LDCONFIG= yes |
29 |
PLIST_FILES= bin/botan lib/libbotan-2.a lib/libbotan-2.so \ |
30 |
lib/libbotan-2.so.3 lib/libbotan-2.so.3.3.0 \ |
31 |
%%PYTHON_SITELIBDIR%%/botan2.py libdata/pkgconfig/botan-2.pc |
32 |
SHEBANG_FILES= configure.py src/scripts/install.py |
33 |
|
34 |
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} |
35 |
PORTDOCS= * |
36 |
|
37 |
SQLITE3_USES= sqlite |
38 |
SQLITE3_CONFIGURE_WITH= sqlite3 |
39 |
|
40 |
SSL_USES= ssl |
41 |
SSL_CONFIGURE_WITH= openssl |
42 |
SSL_VARS= BROKEN_SSL= openssl-devel |
43 |
|
44 |
post-stage: |
45 |
.for i in bin/botan lib/libbotan-2.so.3.3.0 |
46 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${i} |
47 |
.endfor |
48 |
|
49 |
post-install: |
50 |
@(cd "${STAGEDIR}${PREFIX}"; ${FIND} -s include/botan-2 -not -type d) >> ${TMPPLIST} |
51 |
|
52 |
.include <bsd.port.mk> |