blob: 9dcb09453d4f8398cd4d7da3761b56190cda2226 (
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Created by: Romain Tartiere <romain@blogreen.org>
# $FreeBSD$
PORTNAME= libnfc
PORTVERSION= 1.7.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://dl.bintray.com/nfc-tools/sources/ \
http://romain.blogreen.org/distfiles/
MAINTAINER= romain@FreeBSD.org
COMMENT= Near Field Communication (NFC) library
#OPTIONS_DEFINE= ACR122_PCSC ACR122_USB ACR122S ARYGON PN532_I2C PN532_SPI PN532_UART PN53X_USB
#OPTIONS_DEFAULT=ACR122_USB ACR122S ARYGON PN532_I2C PN532_SPI PN532_UART PN53X_USB
OPTIONS_DEFINE= ACR122_PCSC ACR122_USB ACR122S ARYGON PN532_UART PN53X_USB EXAMPLES
OPTIONS_DEFAULT=ACR122_USB ACR122S ARYGON PN532_UART PN53X_USB
ACR122_PCSC_DESC=ACR122 driver (PC/SC)
ACR122_USB_DESC=ACR122 driver (USB)
ACR122S_DESC= ACR122 driver (UART)
ARYGON_DESC= Arygon driver
#PN532_I2C_DESC=PN532 I2C driver
#PN532_SPI_DESC=PN532 SPI driver
PN532_UART_DESC=PN532 UART driver
PN53X_USB_DESC= PN53X USB driver
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= gmake pathfix pkgconfig tar:bzip2 libtool
MAKE_ENV= INSTALL_STRIP_FLAG="${STRIP}"
# Restrict to stable (even) versions, indicated by the second component.
PORTSCOUT= limitw:1,even
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MACR122_PCSC}
ACR122_PCSC_DRIVER= acr122_pcsc,
.else
ACR122_PCSC_DRIVER=
.endif
.if ${PORT_OPTIONS:MACR122_USB}
ACR122_USB_DRIVER= acr122_usb,
.else
ACR122_USB_DRIVER=
.endif
.if ${PORT_OPTIONS:MACR122S}
ACR122S_DRIVER= acr122s,
.else
ACR122S_DRIVER=
.endif
.if ${PORT_OPTIONS:MARYGON}
ARYGON_DRIVER= arygon,
.else
ARYGON_DRIVER=
.endif
#.if ${PORT_OPTIONS:MPN532_I2C}
#PN532_I2C_DRIVER=pn532_i2c,
#.else
#PN532_I2C_DRIVER=
#.endif
#.if ${PORT_OPTIONS:MPN532_SPI}
#PN532_SPI_DRIVER=pn532_spi,
#.else
#PN532_SPI_DRIVER=
#.endif
.if ${PORT_OPTIONS:MPN532_UART}
PN532_UART_DRIVER=pn532_uart,
.else
PN532_UART_DRIVER=
.endif
.if ${PORT_OPTIONS:MPN53X_USB}
PN53X_USB_DRIVER=pn53x_usb,
.else
PN53X_USB_DRIVER=
.endif
CONFIGURE_ARGS+=--with-drivers="${ACR122_PCSC_DRIVER}${ACR122_USB_DRIVER}${ACR122S_DRIVER}${ARYGON_DRIVER}${PN532_I2C_DRIVER}${PN532_SPI_DRIVER}${PN532_UART_DRIVER}${PN53X_USB_DRIVER}"
.if ${PORT_OPTIONS:MACR122_PCSC}
LIB_DEPENDS+= libpcsclite.so:${PORTSDIR}/devel/pcsc-lite
RUN_DEPENDS+= ${LOCALBASE}/lib/pcsc/drivers/ifd-ccid.bundle/Contents/FreeBSD/libccid.so:${PORTSDIR}/devel/libccid
.endif
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/devd/pn53x.conf ${STAGEDIR}/${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|