pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libusb1 libusb1: Add a debug option.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5642c7aa96a8
branches:  trunk
changeset: 414880:5642c7aa96a8
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Apr 03 20:32:57 2020 +0000

description:
libusb1: Add a debug option.

diffstat:

 devel/libusb1/Makefile   |   3 ++-
 devel/libusb1/options.mk |  10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r d64ad286305b -r 5642c7aa96a8 devel/libusb1/Makefile
--- a/devel/libusb1/Makefile    Fri Apr 03 20:15:36 2020 +0000
+++ b/devel/libusb1/Makefile    Fri Apr 03 20:32:57 2020 +0000
@@ -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 @@
 do-test:
        cd ${WRKSRC}/tests && ./stress
 
+.include "options.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d64ad286305b -r 5642c7aa96a8 devel/libusb1/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libusb1/options.mk  Fri Apr 03 20:32:57 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index