1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/devel/libccid/Makefile
Tilman Keskinoz 0061fe53e4 Update pcsc-lite to 1.8.11
Update libccid to 1.4.16

Use wget to fetch distfiles on FreeBSD < 10
PR:		180598
2014-04-13 13:23:52 +00:00

56 lines
1.6 KiB
Makefile

# Created by: arved
# $FreeBSD$
PORTNAME= ccid
PORTVERSION= 1.4.16
CATEGORIES= devel
MASTER_SITES= https://alioth.debian.org/frs/download.php/file/4016/
MAINTAINER= arved@FreeBSD.org
COMMENT= Generic USB CCID (Chip/Smart Card Interface Devices) driver
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
USE_BZIP2= yes
USES= pkgconfig perl5
GNU_CONFIGURE= yes
USE_PERL5= build
CONFIGURE_ARGS= --enable-usbdropdir=${PREFIX}/lib/pcsc/drivers \
--enable-ccidtwindir=${PREFIX}/lib/pcsc/drivers/serial
CONFIGURE_ENV= LIBUSB_CFLAGS="-I${LOCALBASE}/include" \
LIBUSB_LIBS="-L${LOCALBASE}/lib -lusb"
CPPFLAGS+= -I${LOCALBASE}/include
PLIST_SUB= VER=${PORTVERSION}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 801000
IGNORE= needs a complete libusb-1 implementation
.endif
.if ${OSVERSION} < 1000000
FETCH_DEPENDS= wget:${PORTSDIR}/ftp/wget
DISABLE_SIZE= yes
FETCH_CMD= ${LOCALBASE}/bin/wget -c -nc --no-check-certificate
.endif
post-patch:
${REINPLACE_CMD} -e "s,use warnings;,," ${WRKSRC}/src/create_Info_plist.pl
${REINPLACE_CMD} -e "s,ndef __APPLE__, !(__APPLE__ || __FreeBSD__)," ${WRKSRC}/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c
${REINPLACE_CMD} -e "s,libusb-1.0/libusb.h,libusb.h," \
${WRKSRC}/configure ${WRKSRC}/src/ccid_usb.c \
${WRKSRC}/src/ccid_usb.h \
${WRKSRC}/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/contrib/RSA_SecurID/RSA_SecurID_getpasswd \
${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/contrib/RSA_SecurID/RSA_SecurID_getpasswd.1 \
${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.post.mk>