diff options
author | jperkin <jperkin@pkgsrc.org> | 2021-12-07 16:42:13 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2021-12-07 16:42:13 +0000 |
commit | f8974d8b3610483602e46183abbc3059f9435371 (patch) | |
tree | 25be2715511d23b80c560675b291724f657da185 /comms/libhidapi | |
parent | f395036adf59ce42c5d34ce4eeb8fcd014d3f6ab (diff) | |
download | pkgsrc-f8974d8b3610483602e46183abbc3059f9435371.tar.gz |
libhidapi: Support install on Darwin.
Diffstat (limited to 'comms/libhidapi')
-rw-r--r-- | comms/libhidapi/Makefile | 10 | ||||
-rw-r--r-- | comms/libhidapi/PLIST | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/comms/libhidapi/Makefile b/comms/libhidapi/Makefile index 427d018dc94..c1539a8265c 100644 --- a/comms/libhidapi/Makefile +++ b/comms/libhidapi/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2021/11/20 18:59:05 nia Exp $ +# $NetBSD: Makefile,v 1.5 2021/12/07 16:42:13 jperkin Exp $ GITHUB_PROJECT= hidapi GITHUB_TAG= ${GITHUB_PROJECT}-0.11.0 @@ -24,6 +24,14 @@ PKGCONFIG_OVERRIDE+= pc/hidapi-hidraw.pc.in PKGCONFIG_OVERRIDE+= pc/hidapi-libusb.pc.in PKGCONFIG_OVERRIDE+= pc/hidapi.pc.in +PLIST_VARS+= libusb + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} != "Darwin" +PLIST.libusb= yes +.endif + pre-configure: cd ${WRKSRC} && ${SH} ./bootstrap diff --git a/comms/libhidapi/PLIST b/comms/libhidapi/PLIST index 89cd367c377..2f5696142f7 100644 --- a/comms/libhidapi/PLIST +++ b/comms/libhidapi/PLIST @@ -1,6 +1,6 @@ -@comment $NetBSD: PLIST,v 1.3 2021/11/20 18:59:05 nia Exp $ +@comment $NetBSD: PLIST,v 1.4 2021/12/07 16:42:13 jperkin Exp $ include/hidapi/hidapi.h -include/hidapi/hidapi_libusb.h +${PLIST.libusb}include/hidapi/hidapi_libusb.h lib/libhidapi.la lib/pkgconfig/hidapi.pc share/doc/hidapi/AUTHORS.txt |