1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/security/opensc/Makefile
2013-04-23 14:20:25 +00:00

92 lines
2.2 KiB
Makefile

# Created by: Bruce M Simpson
# $FreeBSD$
PORTNAME= opensc
PORTVERSION= 0.13.0
CATEGORIES= security devel
MASTER_SITES= SF/${PORTNAME}/OpenSC/${DISTNAME}
MAINTAINER= ale@FreeBSD.org
COMMENT= Libraries and utilities to access smart cards
LICENSE= LGPL21
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND=PCSC OPENCT CTAPI
OPTIONS_DEFINE= SM DOCS
OPTIONS_DEFAULT=PCSC
PCSC_DESC= Use PC/SC backend
OPENCT_DESC= Use OpenCT backend
CTAPI_DESC= Use CT-API backend
SM_DESC= Enable secure messaging support
USES= pkgconfig
USE_OPENSSL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ENV= \
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl" \
XSLTPROC="${LOCALBASE}/bin/xsltproc"
CONFIGURE_ARGS= --with-xsl-stylesheetsdir=${LOCALBASE}/share/xsl/docbook
PORTDOCS= *
MANCOMPRESSED= no
MAN1= cardos-tool.1 cryptoflex-tool.1 eidenv.1 iasecc-tool.1 \
netkey-tool.1 openpgp-tool.1 \
opensc-explorer.1 opensc-tool.1 piv-tool.1 \
pkcs11-tool.1 pkcs15-crypt.1 pkcs15-init.1 pkcs15-tool.1 \
sc-hsm-tool.1 westcos-tool.1
MAN5= pkcs15-profile.5
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENCT}
LIB_DEPENDS+= openct:${PORTSDIR}/security/openct
CONFIGURE_ARGS+=--enable-openct
.endif
.if ${PORT_OPTIONS:MPCSC}
LIB_DEPENDS+= pcsclite:${PORTSDIR}/devel/pcsc-lite
.else
CONFIGURE_ARGS+=--disable-pcsc
.endif
.if ${PORT_OPTIONS:MCTAPI}
CONFIGURE_ARGS+=--enable-ctapi
.endif
.if ${PORT_OPTIONS:MSM}
CONFIGURE_ARGS+=--enable-sm
PLIST_SUB+= SM=""
.else
PLIST_SUB+= SM="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=--enable-doc
.endif
post-patch:
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
${WRKSRC}/configure
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA|install-data-am:|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} 's|install-data-am: install-htmlDATA install-man|install-data-am: install-man|' \
${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/tools/Makefile.in
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>