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

(-)libftdi/Makefile (-7 / +20 lines)
Lines 6-20 Link Here
6
#
6
#
7
7
8
PORTNAME=	libftdi
8
PORTNAME=	libftdi
9
PORTVERSION=	0.14
9
PORTVERSION=	0.17
10
PORTREVISION=	1
11
CATEGORIES=	devel
10
CATEGORIES=	devel
12
MASTER_SITES=	http://www.intra2net.com/en/developer/libftdi/download/
11
MASTER_SITES=	http://www.intra2net.com/en/developer/libftdi/download/
13
12
14
MAINTAINER=	o.davydenko@gmail.com
13
MAINTAINER=	o.davydenko@gmail.com
15
COMMENT=	A library (using libusb) to talk to FTDI chips
14
COMMENT=	A library (using libusb) to talk to FTDI chips
16
15
17
USE_AUTOTOOLS=	libtool:22
16
OPTIONS=	BOOST	"Build with boost"	off
17
18
USE_AUTOTOOLS=		autoconf:262 libtool:22
18
GNU_CONFIGURE=		yes
19
GNU_CONFIGURE=		yes
19
CONFIGURE_ENV=		CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
20
CONFIGURE_ENV=		CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
20
USE_LDCONFIG=		yes
21
USE_LDCONFIG=		yes
Lines 24-40 Link Here
24
25
25
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
26
27
28
.if defined(WITH_BOOST)
29
PLIST_SUB+=		BOOST=""
30
CONFIGURE_ARGS+=	--with-boost
31
CXXFLAGS+=		"-I${LOCALBASE}/include"
32
LIB_DEPENDS+=		boost_system.4:${PORTSDIR}/devel/boost-libs
33
.else
34
PLIST_SUB+=		BOOST="@comment "
35
CONFIGURE_ARGS+=	--without-boost
36
.endif
37
27
.if ${OSVERSION} < 800069
38
.if ${OSVERSION} < 800069
28
LIB_DEPENDS+=	usb-0.1:${PORTSDIR}/devel/libusb
39
LIB_DEPENDS+=	usb-0.1:${PORTSDIR}/devel/libusb
29
.else
40
.else
30
EXTRA_PATCHES=	${FILESDIR}/extra-patch-configure.in
41
EXTRA_PATCHES=	${FILESDIR}/extra-patch-configure.in
31
USE_AUTOTOOLS+=	autoconf:262
32
.endif
42
.endif
33
43
34
post-patch:
44
post-patch:
35
.if ${OSVERSION} >= 800069
45
	@${REINPLACE_CMD} -E -e \
36
	${RM} -f ${WRKSRC}/configure
46
		's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \
37
.endif
47
		${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
48
49
pre-configure:
50
	@cd ${WRKSRC} && ${AUTORECONF}
38
51
39
post-install:
52
post-install:
40
.if !defined(NOPORTDOCS)
53
.if !defined(NOPORTDOCS)
(-)libftdi/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (libftdi-0.14.tar.gz) = 43f20478e725aa5ba6cdae311ca0593d
1
MD5 (libftdi-0.17.tar.gz) = 810c69cfaa078b49795c224ef9b6b851
2
SHA256 (libftdi-0.14.tar.gz) = b575ec0526efadf4bd6c8af4c62995aff6556c9ffcaf4725373dbcffda354175
2
SHA256 (libftdi-0.17.tar.gz) = d5c0275125ab68a431375083c9544899e578b8f98b83de1254386d0209feabf0
3
SIZE (libftdi-0.14.tar.gz) = 368634
3
SIZE (libftdi-0.17.tar.gz) = 435901
(-)libftdi/files/patch-examples_baud_test.c (+10 lines)
Line 0 Link Here
1
--- examples/baud_test.c.orig	2010-02-03 14:19:36.000000000 +0200
2
+++ examples/baud_test.c	2010-02-03 14:19:43.000000000 +0200
3
@@ -31,6 +31,7 @@
4
 
5
 #include <sys/time.h>
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
 #include <unistd.h>
9
 #include <ftdi.h>
10
 
(-)libftdi/files/patch-examples_bitbang.c (+10 lines)
Line 0 Link Here
1
--- examples/bitbang.c.orig	2010-02-03 14:25:06.000000000 +0200
2
+++ examples/bitbang.c	2010-02-03 14:25:13.000000000 +0200
3
@@ -1,6 +1,7 @@
4
 /* This program is distributed under the GPL, version 2 */
5
 
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
 #include <unistd.h>
9
 #ifdef __WIN32__
10
 #define sleep(x) Sleep(x)
(-)libftdi/files/patch-examples_bitbang2.c (+10 lines)
Line 0 Link Here
1
--- examples/bitbang2.c.orig	2010-02-03 14:18:25.000000000 +0200
2
+++ examples/bitbang2.c	2010-02-03 14:18:34.000000000 +0200
3
@@ -30,6 +30,7 @@
4
 
5
 
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
 #include <unistd.h>
9
 #ifdef __WIN32__
10
 #define usleep(x) Sleep((x+999)/1000)
(-)libftdi/files/patch-examples_bitbang_ft2232.c (+10 lines)
Line 0 Link Here
1
--- examples/bitbang_ft2232.c.orig	2010-02-03 14:18:48.000000000 +0200
2
+++ examples/bitbang_ft2232.c	2010-02-03 14:18:57.000000000 +0200
3
@@ -9,6 +9,7 @@
4
 */
5
 
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
 #include <unistd.h>
9
 #ifdef __WIN32__
10
 #define sleep(x) _sleep(x)
(-)libftdi/files/patch-examples_find_all.c (-3 / +3 lines)
Lines 1-5 Link Here
1
--- examples/find_all.c.orig	2009-03-07 20:18:06.000000000 +0300
1
--- examples/find_all.c.orig	2009-03-17 23:06:40.000000000 +0200
2
+++ examples/find_all.c	2009-03-07 20:18:52.000000000 +0300
2
+++ examples/find_all.c	2010-02-03 14:17:13.000000000 +0200
3
@@ -6,6 +6,7 @@
3
@@ -6,6 +6,7 @@
4
 */
4
 */
5
 
5
 
Lines 7-10 Link Here
7
+#include <stdlib.h>
7
+#include <stdlib.h>
8
 #include <ftdi.h>
8
 #include <ftdi.h>
9
 
9
 
10
 int main(int argc, char **argv)
10
 int main(void)
(-)libftdi/files/patch-examples_serial_read.c (+10 lines)
Line 0 Link Here
1
--- examples/serial_read.c.orig	2010-02-03 14:19:13.000000000 +0200
2
+++ examples/serial_read.c	2010-02-03 14:19:19.000000000 +0200
3
@@ -6,6 +6,7 @@
4
 */
5
 
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
 #include <unistd.h>
9
 #include <getopt.h>
10
 #include <ftdi.h>
(-)libftdi/files/patch-examples_simple.c (-3 / +3 lines)
Lines 1-5 Link Here
1
--- examples/simple.c.orig	2009-03-07 20:12:44.000000000 +0300
1
--- examples/simple.c.orig	2009-03-17 23:05:53.000000000 +0200
2
+++ examples/simple.c	2009-03-07 20:14:10.000000000 +0300
2
+++ examples/simple.c	2010-02-03 14:17:13.000000000 +0200
3
@@ -6,6 +6,7 @@
3
@@ -6,6 +6,7 @@
4
 */
4
 */
5
 
5
 
Lines 7-10 Link Here
7
+#include <stdlib.h>
7
+#include <stdlib.h>
8
 #include <ftdi.h>
8
 #include <ftdi.h>
9
 
9
 
10
 int main(int argc, char **argv)
10
 int main(void)
(-)libftdi/pkg-plist (-1 / +10 lines)
Lines 1-13 Link Here
1
bin/baud_test
1
bin/bitbang
2
bin/bitbang
2
bin/bitbang2
3
bin/bitbang2
3
bin/bitbang_cbus
4
bin/bitbang_cbus
4
bin/bitbang_ft2232
5
bin/bitbang_ft2232
5
bin/find_all
6
bin/find_all
7
%%BOOST%%bin/find_all_pp
6
bin/libftdi-config
8
bin/libftdi-config
9
bin/serial_read
7
bin/simple
10
bin/simple
8
include/ftdi.h
11
include/ftdi.h
12
%%BOOST%%include/ftdi.hpp
9
lib/libftdi.a
13
lib/libftdi.a
10
lib/libftdi.la
14
lib/libftdi.la
11
lib/libftdi.so
15
lib/libftdi.so
12
lib/libftdi.so.15
16
lib/libftdi.so.18
17
%%BOOST%%lib/libftdipp.a
18
%%BOOST%%lib/libftdipp.la
19
%%BOOST%%lib/libftdipp.so
20
%%BOOST%%lib/libftdipp.so.18
13
libdata/pkgconfig/libftdi.pc
21
libdata/pkgconfig/libftdi.pc
22
%%BOOST%%libdata/pkgconfig/libftdipp.pc

Return to bug 143556