summaryrefslogtreecommitdiff
path: root/security/ccid/Makefile
blob: 6281ee8bb2c1eed82840c63f0795288127c817bd (plain)
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
# $NetBSD: Makefile,v 1.6 2009/08/03 18:38:28 hasso Exp $
#

DISTNAME=	ccid-1.3.11
CATEGORIES=	security
MASTER_SITES=	http://alioth.debian.org/frs/download.php/3080/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	shannonjr@NetBSD.org
HOMEPAGE=	http://pcsclite.alioth.debian.org/ccid.html
COMMENT=	Middleware to access a smart card using SCard API (PC/SC)

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../mk/bsd.prefs.mk"

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_TOOLS+=	pkg-config
USE_TOOLS+=	autoconf automake aclocal autoheader
USE_TOOLS+=	flex perl
USE_LANGUAGES=	c c++

CONFIGURE_ARGS+=        --sharedstatedir=${VARBASE:Q}
CONFIGURE_ARGS+=        --sysconfdir=${PKG_SYSCONFDIR:Q}

SUBST_CLASSES+=		perl
SUBST_STAGE.perl=	post-patch
SUBST_FILES.perl=	src/convert_version.pl src/create_Info_plist.pl
SUBST_SED.perl=		-e 's,/usr/bin/perl,${PERL5},'

pre-configure:
	cd ${WRKSRC} && ${SH} bootstrap

post-install:
	 ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/ccid/README

.include "../../security/pcsc-lite/buildlink3.mk"
.include "../../devel/libusb/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"