aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-PCSC-Card/Makefile
blob: 796f63eb04d2b0cf97540183e8588d14640f39e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:	p5-PCSC-Card
# Date created:		12 September 2002
# Whom:			Bruce M Simpson
#
# $FreeBSD$
#

PORTNAME=	PCSC-Card
PORTVERSION=	1.4.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.1:${PORTSDIR}/devel/pcsc-lite

USE_REINPLACE=	yes

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
IGNORE=		Requires perl-5.6.0 or better to build correctly
.endif

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}

post-patch:
	${REINPLACE_CMD} -e "s,-I/usr/local/pcsc/include,${LOCALBASE}/include/PCSC," \
		${WRKSRC}/Makefile.PL


.include <bsd.port.post.mk>