devel/libccid: Update to 1.6.1

Extract the common variable between this port and pcsc-lite into a separate
include.

Sponsored by:	Serenity Cybersecurity, LLC
Co-authored-by:	Gleb Popov <arrowd@FreeBSD.org>
Differential Revision:	https://reviews.freebsd.org/D45456
This commit is contained in:
Marcin Cieślak 2024-08-14 15:00:31 +03:00 committed by Gleb Popov
parent 881c22fa82
commit fc94b4e3dd
4 changed files with 23 additions and 17 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= ccid
PORTVERSION= 1.5.5
PORTREVISION= 1
PORTVERSION= 1.6.1
CATEGORIES= devel
MASTER_SITES= https://ccid.apdu.fr/files/
@ -13,27 +12,31 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite
USES= perl5 pkgconfig tar:bzip2
USES= perl5 pkgconfig tar:xz meson
USE_LDCONFIG= yes
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-usbdropdir=${PREFIX}/lib/pcsc/drivers \
--enable-ccidtwindir=${PREFIX}/lib/pcsc/drivers/serial
MESON_ARGS= -Dpcsclite=true
LDFLAGS= -pthread
INSTALL_TARGET= install-strip
.include "../../devel/pcsc-lite/Makefile.common"
BUNDLE_DIR= ${USBDROPDIR}/ifd-ccid.bundle
PLIST_DIRS= ${USBDROPDIR}
PLIST_FILES= bin/RSA_SecurID_getpasswd \
lib/pcsc/drivers/ifd-ccid.bundle/Contents/FreeBSD/libccid.so \
lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \
share/man/man1/RSA_SecurID_getpasswd.1.gz
bin/Kobil_mIDentity_switch \
${BUNDLE_DIR}/Contents/FreeBSD/libccid.so \
${BUNDLE_DIR}/Contents/Info.plist \
share/man/man1/RSA_SecurID_getpasswd.1.gz \
share/man/man8/Kobil_mIDentity_switch.8.gz
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/contrib/RSA_SecurID/RSA_SecurID_getpasswd \
${INSTALL_PROGRAM} ${WRKSRC}/${MESON_BUILD_DIR}/Kobil_mIDentity_switch \
${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.8 \
${STAGEDIR}${PREFIX}/share/man/man8
${INSTALL_PROGRAM} ${WRKSRC}/${MESON_BUILD_DIR}/RSA_SecurID_getpasswd \
${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/contrib/RSA_SecurID/RSA_SecurID_getpasswd.1 \
${STAGEDIR}${PREFIX}/share/man/man1
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pcsc/drivers/ifd-ccid.bundle/Contents/FreeBSD/libccid.so
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1709534464
SHA256 (ccid-1.5.5.tar.bz2) = 194708f75fe369d45dd7c15e8b3e8a7db8b49cfc5557574ca2a2e76ef12ca0ca
SIZE (ccid-1.5.5.tar.bz2) = 708374
TIMESTAMP = 1723636201
SHA256 (ccid-1.6.1.tar.xz) = 2eca8fb07e8fe7c0d39daeaca7b97cd73c40ed9b72738a24ad3dcbdfc918e1ea
SIZE (ccid-1.6.1.tar.xz) = 195844

View File

@ -19,11 +19,13 @@ USE_RC_SUBR= pcscd
SHEBANG_FILES= src/spy/pcsc-spy
.include "Makefile.common"
MESON_ARGS= -Dlibsystemd=false \
-Dlibudev=false \
-Dlibusb=true \
-Dusb=true \
-Dusbdropdir=${PREFIX}/lib/pcsc/drivers/ \
-Dusbdropdir=${USBDROPDIR}/ \
-Dipcdir=/var/run
SUB_FILES= pkg-message

View File

@ -0,0 +1 @@
USBDROPDIR= ${PREFIX}/lib/pcsc/drivers