aboutsummaryrefslogtreecommitdiffstats
path: root/security/pkcs11-helper/Makefile
blob: ab3e7a1c79a4e139365bb65dc89a5c710df5cf78 (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
# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$

PORTNAME=   pkcs11-helper
PORTVERSION=    1.11
PORTREVISION=   2
CATEGORIES= security devel
MASTER_SITES=   SF/opensc/pkcs11-helper/

MAINTAINER= ale@FreeBSD.org
COMMENT=    Helper library for multiple PKCS\#11 providers

LICENSE=    BSD3CLAUSE GPLv2
LICENSE_COMB=   dual
LICENSE_FILE=   ${WRKSRC}/COPYING
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/COPYING.BSD
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING.GPL

USE_OPENSSL=    yes
GNU_CONFIGURE=  yes
USES=       libtool:keepla pathfix pkgconfig tar:bzip2
USE_LDCONFIG=   yes

CONFIGURE_ENV=  OPENSSL_CFLAGS="-I${OPENSSLINC}" \
        OPENSSL_LIBS="-L${OPENSSLLIB} -lssl"

CONFIGURE_ARGS= --disable-crypto-engine-gnutls \
        --disable-crypto-engine-nss

OPTIONS_DEFINE= DOCS

PORTDOCS=   *

post-patch:
    @${REINPLACE_CMD} 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} 's|install-data-am: install-apidocDATA|install-data-am:|' \
        ${WRKSRC}/doc/api/Makefile.in

.include <bsd.port.mk>