1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add libccid, a USB CCID (Chip/Smart Card Interface Device) driver.

This was tested with a Gemplus GemPC Twin and an SCM Micro SPR 532
This commit is contained in:
Tilman Keskinoz 2005-04-20 13:33:39 +00:00
parent 43b17b3ac5
commit fa6f144326
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133763
9 changed files with 101 additions and 0 deletions

View File

@ -414,6 +414,7 @@
SUBDIR += libbonobo
SUBDIR += libbonobomm
SUBDIR += libcapsinetwork
SUBDIR += libccid
SUBDIR += libcheck
SUBDIR += libchipcard
SUBDIR += libchipcard-kde

32
devel/libccid/Makefile Normal file
View File

@ -0,0 +1,32 @@
# New ports collection Makefile for: libccid
# Date created: 2005-01-20
# Whom: arved
#
# $FreeBSD$
PORTNAME= ccid
PORTVERSION= 0.9.3
CATEGORIES= devel
MASTER_SITES= http://alioth.debian.org/download.php/992/
MAINTAINER= arved@FreeBSD.org
COMMENT= Generic USB CCID (Chip/Smart Card Interface Devices) driver
LIB_DEPENDS= usb-0.1.8:${PORTSDIR}/devel/libusb \
pcsclite.1:${PORTSDIR}/devel/pcsc-lite
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-libusb=${LOCALBASE} \
--enable-usbdropdir=${LOCALBASE}/lib/pcsc/drivers \
--enable-ccidtwindir=${LOCALBASE}/lib/pcsc/drivers/serial \
--enable-pcsclite=yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
post-patch:
# ${REINPLACE_CMD} -e "s,-lpcsclite,-lpcsclite ${PTHREAD_LIBS}," \
# ${WRKSRC}/examples/Makefile.in
${REINPLACE_CMD} -e "s,LDLIBS,LIBS,g" ${WRKSRC}/configure
.include <bsd.port.mk>

2
devel/libccid/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (ccid-0.9.3.tar.gz) = 8acb2393aa9e00a2e7ad845ee60b52df
SIZE (ccid-0.9.3.tar.gz) = 484763

View File

@ -0,0 +1,12 @@
--- src/openct/checksum.c.orig Wed Apr 20 15:16:48 2005
+++ src/openct/checksum.c Wed Apr 20 15:17:04 2005
@@ -5,7 +5,9 @@
* For licensing, see the file LICENCE
*/
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <unistd.h>
#define min( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )

View File

@ -0,0 +1,12 @@
--- src/openct/checksum.h.orig Wed Apr 20 15:18:03 2005
+++ src/openct/checksum.h Wed Apr 20 15:18:18 2005
@@ -22,7 +22,9 @@
#ifndef __CHECKSUM_H__
#define __CHECKSUM_H__
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <unistd.h>
extern unsigned int csum_lrc_compute(const uint8_t *, size_t, unsigned char *);

View File

@ -0,0 +1,20 @@
--- configure.orig Fri Apr 8 18:14:57 2005
+++ configure Fri Apr 8 18:18:13 2005
@@ -20223,6 +20223,17 @@
CFLAGS="$CFLAGS -no-cpp-precomp"
fi
;;
+*-*-freebsd*)
+ BUNDLE_HOST="FreeBSD"
+ DYN_LIB_EXT="so"
+if false; then
+ NEED_PARSER_TRUE=
+ NEED_PARSER_FALSE='#'
+else
+ NEED_PARSER_TRUE='#'
+ NEED_PARSER_FALSE=
+fi
+ ;;
*)
BUNDLE_HOST="Linux"
DYN_LIB_EXT="so"

View File

@ -0,0 +1,12 @@
--- src/openct/proto-t1.h.orig Wed Apr 20 15:15:06 2005
+++ src/openct/proto-t1.h Wed Apr 20 15:15:25 2005
@@ -23,7 +23,9 @@
#define __PROTO_T1_H__
#include <unistd.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
enum {
IFD_PROTOCOL_RECV_TIMEOUT = 0x0000,

4
devel/libccid/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
Generic USB CCID (Chip/Smart Card Interface Devices) driver.
Author: Ludovic Rousseau
WWW: http://pcsclite.alioth.debian.org/ccid.html

6
devel/libccid/pkg-plist Normal file
View File

@ -0,0 +1,6 @@
lib/pcsc/drivers/ifd-ccid.bundle/Contents/FreeBSD/libccid.so.0.9.3
lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
@dirrm lib/pcsc/drivers/ifd-ccid.bundle/Contents/FreeBSD
@dirrm lib/pcsc/drivers/ifd-ccid.bundle/Contents
@dirrm lib/pcsc/drivers/ifd-ccid.bundle
@dirrm lib/pcsc/drivers