summaryrefslogtreecommitdiff
path: root/devel/ifd-test
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2005-04-20 12:42:06 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2005-04-20 12:42:06 +0000
commit384c2bae3b94d68ec15491eba4dc6c00acfb93ea (patch)
treefa1875a4f3aa5c20bbc367e43e857f6c786b914f /devel/ifd-test
parent- Update to 2.0.1 (diff)
pcsc-lite:
- Upgrade to 1.2.9.b.7 - Use libtool15 - make hier(7)-compliant by moving the pcsc/drivers to lib/pcsc/drivers - Compile with USB support per default. Use WITHOUT_USB to disable usb support - Chase libusb shared library version (Forgotten by leeym) Based on: PR 76068 Reviewed by: maintainer, sem (earlier patch) ifd-devkit: - Chase pcsclite sharedlibrary version ifd-gempc410: - Unbreak by updating to 0.9.3 - Move library to lib/pcsc/drivers - Chase pcsclite sharedlibrary version NOTE: This was not tested, I don't own the specific hardware ifd-gpr400: - Chase pcsclite sharedlibrary version - Fix build with new pcsc-lite - Chase new pcsclite drivers location ifd-slb_rf60: - Chase pcsclite sharedlibrary version ifd-test: - Chase pcsclite sharedlibrary version - Fix build with new pcsclite libchipcard: - Update to 0.9.1[1] - Chase pcsclite shared library version - Fix build with new pcsclite [1]PR: 78815 [1]Submitted by: lofi opensc: - Chase pcsclite shared library version - Fix build on CURRENT opensc-esteid - Chase pcsclite shared library version - Fix build with new pcsclite p5-PCSC-Card: - Update to 1.4.2 - Chase pcsclite shared library version - Fix build with new pcsclite ruby-pcsc-lite - Mark broken, does not compile with new pcsc-lite Maintainer will work on new version Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=133752
Diffstat (limited to 'devel/ifd-test')
-rw-r--r--devel/ifd-test/Makefile11
-rw-r--r--devel/ifd-test/files/patch-Makefile14
2 files changed, 14 insertions, 11 deletions
diff --git a/devel/ifd-test/Makefile b/devel/ifd-test/Makefile
index c22bedd6ea34..a36e7b7c8771 100644
--- a/devel/ifd-test/Makefile
+++ b/devel/ifd-test/Makefile
@@ -7,19 +7,26 @@
PORTNAME= ifd-test
PORTVERSION= 1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel security
MASTER_SITES= http://www.linuxnet.com/drivers/readers/files/
MAINTAINER= bms@FreeBSD.org
COMMENT= IFD Test Suite for PC/SC Lite
-LIB_DEPENDS= pcsclite.0:${PORTSDIR}/devel/pcsc-lite
+LIB_DEPENDS= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
USE_GMAKE= yes
+USE_REINPLACE= yes
NOMAN=
PLIST_FILES= sbin/ifdtest
+MAKE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
+ LIBS="-L${PREFIX}/lib -lpcsclite ${PTHREAD_LIBS}"
+
+post-patch:
+ ${REINPLACE_CMD} -e "s,LPSTR,LPTSTR,g; s,LPCSTR,LPCTSTR,g" \
+ ${WRKSRC}/commands.h ${WRKSRC}/ifdtest.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ifdtest ${PREFIX}/sbin
diff --git a/devel/ifd-test/files/patch-Makefile b/devel/ifd-test/files/patch-Makefile
index f41753cdf30b..7ad608fa8869 100644
--- a/devel/ifd-test/files/patch-Makefile
+++ b/devel/ifd-test/files/patch-Makefile
@@ -1,18 +1,14 @@
---- Makefile.orig Wed Aug 28 14:26:32 2002
-+++ Makefile Wed Aug 28 14:27:06 2002
-@@ -1,10 +1,12 @@
+--- Makefile.orig Tue Apr 17 18:49:02 2001
++++ Makefile Mon Apr 11 21:23:34 2005
+@@ -1,10 +1,7 @@
# Makefile for utilities
# David Corcoran <corcoran@linuxnet.com>
-+PREFIX?= /usr/local
-+
- CC = gcc
+-CC = gcc
-CFLAGS = -g -w
-INCLUDE = -I/usr/local/pcsc/include
-LIBS = -L/usr/local/pcsc/lib -lpcsclite
-+CFLAGS = -g -w -pthread
-+INCLUDE = -I${PREFIX}/include
-+LIBS = -L${PREFIX}/lib -lpcsclite
++INCLUDE = -I${PREFIX}/include -I${PREFIX}/include/PCSC
OBJS = testIBM.o testAMMI.o testSCHL.o testSIEMENS.o testBULL.o testGD.o commands.o testA.o testB.o