aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libccid/Makefile
blob: c5ceda695004bd2302570fe703e7922623bd0520 (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:        libccid
# Date created:                 2005-01-20
# Whom:                     arved
#
# $FreeBSD$

PORTNAME=   ccid
PORTVERSION=    1.3.8
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   http://alioth.debian.org/frs/download.php/2482/

MAINTAINER= arved@FreeBSD.org
COMMENT=    Generic USB CCID (Chip/Smart Card Interface Devices) driver

LIB_DEPENDS=    usb-0.1.8:${PORTSDIR}/devel/libusb \
        pcsclite.1:${PORTSDIR}/devel/pcsc-lite

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_PERL5_BUILD=yes
CONFIGURE_ARGS= --enable-usbdropdir=${LOCALBASE}/lib/pcsc/drivers \
        --enable-ccidtwindir=${LOCALBASE}/lib/pcsc/drivers/serial \
        --enable-udev
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
        LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" \
        LIBUSB_CFLAGS="-I${LOCALBASE}/include" \
        LIBUSB_LIBS="-L${LOCALBASE}/lib -lusb"

PLIST_SUB=  VER=${PORTVERSION}
MAN1=       RSA_SecurID_getpasswd.1
MAN8=       Kobil_mIDentity_switch.8

.include <bsd.port.pre.mk>

post-patch:
    ${REINPLACE_CMD} -e "s,use warnings;,," ${WRKSRC}/src/create_Info_plist.pl
    ${REINPLACE_CMD} -e "s,ndef __APPLE__, !(__APPLE__ || __FreeBSD__)," ${WRKSRC}/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c

.include <bsd.port.post.mk>