aboutsummaryrefslogtreecommitdiff
path: root/devel/libchipcard/Makefile
blob: 8d55d89db9cc7f89c4436dd7164cbe13ee623809 (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
41
# Ports collection makefile for: LibChipCard
# Date created:                  19 January 2003
# Whom:                          Martin Preuss <martin@libchipcard.de>
#
# $FreeBSD$
#

PORTNAME=	libchipcard
PORTVERSION=	0.9.1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	libchipcard

MAINTAINER=	martin@libchipcard.de
COMMENT=	A library for easy access to chipcards

LIB_DEPENDS=	pcsclite.1:${PORTSDIR}/devel/pcsc-lite

USE_AUTOTOOLS=	libtool:15
USE_GMAKE=	yes
USE_OPENSSL=	yes
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
CONFIGURE_ENV+=	PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS+=--with-distri=freebsd

MAN1=		ctfstool.1 chipcardd.1 geldkarte.1 hbcicard.1 \
		kvkd.1 memcard.1 libchipcard-config.1 readertest.1

MAN5=		libchipcard.conf.5 chipcardc.conf.5 chipcardd.conf.5

post-patch:
	${REINPLACE_CMD} -e "s,LPCSTR,LPCTSTR," ${WRKSRC}/src/libchipcard/engine/reader/ctdriver_pcsc.h
	${REINPLACE_CMD} -e "s,libpcsclite.so.0,libpcsclite.so.1,; \
		s,/usr/local/pcsc/include,${LOCALBASE}/include/PCSC," ${WRKSRC}/configure

post-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/freebsd/chipcardd.sh ${PREFIX}/etc/rc.d
	@${SED} -e 's,%%PREFIX%%,${PREFIX},' ${PKGMESSAGE}

.include <bsd.port.mk>