aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorstefan <stefan@FreeBSD.org>2013-05-05 17:41:24 +0800
committerstefan <stefan@FreeBSD.org>2013-05-05 17:41:24 +0800
commit047ecb61af0951a435401f701ec1d420af6e2d53 (patch)
tree1ab818b490b83fbe46dcd041676b766af975eed4 /devel
parentec642ddc643c8ddcfeee47498be136b86aee10b9 (diff)
downloadfreebsd-ports-gnome-047ecb61af0951a435401f701ec1d420af6e2d53.tar.gz
freebsd-ports-gnome-047ecb61af0951a435401f701ec1d420af6e2d53.tar.zst
freebsd-ports-gnome-047ecb61af0951a435401f701ec1d420af6e2d53.zip
- Update to 0.20.
- Add option for Python bindings. PR: 170537 [1] 170241 [2] Submitted by: Michael Zoon <zoon01@nas4free.org> [1] Craig Leres <leres@ee.lbl.gov> [2] Approved by: maintainer timeout (~9 months)
Diffstat (limited to 'devel')
-rw-r--r--devel/libftdi/Makefile18
-rw-r--r--devel/libftdi/distinfo4
-rw-r--r--devel/libftdi/files/patch-examples_serial_read.c10
-rw-r--r--devel/libftdi/pkg-plist6
4 files changed, 18 insertions, 20 deletions
diff --git a/devel/libftdi/Makefile b/devel/libftdi/Makefile
index 9964eb4d3b6c..9be36eb6acda 100644
--- a/devel/libftdi/Makefile
+++ b/devel/libftdi/Makefile
@@ -2,15 +2,16 @@
# $FreeBSD$
PORTNAME= libftdi
-PORTVERSION= 0.18
-PORTREVISION= 1
+PORTVERSION= 0.20
CATEGORIES= devel
MASTER_SITES= http://www.intra2net.com/en/developer/libftdi/download/
MAINTAINER= o.davydenko@gmail.com
-COMMENT= Library (using libusb) to talk to FTDI chips
+COMMENT= A library (using libusb) to talk to FTDI chips
-OPTIONS_DEFINE= BOOST
+OPTIONS_DEFINE+= BOOST PYTHON
+BOOST_DESC= Build with boost
+PYTHON_DESC= Python bindings
USE_AUTOTOOLS= autoconf libtool automake
GNU_CONFIGURE= yes
@@ -26,11 +27,18 @@ PORTDOCS= COPYING.LIB ChangeLog README
PLIST_SUB+= BOOST=""
CONFIGURE_ARGS+= --with-boost
CXXFLAGS+= "-I${LOCALBASE}/include"
-LIB_DEPENDS+= boost_system:${PORTSDIR}/devel/boost-libs
+LIB_DEPENDS+= boost_system.4:${PORTSDIR}/devel/boost-libs
.else
PLIST_SUB+= BOOST="@comment "
CONFIGURE_ARGS+= --without-boost
.endif
+.if ${PORT_OPTIONS:MPYTHON}
+PLIST_SUB+= PYTHON=""
+CONFIGURE_ARGS+= --enable-python-binding
+USE_PYTHON= yes
+.else
+PLIST_SUB+= PYTHON="@comment "
+.endif
EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure.in
diff --git a/devel/libftdi/distinfo b/devel/libftdi/distinfo
index 1a3c5b544348..d8bffde97a34 100644
--- a/devel/libftdi/distinfo
+++ b/devel/libftdi/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libftdi-0.18.tar.gz) = 5b6f3c3ee51c6aa24d3b87135e01762cf68821d1c3599d87d349fea4ede74c62
-SIZE (libftdi-0.18.tar.gz) = 398380
+SHA256 (libftdi-0.20.tar.gz) = 3176d5b5986438f33f5208e690a8bfe90941be501cc0a72118ce3d338d4b838e
+SIZE (libftdi-0.20.tar.gz) = 423570
diff --git a/devel/libftdi/files/patch-examples_serial_read.c b/devel/libftdi/files/patch-examples_serial_read.c
deleted file mode 100644
index 19d34ba9bf14..000000000000
--- a/devel/libftdi/files/patch-examples_serial_read.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- 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>
diff --git a/devel/libftdi/pkg-plist b/devel/libftdi/pkg-plist
index d2ad02f0af69..b45ad800b602 100644
--- a/devel/libftdi/pkg-plist
+++ b/devel/libftdi/pkg-plist
@@ -6,17 +6,17 @@ bin/bitbang_ft2232
bin/find_all
%%BOOST%%bin/find_all_pp
bin/libftdi-config
-bin/serial_read
+bin/serial_test
bin/simple
include/ftdi.h
%%BOOST%%include/ftdi.hpp
lib/libftdi.a
lib/libftdi.la
lib/libftdi.so
-lib/libftdi.so.19
+lib/libftdi.so.21
%%BOOST%%lib/libftdipp.a
%%BOOST%%lib/libftdipp.la
%%BOOST%%lib/libftdipp.so
-%%BOOST%%lib/libftdipp.so.19
+%%BOOST%%lib/libftdipp.so.21
libdata/pkgconfig/libftdi.pc
%%BOOST%%libdata/pkgconfig/libftdipp.pc