summaryrefslogtreecommitdiff
path: root/devel/libnfc
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 /devel/libnfc
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 'devel/libnfc')
-rw-r--r--devel/libnfc/Makefile4
-rw-r--r--devel/libnfc/buildlink3.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/devel/libnfc/Makefile b/devel/libnfc/Makefile
index 1321195fbfc..6b366ff924d 100644
--- a/devel/libnfc/Makefile
+++ b/devel/libnfc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/12/16 08:11:55 manu Exp $
+# $NetBSD: Makefile,v 1.2 2018/02/10 13:53:47 khorben Exp $
DISTNAME= libnfc-1.7.1
CATEGORIES= net
@@ -19,7 +19,7 @@ CONFIGURE_ARGS+=--enable-doc
BUILD_DEPENDS+= doxygen>=1.8.11:../../devel/doxygen
-.include "../../devel/libusb/buildlink3.mk"
+.include "../../mk/libusb.buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../security/pcsc-lite/buildlink3.mk"
diff --git a/devel/libnfc/buildlink3.mk b/devel/libnfc/buildlink3.mk
index 681c3035eda..b624d7a9467 100644
--- a/devel/libnfc/buildlink3.mk
+++ b/devel/libnfc/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2016/12/16 08:11:55 manu Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2018/02/10 13:53:47 khorben Exp $
BUILDLINK_TREE+= libnfc
@@ -9,7 +9,7 @@ BUILDLINK_API_DEPENDS.libnfc+= libnfc>=1.7.1
BUILDLINK_ABI_DEPENDS.libnfc+= libnfc>=1.7.1
BUILDLINK_PKGSRCDIR.libnfc?= ../../devel/libnfc
-.include "../../devel/libusb/buildlink3.mk"
+.include "../../mk/libusb.buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../security/pcsc-lite/buildlink3.mk"
.endif # LIBNFC_BUILDLINK3_MK