PORTNAME=	PCSC-Card
PORTVERSION=	1.4.15
CATEGORIES=	devel perl5
MASTER_SITES=	CPAN \
		http://ludovic.rousseau.free.fr/softwares/pcsc-perl/
MASTER_SITE_SUBDIR=	CPAN:WHOM
PKGNAMEPREFIX=	p5-
DISTNAME=	pcsc-perl-${PORTVERSION}

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Perl bindings for the PC/SC Lite Framework
WWW=		http://ludovic.rousseau.free.fr/softwares/pcsc-perl/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENCE

LIB_DEPENDS=	libpcsclite.so:devel/pcsc-lite

USES=		perl5 pkgconfig tar:bzip2
USE_PERL5=	configure
MAKE_ENV=	LOCALBASE="${LOCALBASE}"

post-patch:
	@${REINPLACE_CMD} -e 's|-I/usr/local/pcsc/include|-I${LOCALBASE}/include/PCSC|' ${WRKSRC}/Makefile.PL

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Chipcard/PCSC/PCSC.so

.include <bsd.port.mk>
