pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/libhidapi libhidapi: Support install on Darwin.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/029d03df0869
branches:  trunk
changeset: 770709:029d03df0869
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Dec 07 16:42:13 2021 +0000

description:
libhidapi: Support install on Darwin.

diffstat:

 comms/libhidapi/Makefile |  10 +++++++++-
 comms/libhidapi/PLIST    |   4 ++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r c49e052664b8 -r 029d03df0869 comms/libhidapi/Makefile
--- a/comms/libhidapi/Makefile  Tue Dec 07 16:38:11 2021 +0000
+++ b/comms/libhidapi/Makefile  Tue Dec 07 16:42:13 2021 +0000
@@ -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-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 -r c49e052664b8 -r 029d03df0869 comms/libhidapi/PLIST
--- a/comms/libhidapi/PLIST     Tue Dec 07 16:38:11 2021 +0000
+++ b/comms/libhidapi/PLIST     Tue Dec 07 16:42:13 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index