pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libusb-compat Import buildlink3.mk file for deve...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52bd16a9c556
branches:  trunk
changeset: 374472:52bd16a9c556
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Tue Jan 23 14:31:45 2018 +0000

description:
Import buildlink3.mk file for devel/libusb-compat

libusb-compat is an API wrapper, emulating devel/libusb through the newer
code from devel/libusb1. On NetBSD, this has multiple advantages, such as
not requiring root privileges when accessing ugen(4) USB devices. We should
therefore consider to default to devel/libusb-compat instead of
devel/libusb on NetBSD at the very least.

Tested with devel/libftdi on NetBSD/amd64.

diffstat:

 devel/libusb-compat/buildlink3.mk |  13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r e5faa51c6a4e -r 52bd16a9c556 devel/libusb-compat/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libusb-compat/buildlink3.mk Tue Jan 23 14:31:45 2018 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/01/23 14:31:45 khorben Exp $
+
+BUILDLINK_TREE+=       libusb-compat
+
+.if !defined(LIBUSB_COMPAT_BUILDLINK3_MK)
+LIBUSB_COMPAT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libusb-compat+=  libusb-compat>=0.1.6rc2
+BUILDLINK_PKGSRCDIR.libusb-compat?=    ../../devel/libusb-compat
+
+.endif # LIBUSB_COMPAT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libusb-compat



Home | Main Index | Thread Index | Old Index