1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to 0.17

PR:             ports/143556
Submitted by:   Olexandr Davydenko <o.davydenko@gmail.com> (maintainer)
This commit is contained in:
Philip M. Gollucci 2010-02-10 03:10:33 +00:00
parent 4c86d51bb9
commit d5bad99c95
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249507
10 changed files with 89 additions and 17 deletions

View File

@ -6,15 +6,16 @@
#
PORTNAME= libftdi
PORTVERSION= 0.14
PORTREVISION= 1
PORTVERSION= 0.17
CATEGORIES= devel
MASTER_SITES= http://www.intra2net.com/en/developer/libftdi/download/
MAINTAINER= o.davydenko@gmail.com
COMMENT= A library (using libusb) to talk to FTDI chips
USE_AUTOTOOLS= libtool:22
OPTIONS= BOOST "Build with boost" off
USE_AUTOTOOLS= autoconf:262 libtool:22 automake:110
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
USE_LDCONFIG= yes
@ -24,17 +25,29 @@ PORTDOCS= COPYING.LIB ChangeLog README
.include <bsd.port.pre.mk>
.if defined(WITH_BOOST)
PLIST_SUB+= BOOST=""
CONFIGURE_ARGS+= --with-boost
CXXFLAGS+= "-I${LOCALBASE}/include"
LIB_DEPENDS+= boost_system.4:${PORTSDIR}/devel/boost-libs
.else
PLIST_SUB+= BOOST="@comment "
CONFIGURE_ARGS+= --without-boost
.endif
.if ${OSVERSION} < 800069
LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb
.else
EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure.in
USE_AUTOTOOLS+= autoconf:262
.endif
post-patch:
.if ${OSVERSION} >= 800069
${RM} -f ${WRKSRC}/configure
.endif
@${REINPLACE_CMD} -E -e \
's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \
${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
pre-configure:
@cd ${WRKSRC} && ${AUTORECONF}
post-install:
.if !defined(NOPORTDOCS)

View File

@ -1,3 +1,3 @@
MD5 (libftdi-0.14.tar.gz) = 43f20478e725aa5ba6cdae311ca0593d
SHA256 (libftdi-0.14.tar.gz) = b575ec0526efadf4bd6c8af4c62995aff6556c9ffcaf4725373dbcffda354175
SIZE (libftdi-0.14.tar.gz) = 368634
MD5 (libftdi-0.17.tar.gz) = 810c69cfaa078b49795c224ef9b6b851
SHA256 (libftdi-0.17.tar.gz) = d5c0275125ab68a431375083c9544899e578b8f98b83de1254386d0209feabf0
SIZE (libftdi-0.17.tar.gz) = 435901

View File

@ -0,0 +1,10 @@
--- examples/baud_test.c.orig 2010-02-03 14:19:36.000000000 +0200
+++ examples/baud_test.c 2010-02-03 14:19:43.000000000 +0200
@@ -31,6 +31,7 @@
#include <sys/time.h>
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <ftdi.h>

View File

@ -0,0 +1,10 @@
--- examples/bitbang.c.orig 2010-02-03 14:25:06.000000000 +0200
+++ examples/bitbang.c 2010-02-03 14:25:13.000000000 +0200
@@ -1,6 +1,7 @@
/* This program is distributed under the GPL, version 2 */
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#ifdef __WIN32__
#define sleep(x) Sleep(x)

View File

@ -0,0 +1,10 @@
--- examples/bitbang2.c.orig 2010-02-03 14:18:25.000000000 +0200
+++ examples/bitbang2.c 2010-02-03 14:18:34.000000000 +0200
@@ -30,6 +30,7 @@
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#ifdef __WIN32__
#define usleep(x) Sleep((x+999)/1000)

View File

@ -0,0 +1,10 @@
--- examples/bitbang_ft2232.c.orig 2010-02-03 14:18:48.000000000 +0200
+++ examples/bitbang_ft2232.c 2010-02-03 14:18:57.000000000 +0200
@@ -9,6 +9,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#ifdef __WIN32__
#define sleep(x) _sleep(x)

View File

@ -1,5 +1,5 @@
--- examples/find_all.c.orig 2009-03-07 20:18:06.000000000 +0300
+++ examples/find_all.c 2009-03-07 20:18:52.000000000 +0300
--- examples/find_all.c.orig 2009-03-17 23:06:40.000000000 +0200
+++ examples/find_all.c 2010-02-03 14:17:13.000000000 +0200
@@ -6,6 +6,7 @@
*/
@ -7,4 +7,4 @@
+#include <stdlib.h>
#include <ftdi.h>
int main(int argc, char **argv)
int main(void)

View File

@ -0,0 +1,10 @@
--- examples/serial_read.c.orig 2010-02-03 14:19:13.000000000 +0200
+++ examples/serial_read.c 2010-02-03 14:19:19.000000000 +0200
@@ -6,6 +6,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include <ftdi.h>

View File

@ -1,5 +1,5 @@
--- examples/simple.c.orig 2009-03-07 20:12:44.000000000 +0300
+++ examples/simple.c 2009-03-07 20:14:10.000000000 +0300
--- examples/simple.c.orig 2009-03-17 23:05:53.000000000 +0200
+++ examples/simple.c 2010-02-03 14:17:13.000000000 +0200
@@ -6,6 +6,7 @@
*/
@ -7,4 +7,4 @@
+#include <stdlib.h>
#include <ftdi.h>
int main(int argc, char **argv)
int main(void)

View File

@ -1,13 +1,22 @@
bin/baud_test
bin/bitbang
bin/bitbang2
bin/bitbang_cbus
bin/bitbang_ft2232
bin/find_all
%%BOOST%%bin/find_all_pp
bin/libftdi-config
bin/serial_read
bin/simple
include/ftdi.h
%%BOOST%%include/ftdi.hpp
lib/libftdi.a
lib/libftdi.la
lib/libftdi.so
lib/libftdi.so.15
lib/libftdi.so.18
%%BOOST%%lib/libftdipp.a
%%BOOST%%lib/libftdipp.la
%%BOOST%%lib/libftdipp.so
%%BOOST%%lib/libftdipp.so.18
libdata/pkgconfig/libftdi.pc
%%BOOST%%libdata/pkgconfig/libftdipp.pc