ports/comms/hidapi/files/patch-configure.ac
Tijl Coosemans b8491948a5 The libusb project has adopted hidapi. Update to their latest release,
0.10.1.  Bump py-hidapi so it gets rebuilt to use new functions.
Hand over to maintainer of py-hidapi so the two can be maintained together.

Reported by:	Corey Stephan (marquette.edu)
Tested by:	ehaupt
2021-03-17 10:01:26 +00:00

18 lines
684 B
Text

--- configure.ac.orig 2020-11-24 11:39:27 UTC
+++ configure.ac
@@ -82,13 +82,11 @@ case $host in
os="freebsd"
threads="pthreads"
- CFLAGS="$CFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
- LIBS="${LIBS}"
PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.9], true, [hidapi_lib_error libusb-1.0])
LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} $libusb_LIBS"
CFLAGS_LIBUSB="${CFLAGS_LIBUSB} $libusb_CFLAGS"
- AC_CHECK_LIB([iconv], [iconv_open], [LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} -liconv"], [hidapi_lib_error libiconv])
+ AM_ICONV
+ LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} ${LTLIBICONV}"
;;
*-kfreebsd*)
AC_MSG_RESULT([ (kFreeBSD back-end)])