git: f3252d9b43f3 - main - misc/libiio: Update 0.23 → 0.25
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Aug 2023 16:25:07 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=f3252d9b43f323c9c8938e60fc6c9201756ba167 commit f3252d9b43f323c9c8938e60fc6c9201756ba167 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-08-11 14:52:24 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-08-11 16:25:05 +0000 misc/libiio: Update 0.23 → 0.25 Reported by: portscout --- misc/libiio/Makefile | 9 ++++++--- misc/libiio/distinfo | 6 +++--- misc/libiio/files/patch-CMakeLists.txt | 24 ++++++++++++++++++++++++ misc/libiio/pkg-plist | 3 +-- 4 files changed, 34 insertions(+), 8 deletions(-) diff --git a/misc/libiio/Makefile b/misc/libiio/Makefile index 10176d393058..8dc39b0ebdd1 100644 --- a/misc/libiio/Makefile +++ b/misc/libiio/Makefile @@ -1,7 +1,6 @@ PORTNAME= libiio DISTVERSIONPREFIX= v -DISTVERSION= 0.23 -PORTREVISION= 2 +DISTVERSION= 0.25 CATEGORIES= misc MAINTAINER= yuri@FreeBSD.org @@ -13,15 +12,19 @@ LICENSE_FILE= ${WRKSRC}/COPYING.txt LIB_DEPENDS= libavahi-client.so:net/avahi-app -USES= cmake gnome iconv localbase +USES= cmake:testing gnome iconv localbase USE_GNOME= libxml2 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= analogdevicesinc +CMAKE_TESTING_ON= WITH_TESTS + OPTIONS_DEFINE= DOCS PORTDOCS= * +# unclear how to run tests, see https://github.com/analogdevicesinc/libiio/issues/1028 + .include <bsd.port.mk> diff --git a/misc/libiio/distinfo b/misc/libiio/distinfo index a7e28e82da9c..cc7232d84c5b 100644 --- a/misc/libiio/distinfo +++ b/misc/libiio/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1641407244 -SHA256 (analogdevicesinc-libiio-v0.23_GH0.tar.gz) = df1577740ea93dca732e7d7c04786600cb083117901dee793f3d38980754af00 -SIZE (analogdevicesinc-libiio-v0.23_GH0.tar.gz) = 454077 +TIMESTAMP = 1691770004 +SHA256 (analogdevicesinc-libiio-v0.25_GH0.tar.gz) = 21972599a3c143ab1f98002ad2b3f28f4aff927fde5f677478311cd4e517730c +SIZE (analogdevicesinc-libiio-v0.25_GH0.tar.gz) = 518247 diff --git a/misc/libiio/files/patch-CMakeLists.txt b/misc/libiio/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..dc6190bccf85 --- /dev/null +++ b/misc/libiio/files/patch-CMakeLists.txt @@ -0,0 +1,24 @@ +--- CMakeLists.txt.orig 2023-08-11 16:09:06 UTC ++++ CMakeLists.txt +@@ -143,18 +143,9 @@ endif() + + option(WITH_USB_BACKEND "Enable the libusb backend" ON) + if (WITH_USB_BACKEND) +- find_package(PkgConfig) +- if (PkgConfig_FOUND) +- pkg_check_modules(LIBUSB libusb-1.0) +- if (NOT LIBUSB_FOUND) +- #Handle FreeBSD libusb and Linux libusb-1.0 libraries +- find_library(LIBUSB_LIBRARIES NAMES usb-1.0 usb) +- find_path(LIBUSB_INCLUDE_DIR libusb.h PATH_SUFFIXES libusb-1.0) +- else() +- set(LIBUSB_LIBRARIES ${LIBUSB_LINK_LIBRARIES}) +- set(LIBUSB_INCLUDE_DIR ${LIBUSB_INCLUDE_DIRS}) +- endif() +- endif() ++ #Handle FreeBSD libusb and Linux libusb-1.0 libraries ++ find_library(LIBUSB_LIBRARIES NAMES usb-1.0 usb) ++ find_path(LIBUSB_INCLUDE_DIR libusb.h PATH_SUFFIXES libusb-1.0) + if (NOT LIBUSB_LIBRARIES OR NOT LIBUSB_INCLUDE_DIR) + message(SEND_ERROR "Unable to find libusb-1.0 dependency.\n" + "If you want to disable the USB backend, set WITH_USB_BACKEND=OFF.") diff --git a/misc/libiio/pkg-plist b/misc/libiio/pkg-plist index dd041faac216..3ca4949e3bf3 100644 --- a/misc/libiio/pkg-plist +++ b/misc/libiio/pkg-plist @@ -1,4 +1,3 @@ -bin/iio_adi_xflow_check bin/iio_attr bin/iio_genxml bin/iio_info @@ -9,5 +8,5 @@ bin/iio_writedev include/iio.h lib/libiio.so lib/libiio.so.0 -lib/libiio.so.0.23 +lib/libiio.so.0.25 libdata/pkgconfig/libiio.pc