freebsd-ports/devel/pcsc-lite/Makefile
Mahdi Mokhtari 7dd2e85738 devel/pcsc-lite: Update pcsc-lite to 1.8.22
This update includes:
    -Bugfix: SCardCancel() was broken in 1.8.21.
        The call was bloking and shouldnt be.
    -Feature: Enable use of info level logging for pcscd using -i/--info

Reviewed by:	mat (mentor)
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D11335
2017-07-03 13:42:50 +00:00

56 lines
1.7 KiB
Makefile

# Created by: Toni Andjelkovic <toni@soth.at>
# $FreeBSD$
PORTNAME= pcsc-lite
PORTVERSION= 1.8.22
PORTEPOCH= 2
CATEGORIES= devel security
MASTER_SITES= https://alioth.debian.org/frs/download.php/latestfile/39/
MAINTAINER= mmokhi@FreeBSD.org
COMMENT= Smartcard development library
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USES= libtool pathfix perl5 pkgconfig python:2.7,build shebangfix tar:bzip2
USE_PERL5= build
USE_RC_SUBR= pcscd
SHEBANG_FILES= src/spy/pcsc-spy
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-usbdropdir=${PREFIX}/lib/pcsc/drivers/
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_GROUP= FEATURES
OPTIONS_GROUP_FEATURES= FILTER
FEATURES_DESC= Default features knobs
FILTER_DESC= Control (Ignore or Extend) reader names reported by PCSC
FILTER_CONFIGURE_ENABLE= filter
post-patch:
${REINPLACE_CMD} -e "s,^datadir,#datadir,; s,^data_DATA,#data_DATA," \
${WRKSRC}/doc/Makefile.in
${REINPLACE_CMD} -e "s,libusb-1.0/libusb.h,libusb.h,; \
s,libusb_strerror(ret),ret," ${WRKSRC}/configure \
${WRKSRC}/src/hotplug_libusb.c
${REINPLACE_CMD} -e "s,-ldl,," ${WRKSRC}/src/spy/Makefile.in
post-patch-DOCS-off:
${REINPLACE_CMD} -e '/^install-data-am: / s|install-docDATA||' ${WRKSRC}/doc/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/pcsc/drivers
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/pcsc/services
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/example/Makefile.am ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/example/Makefile.in ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/example/pcsc_demo.c ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>