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

PORTNAME=   pkcs11-helper
PORTVERSION=    1.09
CATEGORIES= security devel
MASTER_SITES=   http://www.opensc-project.org/files/${PORTNAME}/

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

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

USE_BZIP2=  yes
USE_OPENSSL=    yes
GNU_CONFIGURE=  yes
USE_GNOME=  gnomehack pkgconfig
USE_LDCONFIG=   yes

.if defined(.PARSEDIR)
USE_GMAKE=  yes
.endif

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

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

MAN8=       pkcs11-helper-1.8

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
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA|install-data-am:|' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} 's|install-data-am: install-man install-nodist_htmlDATA|install-data-am: install-man|' \
        ${WRKSRC}/man/Makefile.in
.endif

.include <bsd.port.mk>