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

PORTNAME=   libp11
PORTVERSION=    0.2.8
PORTREVISION=   2
CATEGORIES= security devel
MASTER_SITES=   SF/opensc/${PORTNAME}

MAINTAINER= ale@FreeBSD.org
COMMENT=    Small layer on top of PKCS\#11 API

LICENSE=    LGPL21

LIB_DEPENDS=    libltdl.so:devel/libltdl

OPTIONS_DEFINE= DOCS EXAMPLES

USE_OPENSSL=    yes
GNU_CONFIGURE=  yes
USES=       libtool pkgconfig
USE_LDCONFIG=   yes

CONFIGURE_ENV=  LTLIB_CFLAGS="-I${LOCALBASE}/include" \
        LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \
        OPENSSL_CFLAGS="-I${OPENSSLINC}" \
        OPENSSL_LIBS="-L${OPENSSLLIB} -lssl"

PORTDOCS=   *

DOCS_CONFIGURE_ON=  --enable-doc

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

post-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>