mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- Respect CFLAGS
- Adapt to new pcsc-lite infrastructure PR: 76091 Submitted by: Toni Andjelkovic <toni@soth.at>
This commit is contained in:
parent
f8852a6a78
commit
b82289a9e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133856
@ -18,17 +18,18 @@ COMMENT= PC/SC Lite driver for the Reflex 62 serial smart card reader
|
||||
LIB_DEPENDS= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
|
||||
|
||||
USE_GMAKE= yes
|
||||
CFLAGS+= -fPIC
|
||||
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME:S/^ifd-//}
|
||||
|
||||
PORTDOCS= README
|
||||
PLIST_FILES= pcsc/drivers/libslb_rf60.so
|
||||
PLIST_FILES= lib/pcsc/drivers/libslb_rf60.so
|
||||
|
||||
do-install:
|
||||
test -f ${PREFIX}/pcsc/drivers/ || ${MKDIR} ${PREFIX}/pcsc/drivers/
|
||||
${MKDIR} ${PREFIX}/lib/pcsc/drivers/
|
||||
${INSTALL_DATA} ${WRKSRC}/libslb_rf60.so \
|
||||
${PREFIX}/pcsc/drivers/libslb_rf60.so
|
||||
${PREFIX}/lib/pcsc/drivers/libslb_rf60.so
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
@ -1,14 +1,22 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -2,7 +2,7 @@
|
||||
# Linux Serial Driver
|
||||
# Implementation
|
||||
--- Makefile.bak Tue Jan 11 10:59:54 2005
|
||||
+++ Makefile Tue Jan 11 11:00:03 2005
|
||||
@@ -16,19 +16,13 @@
|
||||
$(LD) -shared $(OBJS) -o $(LIBN)
|
||||
|
||||
-CC = gcc -DCPU_ICAP_PC=1
|
||||
+CC = gcc -DCPU_ICAP_PC=1 -fPIC
|
||||
LD = ld
|
||||
OBJS = serial.o ifdhandler.o ctapi.o AdmHndlr.o T1Hndlr.o
|
||||
LIBN = libslb_rf60.so
|
||||
test: test.c $(OBJS)
|
||||
- $(CC) -o test test.c $(OBJS)
|
||||
|
||||
ifdhandler.o: ifdhandler.h ifdhandler.c
|
||||
- $(CC) -c ifdhandler.c
|
||||
|
||||
T1Hndlr.o: T1Hndlr.h T1Hndlr.c
|
||||
- $(CC) -c T1Hndlr.c
|
||||
|
||||
AdmHndlr.o: AdmHndlr.h AdmHndlr.c
|
||||
- $(CC) -c AdmHndlr.c
|
||||
|
||||
ctapi.o: ctapi.h ctapi.c
|
||||
- $(CC) -c ctapi.c
|
||||
|
||||
scio.o: serial.h serial.c
|
||||
- $(CC) -c serial.c
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#ifndef SUN_SPARC
|
||||
- BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS0");
|
||||
+ BretVal = IO_InitializePort(9600,8,'E',"/dev/cuaa0");
|
||||
+ BretVal = IO_InitializePort(9600,8,'E',"/dev/cuad0");
|
||||
#endif
|
||||
|
||||
break;
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
#ifndef SUN_SPARC
|
||||
- BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS1");
|
||||
+ BretVal = IO_InitializePort(9600,8,'E',"/dev/cuaa1");
|
||||
+ BretVal = IO_InitializePort(9600,8,'E',"/dev/cuad1");
|
||||
#endif
|
||||
|
||||
break;
|
||||
@ -23,7 +23,7 @@
|
||||
|
||||
#ifndef SUN_SPARC
|
||||
- BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS2");
|
||||
+ BretVal = IO_InitializePort(9600,8,'E',"/dev/cuaa2");
|
||||
+ BretVal = IO_InitializePort(9600,8,'E',"/dev/cuad2");
|
||||
#endif
|
||||
|
||||
break;
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
#ifndef SUN_SPARC
|
||||
- BretVal = IO_InitializePort(9600,8,'E',"/dev/ttyS3");
|
||||
+ BretVal = IO_InitializePort(9600,8,'E',"/dev/cuaa3");
|
||||
+ BretVal = IO_InitializePort(9600,8,'E',"/dev/cuad3");
|
||||
#endif
|
||||
|
||||
break;
|
||||
|
@ -1,11 +1,11 @@
|
||||
------------------------------------------------------------------------
|
||||
|
||||
You can activate the driver on /dev/cuaa0 by adding the following
|
||||
lines to %%PREFIX%%/etc/reader.conf:
|
||||
You can activate the driver on /dev/cuad0 by adding the following
|
||||
lines to %%PREFIX%%/etc/reader.conf.d/reader.conf:
|
||||
|
||||
FRIENDLYNAME "Reflex 62"
|
||||
DEVICENAME GEN_SMART_RDR
|
||||
LIBPATH %%PREFIX%%/pcsc/drivers/libslb_rf60.so
|
||||
DEVICENAME /dev/cuad0
|
||||
LIBPATH %%PREFIX%%/lib/pcsc/drivers/libslb_rf60.so
|
||||
CHANNELID 0x0103F8
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user