git: 1d6e520a3120 - main - misc/liblxi: Update to 1.16

From: Dmitri Goutnik <dmgk_at_FreeBSD.org>
Date: Thu, 28 Apr 2022 11:36:02 UTC
The branch main has been updated by dmgk:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1d6e520a31204078dea5c0de91b65ae699607707

commit 1d6e520a31204078dea5c0de91b65ae699607707
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-04-27 22:21:26 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-04-28 11:30:23 +0000

    misc/liblxi: Update to 1.16
    
    Changes:        https://github.com/lxi-tools/liblxi/releases/tag/v1.16
---
 misc/liblxi/Makefile                    | 19 ++++++-------------
 misc/liblxi/distinfo                    |  6 +++---
 misc/liblxi/files/patch-src_meson.build | 21 +++++++++++++++++++++
 misc/liblxi/pkg-plist                   |  2 ++
 4 files changed, 32 insertions(+), 16 deletions(-)

diff --git a/misc/liblxi/Makefile b/misc/liblxi/Makefile
index 7df79f65e166..4b4a9c2d5afe 100644
--- a/misc/liblxi/Makefile
+++ b/misc/liblxi/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	liblxi
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.13
-PORTREVISION=	2
+DISTVERSION=	1.16
 CATEGORIES=	misc
 
 MAINTAINER=	dmgk@FreeBSD.org
@@ -10,23 +9,17 @@ COMMENT=	Library for communicating with LXI compatible instruments
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libxml2.so:textproc/libxml2
+LIB_DEPENDS=	libavahi-client.so:net/avahi-app \
+		libxml2.so:textproc/libxml2
 
-USES=		autoreconf libtool localbase pkgconfig
+USES=		meson pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	lxi-tools
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--disable-static
-INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
-PORTDOCS=	README
+PORTDOCS=	README.md
 
-OPTIONS_DEFINE=	AVAHI DOCS
-OPTIONS_SUB=	yes
-
-AVAHI_CONFIGURE_ENABLE=	avahi
-AVAHI_LIB_DEPENDS=	libavahi-client.so:net/avahi-app
+OPTIONS_DEFINE=	DOCS
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/misc/liblxi/distinfo b/misc/liblxi/distinfo
index 88d225875f49..8787dd845b1c 100644
--- a/misc/liblxi/distinfo
+++ b/misc/liblxi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1525647616
-SHA256 (lxi-tools-liblxi-v1.13_GH0.tar.gz) = 5c2a97b1d098ac49f6c01c918298db8b3f7af505e463b4d3d8952aff447e9ac2
-SIZE (lxi-tools-liblxi-v1.13_GH0.tar.gz) = 19359
+TIMESTAMP = 1651088133
+SHA256 (lxi-tools-liblxi-v1.16_GH0.tar.gz) = 95f097731951e2b4f44f243c365bbd4cd0601280cdde28ee191b5fb4f20d1d1f
+SIZE (lxi-tools-liblxi-v1.16_GH0.tar.gz) = 24667
diff --git a/misc/liblxi/files/patch-src_meson.build b/misc/liblxi/files/patch-src_meson.build
new file mode 100644
index 000000000000..d964077fa276
--- /dev/null
+++ b/misc/liblxi/files/patch-src_meson.build
@@ -0,0 +1,21 @@
+--- src/meson.build.orig	2022-02-03 05:25:05 UTC
++++ src/meson.build
+@@ -18,10 +18,6 @@ endif
+   add_project_arguments('-DHAVE_AVAHI', language: 'c')
+ endif
+ 
+-tirpc_dep = dependency('libtirpc', required: true)
+-tirpc_incpath = join_paths(tirpc_dep.get_variable(pkgconfig: 'includedir'), 'tirpc')
+-tirpc_incdir = include_directories(tirpc_incpath)
+-
+ liblxi_c_args = [
+   '-Wno-unused-variable',
+   '-Wno-unused-parameter',
+@@ -36,7 +32,6 @@ liblxi = shared_library(
+   dependencies: liblxi_deps,
+   install: true,
+   c_args: liblxi_c_args,
+-  include_directories: tirpc_incdir,
+   link_args: ['-fvisibility=hidden', '-Wl,-init,init'],
+   version: '1.0.0',
+ )
diff --git a/misc/liblxi/pkg-plist b/misc/liblxi/pkg-plist
index 75cf561611cf..02957c887203 100644
--- a/misc/liblxi/pkg-plist
+++ b/misc/liblxi/pkg-plist
@@ -2,9 +2,11 @@ include/lxi.h
 lib/liblxi.so
 lib/liblxi.so.1
 lib/liblxi.so.1.0.0
+libdata/pkgconfig/liblxi.pc
 man/man3/lxi_connect.3.gz
 man/man3/lxi_disconnect.3.gz
 man/man3/lxi_discover.3.gz
+man/man3/lxi_discover_if.3.gz
 man/man3/lxi_init.3.gz
 man/man3/lxi_receive.3.gz
 man/man3/lxi_send.3.gz