summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2018-01-23 14:31:45 +0000
committerkhorben <khorben@pkgsrc.org>2018-01-23 14:31:45 +0000
commit26e83d8535d57f5491e58b11eb1829f645bea417 (patch)
tree3877971f353ea79199603af97923e56b89fbeaa4 /devel
parentae1aea8f5671bcf1fde799fcc814b79dfc118a49 (diff)
downloadpkgsrc-26e83d8535d57f5491e58b11eb1829f645bea417.tar.gz
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 (limited to 'devel')
-rw-r--r--devel/libusb-compat/buildlink3.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/libusb-compat/buildlink3.mk b/devel/libusb-compat/buildlink3.mk
new file mode 100644
index 00000000000..de9c59fb88c
--- /dev/null
+++ b/devel/libusb-compat/buildlink3.mk
@@ -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