View | Details | Raw Unified | Return to bug 252922
Collapse All | Expand All

(-)Makefile (-44 / +22 lines)
Lines 2-10 Link Here
2
2
3
PORTNAME=	libftdi1
3
PORTNAME=	libftdi1
4
PORTVERSION=	1.5
4
PORTVERSION=	1.5
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	devel
6
CATEGORIES=	devel
7
MASTER_SITES=	http://www.intra2net.com/en/developer/libftdi/download/
7
MASTER_SITES=	https://www.intra2net.com/en/developer/libftdi/download/
8
8
9
MAINTAINER=	bsam@FreeBSD.org
9
MAINTAINER=	bsam@FreeBSD.org
10
COMMENT=	Library (using libusb) to talk to FTDI chips
10
COMMENT=	Library (using libusb) to talk to FTDI chips
Lines 21-26 Link Here
21
USES=		cmake:insource compiler:c++11-lang gettext-runtime pkgconfig tar:bzip2
21
USES=		cmake:insource compiler:c++11-lang gettext-runtime pkgconfig tar:bzip2
22
USE_LDCONFIG=	yes
22
USE_LDCONFIG=	yes
23
23
24
PORTDOCS=	ChangeLog README
25
PORTEXAMPLES=	baud_test bitbang bitbang2 bitbang_cbus bitbang_ft2232 \
26
		eeprom find_all serial_test simple stream_test
27
24
OPTIONS_DEFINE=	PYTHON BOOST DOCS EXAMPLES
28
OPTIONS_DEFINE=	PYTHON BOOST DOCS EXAMPLES
25
OPTIONS_DEFAULT=PYTHON BOOST
29
OPTIONS_DEFAULT=PYTHON BOOST
26
OPTIONS_SUB=	yes
30
OPTIONS_SUB=	yes
Lines 28-80 Link Here
28
BOOST_DESC=	Build with boost
32
BOOST_DESC=	Build with boost
29
PYTHON_DESC=	Build Python bindings
33
PYTHON_DESC=	Build Python bindings
30
34
31
PORTDOCS=	ChangeLog README
35
EXAMPLES_CMAKE_BOOL=	EXAMPLES
32
36
33
.include <bsd.port.options.mk>
37
PYTHON_USES=		python
38
PYTHON_CMAKE_BOOL=	PYTHON_BINDINGS
39
PYTHON_BUILD_DEPENDS=	swig:devel/swig
34
40
35
.if ${PORT_OPTIONS:MDOCS}
41
BOOST_CMAKE_BOOL=	FTDIPP
36
CMAKE_ARGS+=	-DDOCUMENTATION:BOOL=true \
42
BOOST_LIB_DEPENDS=	libboost_system.so:devel/boost-libs
37
		-DPYTHON_BINDINGS:BOOL=false
43
#BOOST_VARS=		PORTEXAMPLES+=find_all_pp
38
.else
44
BOOST_PORTEXAMPLES=	find_all_pp
39
CMAKE_ARGS+=	-DDOCUMENTATION:BOOL=false
40
.endif
41
45
42
.if ${PORT_OPTIONS:MEXAMPLES}
46
.include <bsd.port.options.mk>
43
CMAKE_ARGS+=	-DEXAMPLES:BOOL=true
44
.else
45
CMAKE_ARGS+=	-DEXAMPLES:BOOL=false
46
.endif
47
47
48
.if ${PORT_OPTIONS:MPYTHON}
48
post-install-EXAMPLES-on:
49
USES+=		python
49
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
50
CMAKE_ARGS+=	-DPYTHON_BINDINGS:BOOL=true \
50
.for fname in ${PORTEXAMPLES}
51
		-DDOCUMENTATION:BOOL=false
51
	${INSTALL_PROGRAM} ${WRKSRC}/examples/${fname} ${STAGEDIR}${EXAMPLESDIR}/
52
BUILD_DEPENDS+=	swig:devel/swig
52
.endfor
53
.else
54
CMAKE_ARGS+=	-DPYTHON_BINDINGS:BOOL=false
55
.endif
56
53
57
.if ${PORT_OPTIONS:MBOOST}
54
post-install-DOCS-on:
58
CMAKE_ARGS+=		-DFTDIPP:BOOL=true
55
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
59
LIB_DEPENDS+=	libboost_system.so:devel/boost-libs
60
.else
61
CMAKE_ARGS+=		-DFTDIPP:BOOL=false
62
.endif
63
64
post-install:
65
.if ${PORT_OPTIONS:MEXAMPLES}
66
.for fname in baud_test bitbang bitbang2 bitbang_cbus bitbang_ft2232 eeprom find_all serial_test simple stream_test
67
	${INSTALL_PROGRAM} ${WRKSRC}/examples/${fname} ${STAGEDIR}${PREFIX}/bin/ftdi1_${fname}_example
68
.endfor
69
.if ${PORT_OPTIONS:MBOOST}
70
.for fname in find_all_pp
71
	${INSTALL_PROGRAM} ${WRKSRC}/examples/${fname} ${STAGEDIR}${PREFIX}/bin/ftdi1_${fname}_example
72
.endfor
73
.endif
74
.endif
75
.if ${PORT_OPTIONS:MDOCS}
76
	${MKDIR} ${STAGEDIR}${DOCSDIR}
77
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
56
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
78
.endif
79
57
80
.include <bsd.port.mk>
58
.include <bsd.port.mk>
(-)pkg-plist (-11 lines)
Lines 1-16 Link Here
1
bin/ftdi_eeprom
1
bin/ftdi_eeprom
2
bin/libftdi1-config
2
bin/libftdi1-config
3
%%EXAMPLES%%bin/ftdi1_baud_test_example
4
%%EXAMPLES%%bin/ftdi1_bitbang2_example
5
%%EXAMPLES%%bin/ftdi1_bitbang_cbus_example
6
%%EXAMPLES%%bin/ftdi1_bitbang_example
7
%%EXAMPLES%%bin/ftdi1_bitbang_ft2232_example
8
%%EXAMPLES%%bin/ftdi1_eeprom_example
9
%%EXAMPLES%%bin/ftdi1_find_all_example
10
%%EXAMPLES%%%%BOOST%%bin/ftdi1_find_all_pp_example
11
%%EXAMPLES%%bin/ftdi1_serial_test_example
12
%%EXAMPLES%%bin/ftdi1_simple_example
13
%%EXAMPLES%%bin/ftdi1_stream_test_example
14
libdata/pkgconfig/libftdi1.pc
3
libdata/pkgconfig/libftdi1.pc
15
libdata/pkgconfig/libftdipp1.pc
4
libdata/pkgconfig/libftdipp1.pc
16
lib/cmake/libftdi1/LibFTDI1Config.cmake
5
lib/cmake/libftdi1/LibFTDI1Config.cmake

Return to bug 252922