summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2018-02-10 13:53:46 +0000
committerkhorben <khorben@pkgsrc.org>2018-02-10 13:53:46 +0000
commit8be8819156643b4539320837d436d225812cb9b3 (patch)
tree7af2c189305adbc0cb10601df238bfa5aee248d8 /cross
parent36b45b48dbb61284506c1f140a41aea3f6c32f7a (diff)
downloadpkgsrc-8be8819156643b4539320837d436d225812cb9b3.tar.gz
Import global switch for libusb's implementation [2/2]
This switch is meant to be used by packages requiring an implementation of the former libusb (as in devel/libusb). The original implementation can be chosen by setting LIBUSB_TYPE to "native". The alternative implementation libusb-compat (as in devel/libusb-compat) wraps libusb1 (in devel/libusb1). This implementation can be chosen by setting LIBUSB_TYPE to "compat". On NetBSD, it has the advantage of not requiring root privileges to locate and use USB devices without a kernel driver. This second part switches packages using libusb to this framework. It does not change compilation options or dependencies at this point. Compile-tested on most packages affected and available on NetBSD/amd64.
Diffstat (limited to 'cross')
-rw-r--r--cross/avrdude/Makefile4
-rw-r--r--cross/dfu-programmer/Makefile4
2 files changed, 4 insertions, 4 deletions
diff --git a/cross/avrdude/Makefile b/cross/avrdude/Makefile
index b555a677fca..018f4d24ecd 100644
--- a/cross/avrdude/Makefile
+++ b/cross/avrdude/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2017/02/21 16:05:53 joerg Exp $
+# $NetBSD: Makefile,v 1.43 2018/02/10 13:53:47 khorben Exp $
DISTNAME= avrdude-6.3
CATEGORIES= cross
@@ -45,7 +45,7 @@ BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
.include "../../devel/libftdi/buildlink3.mk"
.include "../../devel/libhid/buildlink3.mk"
.include "../../devel/libftdi1/buildlink3.mk"
-.include "../../devel/libusb/buildlink3.mk"
+.include "../../mk/libusb.buildlink3.mk"
.include "../../devel/libusb1/buildlink3.mk"
# elf_getshdrstrndx
.include "../../devel/libelf/buildlink3.mk"
diff --git a/cross/dfu-programmer/Makefile b/cross/dfu-programmer/Makefile
index e40ab92f13a..6e402e455df 100644
--- a/cross/dfu-programmer/Makefile
+++ b/cross/dfu-programmer/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/09/24 17:17:47 jakllsch Exp $
+# $NetBSD: Makefile,v 1.5 2018/02/10 13:53:47 khorben Exp $
#
DISTNAME= dfu-programmer-0.7.2
@@ -13,5 +13,5 @@ LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-libusb_1_0
-.include "../../devel/libusb/buildlink3.mk"
+.include "../../mk/libusb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"