summaryrefslogtreecommitdiff
path: root/security
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 /security
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 'security')
-rw-r--r--security/openct/buildlink3.mk4
-rw-r--r--security/openct/options.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/security/openct/buildlink3.mk b/security/openct/buildlink3.mk
index 6009b104ecc..aa2560f2325 100644
--- a/security/openct/buildlink3.mk
+++ b/security/openct/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.3 2009/12/15 22:10:39 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.4 2018/02/10 13:53:48 khorben Exp $
BUILDLINK_TREE+= openct
@@ -16,7 +16,7 @@ pkgbase := openct
.endif
.if !empty(PKG_BUILD_OPTIONS.openct:Mlibusb)
-.include "../../devel/libusb/buildlink3.mk"
+.include "../mk/libusb.mk"
.endif
.include "../../devel/libltdl/buildlink3.mk"
diff --git a/security/openct/options.mk b/security/openct/options.mk
index 0c23b59b365..4e5ee8d4077 100644
--- a/security/openct/options.mk
+++ b/security/openct/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1.1.1 2009/02/26 10:07:49 hasso Exp $
+# $NetBSD: options.mk,v 1.2 2018/02/10 13:53:48 khorben Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openct
PKG_SUPPORTED_OPTIONS= pcsc-lite libusb
@@ -16,7 +16,7 @@ CONFIGURE_ARGS+= --disable-pcsc
.endif
.if !empty(PKG_OPTIONS:Mlibusb)
-.include "../../devel/libusb/buildlink3.mk"
+.include "../../mk/libusb.buildlink3.mk"
CONFIGURE_ARGS+= --enable-usb
.else
CONFIGURE_ARGS+= --disable-usb