blob: d3aef2cd003358681f2c937fc515048062363929 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# New ports collection makefile for: opensc
# Date created: 10 September 2002
# Whom: Bruce M Simpson
#
# $FreeBSD$
#
PORTNAME= opensc
PORTVERSION= 0.8.1
PORTREVISION= 1
CATEGORIES= security devel
MASTER_SITES= http://www.opensc.org/files/
MAINTAINER= bms@FreeBSD.org
COMMENT= ISO 7816 Smartcard API
RUN_DEPENDS= ${LOCALBASE}/bin/pkg-config:${PORTSDIR}/devel/pkgconfig
INSTALLS_SHLIB= yes
USE_OPENSSL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
MANCOMPRESSED= no
MAN1= pkcs15-crypt.1 pkcs15-init.1 pkcs15-tool.1 opensc-tool.1 \
opensc-explorer.1 opensc-config.1 cryptoflex-tool.1
MAN3= sc_select_file.3 sc_release_context.3 sc_read_record.3 \
sc_read_binary.3 sc_pkcs15_compute_signature.3 sc_lock.3 \
sc_list_files.3 sc_file_new.3 sc_file_free.3 sc_file.3 \
sc_establish_context.3 sc_disconnect_card.3 \
sc_detect_card_presence.3 sc_connect_card.3
MAN5= pkcs15-profile.5
MAN7= pkcs15.7 opensc.7
# Compilation Options
#
# Define boolean switches:
# WITHOUT_PAM WITHOUT_PCSC_LITE WITHOUT_LDAP
# WITH_USBTOKEN WITH_DOCBOOK WITH_MOZILLA
#
# Default: WITH_PAM, WITH_PCSC_LITE, WITH_LDAP.
#
CONFIGURE_ARGS= --prefix=${PREFIX} --disable-dependency-tracking
.if !defined(WITHOUT_PAM)
CONFIGURE_ARGS+= --with-pam
.endif
.if !defined(WITHOUT_PCSC_LITE)
LIB_DEPENDS+= pcsclite.0:${PORTSDIR}/devel/pcsc-lite
CONFIGURE_ARGS+= --with-pcsclite=${LOCALBASE}
.endif
.if !defined(WITHOUT_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+= --enable-ldap \
--with-ldap-lib=openldap \
--with-ldap-dir=${LOCALBASE}
.else
CONFIGURE_ARGS+= --disable-ldap
.endif
.if !defined(WITH_DOCBOOK)
CONFIGURE_ARGS+= --without-docbook
.endif
# XXX USB token support doesn't work yet on FreeBSD. Accepting patches.
.if defined(WITH_USBTOKEN)
CONFIGURE_ARGS+= --enable-usbtoken
.endif
.if defined(WITH_MOZILLA)
CONFIGURE_ARGS+= --with-plugin-dir=${X11BASE}/lib/mozilla/plugins
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386" && ${ARCH} != "sparc64"
BROKEN= "Does not compile on !i386 and !sparc64"
.endif
.include <bsd.port.post.mk>
|