diff options
Diffstat (limited to 'devel/libftdi1')
-rw-r--r-- | devel/libftdi1/Makefile | 7 | ||||
-rw-r--r-- | devel/libftdi1/PLIST | 6 | ||||
-rw-r--r-- | devel/libftdi1/distinfo | 13 | ||||
-rw-r--r-- | devel/libftdi1/patches/patch-11a50ae5b80b3e03694a19e84513345d0794e563-CMakeLists.txt | 28 | ||||
-rw-r--r-- | devel/libftdi1/patches/patch-CMakeLists.txt | 22 | ||||
-rw-r--r-- | devel/libftdi1/patches/patch-cdb28383402d248dbc6062f4391b038375c52385-CMakeLists.txt | 39 |
6 files changed, 104 insertions, 11 deletions
diff --git a/devel/libftdi1/Makefile b/devel/libftdi1/Makefile index b91032f69e6..d4ae85ce19f 100644 --- a/devel/libftdi1/Makefile +++ b/devel/libftdi1/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.39 2021/01/01 08:24:40 ryoon Exp $ +# $NetBSD: Makefile,v 1.40 2021/03/07 10:51:06 kleink Exp $ -DISTNAME= libftdi1-1.4 -PKGREVISION= 2 +DISTNAME= libftdi1-1.5 CATEGORIES= devel MASTER_SITES= https://www.intra2net.com/en/developer/libftdi/download/ EXTRACT_SUFX= .tar.bz2 @@ -21,6 +20,8 @@ CMAKE_ARGS+= -Wno-dev CMAKE_ARGS+= -DEXAMPLES=off CMAKE_ARGS+= -DDOCUMENTATION=off CMAKE_ARGS+= -DLIB_SUFFIX="" +CMAKE_ARGS+= -DFTDIPP=on +CMAKE_ARGS+= -DPYTHON_BINDINGS=on PKGCONFIG_OVERRIDE+= libftdi1.pc.in PKGCONFIG_OVERRIDE+= libftdipp1.pc.in diff --git a/devel/libftdi1/PLIST b/devel/libftdi1/PLIST index 2d6390ac113..53fbed55b7b 100644 --- a/devel/libftdi1/PLIST +++ b/devel/libftdi1/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2020/03/24 16:21:12 nia Exp $ +@comment $NetBSD: PLIST,v 1.4 2021/03/07 10:51:06 kleink Exp $ bin/ftdi_eeprom bin/libftdi1-config include/libftdi1/ftdi.h @@ -9,10 +9,10 @@ lib/cmake/libftdi1/UseLibFTDI1.cmake lib/libftdi1.a lib/libftdi1.so lib/libftdi1.so.2 -lib/libftdi1.so.2.4.0 +lib/libftdi1.so.2.5.0 lib/libftdipp1.a lib/libftdipp1.so -lib/libftdipp1.so.2.4.0 +lib/libftdipp1.so.2.5.0 lib/libftdipp1.so.3 lib/pkgconfig/libftdi1.pc lib/pkgconfig/libftdipp1.pc diff --git a/devel/libftdi1/distinfo b/devel/libftdi1/distinfo index 895bbadcfe1..297445054df 100644 --- a/devel/libftdi1/distinfo +++ b/devel/libftdi1/distinfo @@ -1,6 +1,9 @@ -$NetBSD: distinfo,v 1.4 2020/03/24 16:21:12 nia Exp $ +$NetBSD: distinfo,v 1.5 2021/03/07 10:51:06 kleink Exp $ -SHA1 (libftdi1-1.4.tar.bz2) = 5b14cebab8168e12dd6c2b5325a29ad93ed40f3d -RMD160 (libftdi1-1.4.tar.bz2) = c7160d343c6098eb1f26f54d37b221113985e4e3 -SHA512 (libftdi1-1.4.tar.bz2) = dbab74f7bc35ca835b9c6dd5b70a64816948d65da1f73a9ece37a0f0f630bd0df1a676543acc517b02a718bc34ba4f7a30cbc48b6eed1c154c917f8ef0a358fc -Size (libftdi1-1.4.tar.bz2) = 109521 bytes +SHA1 (libftdi1-1.5.tar.bz2) = 0b4dc9763342d094d2b5e74ced7d10d574b4758d +RMD160 (libftdi1-1.5.tar.bz2) = 4b763717d47f9ac5891d7a4d762a989349b7af3c +SHA512 (libftdi1-1.5.tar.bz2) = c525b2ab6aff9ef9254971ae7d57f3549a36a36875765c48f947d52532814a2a004de1232389d4fe824a8c8ab84277b08427308573476e1da9b7db83db802f6f +Size (libftdi1-1.5.tar.bz2) = 116297 bytes +SHA1 (patch-11a50ae5b80b3e03694a19e84513345d0794e563-CMakeLists.txt) = 0350988ba545a69191f3daddc92582c87ca5787f +SHA1 (patch-CMakeLists.txt) = 8fa0ba4d490a9c0b22bef382fc25aeb8ee1911bc +SHA1 (patch-cdb28383402d248dbc6062f4391b038375c52385-CMakeLists.txt) = 375b9e113d5d86c8a014c2892f9e412a302dd8a4 diff --git a/devel/libftdi1/patches/patch-11a50ae5b80b3e03694a19e84513345d0794e563-CMakeLists.txt b/devel/libftdi1/patches/patch-11a50ae5b80b3e03694a19e84513345d0794e563-CMakeLists.txt new file mode 100644 index 00000000000..a53b554df21 --- /dev/null +++ b/devel/libftdi1/patches/patch-11a50ae5b80b3e03694a19e84513345d0794e563-CMakeLists.txt @@ -0,0 +1,28 @@ +$NetBSD: patch-11a50ae5b80b3e03694a19e84513345d0794e563-CMakeLists.txt,v 1.1 2021/03/07 10:51:06 kleink Exp $ + +commit 11a50ae5b80b3e03694a19e84513345d0794e563 +Author: Thomas Jarosch <thomas.jarosch@intra2net.com> +Date: Mon Aug 24 19:27:22 2020 +0200 + + Fix building unit tests without FTDIPP + + Needed to run the baudrate unit tests. + + Probably another fallout from: + + **************************** + commit 0209a3633dc877a577af07d883eb5059e22f6a91 + + cmake: do not check for g++ when FTDIPP is disabled + **************************** + +--- CMakeLists.txt.orig 2020-07-07 19:32:55.000000000 +0000 ++++ CMakeLists.txt +@@ -150,6 +150,7 @@ if ( EXAMPLES ) + endif () + add_subdirectory(packages) + if ( BUILD_TESTS ) ++ project(libftdi1 C CXX) + add_subdirectory(test) + endif () + diff --git a/devel/libftdi1/patches/patch-CMakeLists.txt b/devel/libftdi1/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..fee80531ca2 --- /dev/null +++ b/devel/libftdi1/patches/patch-CMakeLists.txt @@ -0,0 +1,22 @@ +$NetBSD: patch-CMakeLists.txt,v 1.3 2021/03/07 10:51:06 kleink Exp $ + +Don't append libusb to the CMake package: It picks up the one from +DESTDIR, and the dynamic linker does the right thing already. + +--- CMakeLists.txt.orig 2020-07-07 19:32:55.000000000 +0000 ++++ CMakeLists.txt +@@ -185,14 +185,11 @@ set ( LIBFTDI_INCLUDE_DIR ${includedir} + set ( LIBFTDI_INCLUDE_DIRS ${LIBFTDI_INCLUDE_DIR} ) + set ( LIBFTDI_LIBRARY ftdi1 ) + set ( LIBFTDI_LIBRARIES ${LIBFTDI_LIBRARY} ) +-list ( APPEND LIBFTDI_LIBRARIES ${LIBUSB_LIBRARIES} ) + set ( LIBFTDI_STATIC_LIBRARY ftdi1.a ) + set ( LIBFTDI_STATIC_LIBRARIES ${LIBFTDI_STATIC_LIBRARY} ) +-list ( APPEND LIBFTDI_STATIC_LIBRARIES ${LIBUSB_LIBRARIES} ) + if ( FTDIPP ) + set ( LIBFTDIPP_LIBRARY ftdipp1 ) + set ( LIBFTDIPP_LIBRARIES ${LIBFTDIPP_LIBRARY} ) +- list ( APPEND LIBFTDIPP_LIBRARIES ${LIBUSB_LIBRARIES} ) + endif () + set ( LIBFTDI_LIBRARY_DIRS ${libdir} ) + set ( LIBFTDI_ROOT_DIR ${prefix} ) diff --git a/devel/libftdi1/patches/patch-cdb28383402d248dbc6062f4391b038375c52385-CMakeLists.txt b/devel/libftdi1/patches/patch-cdb28383402d248dbc6062f4391b038375c52385-CMakeLists.txt new file mode 100644 index 00000000000..9ccd8ccfadd --- /dev/null +++ b/devel/libftdi1/patches/patch-cdb28383402d248dbc6062f4391b038375c52385-CMakeLists.txt @@ -0,0 +1,39 @@ +$NetBSD: patch-cdb28383402d248dbc6062f4391b038375c52385-CMakeLists.txt,v 1.1 2021/03/07 10:51:06 kleink Exp $ + +commit cdb28383402d248dbc6062f4391b038375c52385 +Author: Fabrice Fontaine <fontaine.fabrice@gmail.com> +Date: Fri Jul 17 21:25:03 2020 +0200 + + CMakeLists.txt: fix paths when FTDIPP is set + + Use the same project name (i.e. libftdi1 and not libftdipp1) when FTDIPP + is enabled as suggested by Aurelien Jarno in + http://developer.intra2net.com/mailarchive/html/libftdi/2020/msg00044.html + + Without this change, the libftdi1.pc config file defines the include + path as /usr/local/include/libftdipp1 while the ftdi.h file is actually + installed in /usr/local/include/libftdi1 + + This is an issue for example for libsigrok which will fail on: + + In file included from src/hardware/asix-sigma/protocol.c:27: + src/hardware/asix-sigma/protocol.h:28:10: fatal error: ftdi.h: No such file or directory + 28 | #include <ftdi.h> + | ^~~~~~~~ + + Fixes: + - http://autobuild.buildroot.org/results/1427f44e36752c337791597fab47a1889552a2fe + + Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> + +--- CMakeLists.txt.orig 2020-07-07 19:32:55.000000000 +0000 ++++ CMakeLists.txt +@@ -136,7 +136,7 @@ endif () + + add_subdirectory(src) + if ( FTDIPP ) +- project(libftdipp1 C CXX) ++ project(libftdi1 C CXX) + add_subdirectory(ftdipp) + endif () + if ( PYTHON_BINDINGS ) |