aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-PCSC-Card
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2003-09-29 02:19:59 +0000
committerBruce M Simpson <bms@FreeBSD.org>2003-09-29 02:19:59 +0000
commita34be8d4285957eab2c74c489bf5d4169e255367 (patch)
treeac3da1e2bea1a5123be52346a2fcd1b0bd488732 /devel/p5-PCSC-Card
parent357f89bcbe83c770c129f43570658c7fae5593a0 (diff)
downloadports-a34be8d4285957eab2c74c489bf5d4169e255367.tar.gz
ports-a34be8d4285957eab2c74c489bf5d4169e255367.zip
Notes
Diffstat (limited to 'devel/p5-PCSC-Card')
-rw-r--r--devel/p5-PCSC-Card/Makefile27
-rw-r--r--devel/p5-PCSC-Card/distinfo1
-rw-r--r--devel/p5-PCSC-Card/files/patch-Makefile.PL11
-rw-r--r--devel/p5-PCSC-Card/files/patch-PCSCperl.h19
-rw-r--r--devel/p5-PCSC-Card/pkg-descr9
-rw-r--r--devel/p5-PCSC-Card/pkg-plist11
6 files changed, 78 insertions, 0 deletions
diff --git a/devel/p5-PCSC-Card/Makefile b/devel/p5-PCSC-Card/Makefile
new file mode 100644
index 000000000000..8039dad97d5f
--- /dev/null
+++ b/devel/p5-PCSC-Card/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: p5-PCSC-Card
+# Date created: 12 September 2002
+# Whom: Bruce M Simpson
+#
+# $FreeBSD$
+#
+
+PORTNAME= PCSC-Card
+PORTVERSION= 1.2.2
+CATEGORIES= devel perl5
+MASTER_SITES= http://ludovic.rousseau.free.fr/softwares/pcsc-perl/
+PKGNAMEPREFIX= p5-
+DISTNAME= pcsc-perl-${PORTVERSION}
+
+MAINTAINER= bms@FreeBSD.org
+COMMENT= Perl bindings for the PC/SC Lite Framework
+
+LIB_DEPENDS= pcsclite.0:${PORTSDIR}/devel/pcsc-lite
+
+PERL_CONFIGURE= yes
+CONFIGURE_ARGS= INSTALLDIRS=site
+MAKE_ENV= "LOCALBASE=$(LOCALBASE)"
+
+MAN3= Chipcard::PCSC::Card.3 Chipcard::PCSC.3
+MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+
+.include <bsd.port.mk>
diff --git a/devel/p5-PCSC-Card/distinfo b/devel/p5-PCSC-Card/distinfo
new file mode 100644
index 000000000000..afd34bbf2139
--- /dev/null
+++ b/devel/p5-PCSC-Card/distinfo
@@ -0,0 +1 @@
+MD5 (pcsc-perl-1.2.2.tar.gz) = ec590bd7c14f265eaaac5d209b89c3b5
diff --git a/devel/p5-PCSC-Card/files/patch-Makefile.PL b/devel/p5-PCSC-Card/files/patch-Makefile.PL
new file mode 100644
index 000000000000..17738c5fa518
--- /dev/null
+++ b/devel/p5-PCSC-Card/files/patch-Makefile.PL
@@ -0,0 +1,11 @@
+--- Makefile.PL.orig Tue May 27 20:31:10 2003
++++ Makefile.PL Mon Sep 29 03:09:07 2003
+@@ -6,7 +6,7 @@
+ 'VERSION_FROM' => 'PCSC.pm', # finds $VERSION
+ 'LIBS' => [''], # e.g., '-lm'
+ 'DEFINE' => '-O2 -Wall', # e.g., '-DHAVE_SOMETHING'
+- 'INC' => '-I/usr/local/pcsc/include', # e.g., '-I/usr/include/other'
++ 'INC' => '-I$(LOCALBASE)/include', # e.g., '-I/usr/include/other'
+ 'PL_FILES' => {},
+ );
+
diff --git a/devel/p5-PCSC-Card/files/patch-PCSCperl.h b/devel/p5-PCSC-Card/files/patch-PCSCperl.h
new file mode 100644
index 000000000000..ce8e740f2263
--- /dev/null
+++ b/devel/p5-PCSC-Card/files/patch-PCSCperl.h
@@ -0,0 +1,19 @@
+--- PCSCperl.h.orig Tue May 6 22:23:26 2003
++++ PCSCperl.h Mon Sep 29 03:06:21 2003
+@@ -128,6 +128,16 @@
+
+ #endif /* __APPLE__ */
+
++#ifdef __FreeBSD__
++#include <dlfcn.h>
++#include <wintypes.h>
++#include <pcsclite.h>
++#include <stdio.h>
++typedef void *DLL_HANDLE;
++#define LOAD_LIB() dlopen("libpcsclite.so.0", RTLD_LAZY)
++#define CLOSE_LIB(x) dlclose(x)
++#define GET_FCT dlsym
++#endif
+
+ /* Definitine fuctions imported from the PCSC library and used by the stub */
+ typedef LONG (WINAPI *TSCardEstablishContext) ( DWORD, LPCVOID, LPCVOID, LPSCARDCONTEXT );
diff --git a/devel/p5-PCSC-Card/pkg-descr b/devel/p5-PCSC-Card/pkg-descr
new file mode 100644
index 000000000000..4279430acd16
--- /dev/null
+++ b/devel/p5-PCSC-Card/pkg-descr
@@ -0,0 +1,9 @@
+From the website:-
+
+This library allows to intercate with a smart card and pcsc-lite using the
+Perl language. The archive contains the Perl wrapper and sample code.
+
+WWW: http://ludovic.rousseau.free.fr/softwares/pcsc-perl/pcsc-perl.html
+
+Bruce
+bms@spc.org
diff --git a/devel/p5-PCSC-Card/pkg-plist b/devel/p5-PCSC-Card/pkg-plist
new file mode 100644
index 000000000000..01d18ab1d80f
--- /dev/null
+++ b/devel/p5-PCSC-Card/pkg-plist
@@ -0,0 +1,11 @@
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Chipcard/PCSC/.packlist
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Chipcard/PCSC/PCSC.so
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Chipcard/PCSC/PCSC.bs
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Chipcard/PCSC/Card.pod
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Chipcard/PCSC/Card.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Chipcard/PCSC.pod
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Chipcard/PCSC.pm
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Chipcard/PCSC 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Chipcard 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Chipcard/PCSC 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Chipcard 2>/dev/null || true