git: a25d8b2a6811 - main - comms/hidapi: Switch from cmake back to autoreconf build

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Thu, 07 Oct 2021 15:52:09 UTC
The branch main has been updated by ehaupt:

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

commit a25d8b2a68117b2fae70a8fc46df808b58e5dd60
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2021-10-07 15:52:00 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2021-10-07 15:52:05 +0000

    comms/hidapi: Switch from cmake back to autoreconf build
    
    Switch from cmake back to to autoreconf build as this broke
    comms/py-hidapi. Once this has been investigated and fixed we
    can switch back to cmake.
    
    Notified by:    pkg-fallout
---
 comms/hidapi/Makefile  |  6 +++++-
 comms/hidapi/pkg-plist | 19 +++++++++++--------
 2 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/comms/hidapi/Makefile b/comms/hidapi/Makefile
index aefe928eabd9..6f8e21853f59 100644
--- a/comms/hidapi/Makefile
+++ b/comms/hidapi/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	hidapi
 DISTVERSIONPREFIX=	${PORTNAME}-
 DISTVERSION=	0.11.0
+PORTREVISION=	1
 CATEGORIES=	comms
 
 MAINTAINER=	ehaupt@FreeBSD.org
@@ -9,11 +10,14 @@ COMMENT=	Library to access USB HID-class devices
 LICENSE=	BSD3CLAUSE GPLv3
 LICENSE_COMB=	dual
 
-USES=		cmake gettext-tools iconv:wchar_t libtool localbase pkgconfig
+USES=		autoreconf gettext-tools iconv:wchar_t libtool localbase \
+		pkgconfig
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	libusb
 
+GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	DOCS
diff --git a/comms/hidapi/pkg-plist b/comms/hidapi/pkg-plist
index e835d67b0d96..dd74e0e56603 100644
--- a/comms/hidapi/pkg-plist
+++ b/comms/hidapi/pkg-plist
@@ -1,10 +1,13 @@
 include/hidapi/hidapi.h
 include/hidapi/hidapi_libusb.h
-lib/cmake/hidapi/hidapi-config-version.cmake
-lib/cmake/hidapi/hidapi-config.cmake
-lib/cmake/hidapi/hidapi-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/hidapi/hidapi.cmake
-lib/libhidapi-libusb.so
-lib/libhidapi-libusb.so.0
-lib/libhidapi-libusb.so.0.11.0
-libdata/pkgconfig/hidapi-libusb.pc
+lib/libhidapi.a
+lib/libhidapi.so
+lib/libhidapi.so.0
+lib/libhidapi.so.0.0.0
+libdata/pkgconfig/hidapi.pc
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS.txt
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE-bsd.txt
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE-gpl3.txt
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE-orig.txt
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
+%%PORTDOCS%%%%DOCSDIR%%/README.md