|
Lines 2-11
Link Here
|
| 2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= libp11 |
4 |
PORTNAME= libp11 |
| 5 |
PORTVERSION= 0.2.8 |
5 |
PORTVERSION= 0.3.0 |
| 6 |
PORTREVISION= 2 |
|
|
| 7 |
CATEGORIES= security devel |
6 |
CATEGORIES= security devel |
| 8 |
MASTER_SITES= SF/opensc/${PORTNAME} |
7 |
MASTER_SITES= https://github.com/OpenSC/${PORTNAME}/archive/ |
| 9 |
|
8 |
|
| 10 |
MAINTAINER= ale@FreeBSD.org |
9 |
MAINTAINER= ale@FreeBSD.org |
| 11 |
COMMENT= Small layer on top of PKCS\#11 API |
10 |
COMMENT= Small layer on top of PKCS\#11 API |
|
Lines 18-43
Link Here
|
| 18 |
|
17 |
|
| 19 |
USE_OPENSSL= yes |
18 |
USE_OPENSSL= yes |
| 20 |
GNU_CONFIGURE= yes |
19 |
GNU_CONFIGURE= yes |
| 21 |
USES= libtool pkgconfig |
20 |
USES= autoreconf libtool pkgconfig |
| 22 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
|
|
22 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-${PORTVERSION} |
| 23 |
|
23 |
|
| 24 |
CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \ |
24 |
CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \ |
| 25 |
LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \ |
25 |
LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \ |
| 26 |
OPENSSL_CFLAGS="-I${OPENSSLINC}" \ |
26 |
OPENSSL_CFLAGS="-I${OPENSSLINC}" \ |
| 27 |
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl" |
27 |
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" |
| 28 |
|
28 |
|
| 29 |
PORTDOCS= * |
29 |
PORTDOCS= * |
| 30 |
|
30 |
|
| 31 |
DOCS_CONFIGURE_ON= --enable-doc |
31 |
post-configure: |
| 32 |
|
|
|
| 33 |
post-patch: |
| 34 |
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \ |
| 35 |
${WRKSRC}/configure |
| 36 |
@${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am: install-dist_docDATA|' \ |
32 |
@${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am: install-dist_docDATA|' \ |
| 37 |
${WRKSRC}/doc/Makefile.in |
33 |
${WRKSRC}/doc/Makefile |
| 38 |
|
34 |
|
| 39 |
post-install-EXAMPLES-on: |
35 |
post-install-EXAMPLES-on: |
| 40 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
36 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
| 41 |
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} |
37 |
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${STAGEDIR}${EXAMPLESDIR} |
|
|
38 |
${INSTALL_DATA} ${WRKSRC}/examples/Makefile ${STAGEDIR}${EXAMPLESDIR} |
| 39 |
${INSTALL_DATA} ${WRKSRC}/examples/README ${STAGEDIR}${EXAMPLESDIR} |
| 42 |
|
40 |
|
| 43 |
.include <bsd.port.mk> |
41 |
.include <bsd.port.mk> |