1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/devel/pcsc-lite/Makefile
Mateusz Piotrowski b46ca01590 devel/pcsc-lite: Clean up & update MASTER_SITES.
- Update MASTER_SITES, upstream moved to https://pcsclite.apdu.fr
- Update WWW
- Improve COMMENT
- Add GPLv3+ to LICENSE as it is mentioned in the license file
- Pet portlint:
  - Sort variables (clean up the USE* section)
- Make pkg-message more readable

Reviewed by:	krion, mmokhi
Approved by:	krion (mentor), mmokhi (maintainer)
Differential Revision:	https://reviews.freebsd.org/D17480
2018-10-11 10:22:46 +00:00

59 lines
1.8 KiB
Makefile

# Created by: Toni Andjelkovic <toni@soth.at>
# $FreeBSD$
PORTNAME= pcsc-lite
PORTVERSION= 1.8.23
PORTEPOCH= 2
CATEGORIES= devel security
MASTER_SITES= https://pcsclite.apdu.fr/files/
MAINTAINER= mmokhi@FreeBSD.org
COMMENT= Middleware library to access a smart card using SCard API (PC/SC)
LICENSE= BSD3CLAUSE GPLv3+
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool pathfix perl5 pkgconfig python:2.7,build shebangfix tar:bzip2
USE_LDCONFIG= yes
USE_PERL5= build
USE_RC_SUBR= pcscd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-libsystemd \
--enable-usbdropdir=${PREFIX}/lib/pcsc/drivers/
INSTALL_TARGET= install-strip
SHEBANG_FILES= src/spy/pcsc-spy
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>