summaryrefslogtreecommitdiff
path: root/devel/libusb1
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-04-03 20:32:57 +0000
committernia <nia@pkgsrc.org>2020-04-03 20:32:57 +0000
commit96fdcc02ab9ce846eb2b7c307250c094a5c26edb (patch)
treec6505fdaead115c7c268189fbef47f744309b5fc /devel/libusb1
parenta5c8c432f80e298217967bde0c89baeda572dfd0 (diff)
downloadpkgsrc-96fdcc02ab9ce846eb2b7c307250c094a5c26edb.tar.gz
libusb1: Add a debug option.
Diffstat (limited to 'devel/libusb1')
-rw-r--r--devel/libusb1/Makefile3
-rw-r--r--devel/libusb1/options.mk10
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/libusb1/Makefile b/devel/libusb1/Makefile
index 5c497580310..814d868b3ad 100644
--- a/devel/libusb1/Makefile
+++ b/devel/libusb1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2020/04/03 20:05:41 nia Exp $
+# $NetBSD: Makefile,v 1.24 2020/04/03 20:32:57 nia Exp $
DISTNAME= libusb-1.0.23
PKGNAME= ${DISTNAME:S/libusb/libusb1/}
@@ -44,5 +44,6 @@ CONFLICTS= libusbx-[0-9]*
do-test:
cd ${WRKSRC}/tests && ./stress
+.include "options.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libusb1/options.mk b/devel/libusb1/options.mk
new file mode 100644
index 00000000000..cb093f05094
--- /dev/null
+++ b/devel/libusb1/options.mk
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1 2020/04/03 20:32:57 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libusb1
+PKG_SUPPORTED_OPTIONS= debug
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug-log
+.endif