Tweak security/softhsm2 version 2.1.0
[dports.git] / security / softhsm2 / Makefile
1 # Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
2 # $FreeBSD$
3
4 PORTNAME=       softhsm
5 PORTVERSION=    2.1.0
6 CATEGORIES=     security
7 MASTER_SITES=   http://dist.opendnssec.org/source/ \
8                 http://dist.opendnssec.org/source/testing/
9 PKGNAMESUFFIX=  2
10
11 MAINTAINER=     jaap@NLnetLabs.nl
12 COMMENT=        Software implementation of a Hardware Security Module (HSM)
13
14 LICENSE=        BSD2CLAUSE
15
16 LIB_DEPENDS=    libsqlite3.so:databases/sqlite3
17
18 GNU_CONFIGURE=  yes
19 CONFIGURE_ARGS= --with-sqlite3=${LOCALBASE} --localstatedir="${PREFIX}/var"
20 INSTALL_TARGET= install-strip
21 USES=           libtool sqlite
22
23 CONFLICTS=      softhsm-1.*
24
25 USE_LDCONFIG=   yes
26
27 OPTIONS_SINGLE=         CRYP
28 OPTIONS_SINGLE_CRYP=    CRYP_OPEN CRYP_BOTAN
29
30 CRYP_OPEN_DESC=         Build with OpenSSL crypto library
31 CRYP_BOTAN_DESC=        Build with Botan crypto library
32
33 OPTIONS_DEFAULT=        CRYP_OPEN
34
35 CRYP_BOTAN_CONFIGURE_ON=        --with-crypto-backend=botan
36 CRYP_BOTAN_LIB_DEPENDS= libbotan-1.10.so:security/botan110
37 CRYP_OPEN_USE=          openssl=yes
38 CRYP_OPEN_VARS=         WITH_OPENSSL_PORT=yes
39 CRYP_OPEN_CONFIGURE_ON= --with-crypto-backend=openssl
40
41 .if defined(OPENSSL_PORT) && ${OPENSSL_PORT} == security/libressl
42 CONFIGURE_ARGS+=        --disable-gost
43 .endif
44
45 .include <bsd.port.mk>