mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
New port: devel/p5-PCSC-Card
This commit is contained in:
parent
357f89bcbe
commit
a34be8d428
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89735
@ -697,6 +697,7 @@
|
||||
SUBDIR += p5-P4-Client
|
||||
SUBDIR += p5-PAR
|
||||
SUBDIR += p5-PAR-Dist
|
||||
SUBDIR += p5-PCSC-Card
|
||||
SUBDIR += p5-POE
|
||||
SUBDIR += p5-POE-Component-Client-HTTP
|
||||
SUBDIR += p5-POE-Component-Client-POP3
|
||||
|
27
devel/p5-PCSC-Card/Makefile
Normal file
27
devel/p5-PCSC-Card/Makefile
Normal file
@ -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>
|
1
devel/p5-PCSC-Card/distinfo
Normal file
1
devel/p5-PCSC-Card/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (pcsc-perl-1.2.2.tar.gz) = ec590bd7c14f265eaaac5d209b89c3b5
|
11
devel/p5-PCSC-Card/files/patch-Makefile.PL
Normal file
11
devel/p5-PCSC-Card/files/patch-Makefile.PL
Normal file
@ -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' => {},
|
||||
);
|
||||
|
19
devel/p5-PCSC-Card/files/patch-PCSCperl.h
Normal file
19
devel/p5-PCSC-Card/files/patch-PCSCperl.h
Normal file
@ -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 );
|
9
devel/p5-PCSC-Card/pkg-descr
Normal file
9
devel/p5-PCSC-Card/pkg-descr
Normal file
@ -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
|
11
devel/p5-PCSC-Card/pkg-plist
Normal file
11
devel/p5-PCSC-Card/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user