blob: d1912b8c184323eb4accac9fcc7f2a3047724dbc (
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
51
52
53
|
# New ports collection makefile for: libp11
# Date created: 1 Jun 2006
# Whom: Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libp11
PORTVERSION= 0.2.8
CATEGORIES= security devel
MASTER_SITES= http://www.opensc-project.org/files/${PORTNAME}/
MAINTAINER= ale@FreeBSD.org
COMMENT= A small layer on top of PKCS\#11 API
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
USE_AUTOTOOLS= libltdl libtool
USE_OPENSSL= yes
GNU_CONFIGURE= yes
USE_GNOME= pkgconfig ltverhack
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= *
.ifndef(NOPORTDOCS)
CONFIGURE_ARGS+=--enable-doc
.endif
post-patch:
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
${WRKSRC}/configure
.ifndef(NOPORTDOCS)
@${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am: install-dist_docDATA|' \
${WRKSRC}/doc/Makefile.in
.else
@${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA|install-data-am:|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am:|' \
${WRKSRC}/doc/Makefile.in
.endif
post-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.include <bsd.port.mk>
|