Import libftdi1-1.4.
libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232D, FT245R, FT232H and FT230X including the popular bitbang mode. The library is linked with programs in userspace, no kernel driver required. ok benoit@
This commit is contained in:
parent
24fe523605
commit
6ec3bd2873
37
devel/libftdi1/Makefile
Normal file
37
devel/libftdi1/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/11/03 05:59:52 bentley Exp $
|
||||
|
||||
COMMENT = libftdi, interface to ftdi debug device
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
V = 1.4
|
||||
DISTNAME = libftdi1-$V
|
||||
|
||||
SHARED_LIBS += ftdi1 0.0 # 2.4
|
||||
SHARED_LIBS += ftdipp1 0.0 # 2.4
|
||||
|
||||
HOMEPAGE = https://www.intra2net.com/en/developer/libftdi/
|
||||
|
||||
# library LGPLv2.1 only; c++ wrapper GPLv2 only with linking exception
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} c confuse intl m usb-1.0
|
||||
|
||||
MASTER_SITES = https://www.intra2net.com/en/developer/libftdi/download/
|
||||
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
COMPILER = base-clang ports-gcc
|
||||
|
||||
MODULES = devel/cmake \
|
||||
lang/python
|
||||
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
|
||||
BUILD_DEPENDS = devel/boost \
|
||||
devel/swig
|
||||
LIB_DEPENDS = devel/gettext \
|
||||
devel/libusb1 \
|
||||
devel/libconfuse
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/libftdi1/distinfo
Normal file
2
devel/libftdi1/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libftdi1-1.4.tar.bz2) = 7Db7SQgPg0aQwkAIMope9C089YTvQGDzo1qkaByzG3Q=
|
||||
SIZE (libftdi1-1.4.tar.bz2) = 109521
|
16
devel/libftdi1/patches/patch-test_baudrate_cpp
Normal file
16
devel/libftdi1/patches/patch-test_baudrate_cpp
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-test_baudrate_cpp,v 1.1.1.1 2018/11/03 05:59:52 bentley Exp $
|
||||
|
||||
Don't accidentally include the ftdi.h from libftdi (as opposed to libftdi1).
|
||||
|
||||
Index: test/baudrate.cpp
|
||||
--- test/baudrate.cpp.orig
|
||||
+++ test/baudrate.cpp
|
||||
@@ -12,7 +12,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
-#include <ftdi.h>
|
||||
+#include "../src/ftdi.h"
|
||||
|
||||
#define BOOST_TEST_DYN_LINK
|
||||
#include <boost/test/unit_test.hpp>
|
4
devel/libftdi1/pkg/DESCR
Normal file
4
devel/libftdi1/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM,
|
||||
FT2232C, FT2232D, FT245R, FT232H and FT230X including the popular bitbang
|
||||
mode. The library is linked with programs in userspace, no kernel driver
|
||||
required.
|
26
devel/libftdi1/pkg/PLIST
Normal file
26
devel/libftdi1/pkg/PLIST
Normal file
@ -0,0 +1,26 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/11/03 05:59:52 bentley Exp $
|
||||
@bin bin/ftdi_eeprom
|
||||
bin/libftdi1-config
|
||||
include/libftdi1/
|
||||
include/libftdi1/ftdi.h
|
||||
include/libftdi1/ftdi.hpp
|
||||
lib/cmake/
|
||||
lib/cmake/libftdi1/
|
||||
lib/cmake/libftdi1/LibFTDI1Config.cmake
|
||||
lib/cmake/libftdi1/LibFTDI1ConfigVersion.cmake
|
||||
lib/cmake/libftdi1/UseLibFTDI1.cmake
|
||||
lib/libftdi1.a
|
||||
@lib lib/libftdi1.so.${LIBftdi1_VERSION}
|
||||
lib/libftdipp1.a
|
||||
@lib lib/libftdipp1.so.${LIBftdipp1_VERSION}
|
||||
lib/pkgconfig/libftdi1.pc
|
||||
lib/pkgconfig/libftdipp1.pc
|
||||
lib/python${MODPY_VERSION}/site-packages/_ftdi1.so
|
||||
lib/python${MODPY_VERSION}/site-packages/ftdi1.py
|
||||
share/doc/libftdi1/
|
||||
share/doc/libftdi1/example.conf
|
||||
share/libftdi/
|
||||
share/libftdi/examples/
|
||||
share/libftdi/examples/cbus.py
|
||||
share/libftdi/examples/complete.py
|
||||
share/libftdi/examples/simple.py
|
Loading…
Reference in New Issue
Block a user