diff options
| -rw-r--r-- | devel/libftdi/Makefile | 27 | ||||
| -rw-r--r-- | devel/libftdi/distinfo | 6 | ||||
| -rw-r--r-- | devel/libftdi/files/patch-examples_baud_test.c | 10 | ||||
| -rw-r--r-- | devel/libftdi/files/patch-examples_bitbang.c | 10 | ||||
| -rw-r--r-- | devel/libftdi/files/patch-examples_bitbang2.c | 10 | ||||
| -rw-r--r-- | devel/libftdi/files/patch-examples_bitbang_ft2232.c | 10 | ||||
| -rw-r--r-- | devel/libftdi/files/patch-examples_find_all.c | 6 | ||||
| -rw-r--r-- | devel/libftdi/files/patch-examples_serial_read.c | 10 | ||||
| -rw-r--r-- | devel/libftdi/files/patch-examples_simple.c | 6 | ||||
| -rw-r--r-- | devel/libftdi/pkg-plist | 11 |
10 files changed, 89 insertions, 17 deletions
diff --git a/devel/libftdi/Makefile b/devel/libftdi/Makefile index e713511f78f3..26c59f771dde 100644 --- a/devel/libftdi/Makefile +++ b/devel/libftdi/Makefile @@ -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) diff --git a/devel/libftdi/distinfo b/devel/libftdi/distinfo index 7ed95abfb19c..877fb6f5c58b 100644 --- a/devel/libftdi/distinfo +++ b/devel/libftdi/distinfo @@ -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 diff --git a/devel/libftdi/files/patch-examples_baud_test.c b/devel/libftdi/files/patch-examples_baud_test.c new file mode 100644 index 000000000000..8cc5d9911851 --- /dev/null +++ b/devel/libftdi/files/patch-examples_baud_test.c @@ -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> + diff --git a/devel/libftdi/files/patch-examples_bitbang.c b/devel/libftdi/files/patch-examples_bitbang.c new file mode 100644 index 000000000000..e676fd573168 --- /dev/null +++ b/devel/libftdi/files/patch-examples_bitbang.c @@ -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) diff --git a/devel/libftdi/files/patch-examples_bitbang2.c b/devel/libftdi/files/patch-examples_bitbang2.c new file mode 100644 index 000000000000..a54e6898e02d --- /dev/null +++ b/devel/libftdi/files/patch-examples_bitbang2.c @@ -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) diff --git a/devel/libftdi/files/patch-examples_bitbang_ft2232.c b/devel/libftdi/files/patch-examples_bitbang_ft2232.c new file mode 100644 index 000000000000..4022fd603545 --- /dev/null +++ b/devel/libftdi/files/patch-examples_bitbang_ft2232.c @@ -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) diff --git a/devel/libftdi/files/patch-examples_find_all.c b/devel/libftdi/files/patch-examples_find_all.c index f4a15772d49e..269099a2d39a 100644 --- a/devel/libftdi/files/patch-examples_find_all.c +++ b/devel/libftdi/files/patch-examples_find_all.c @@ -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) diff --git a/devel/libftdi/files/patch-examples_serial_read.c b/devel/libftdi/files/patch-examples_serial_read.c new file mode 100644 index 000000000000..19d34ba9bf14 --- /dev/null +++ b/devel/libftdi/files/patch-examples_serial_read.c @@ -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> diff --git a/devel/libftdi/files/patch-examples_simple.c b/devel/libftdi/files/patch-examples_simple.c index 8aaf9e4a075e..c390d4ad45ae 100644 --- a/devel/libftdi/files/patch-examples_simple.c +++ b/devel/libftdi/files/patch-examples_simple.c @@ -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) diff --git a/devel/libftdi/pkg-plist b/devel/libftdi/pkg-plist index a500e0d54047..be30d54d0882 100644 --- a/devel/libftdi/pkg-plist +++ b/devel/libftdi/pkg-plist @@ -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 |
