pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libusbsio: add wildly unfinished package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Tue Dec 12 19:26:43 2023 +0100
Changeset: 0bd5757db3a10feed1a3686d0a1aa4bc2a4c3bf7
Modified Files:
Makefile
py-spsdk/Makefile
Added Files:
libusbsio/DESCR
libusbsio/Makefile
libusbsio/PLIST
libusbsio/TODO
libusbsio/distinfo
libusbsio/patches/patch-makefile
Log Message:
libusbsio: add wildly unfinished package
This only supports Linux/macOS/Windows.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0bd5757db3a10feed1a3686d0a1aa4bc2a4c3bf7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
libusbsio/DESCR | 12 ++++++++++++
libusbsio/Makefile | 18 ++++++++++++++++++
libusbsio/PLIST | 4 ++++
libusbsio/TODO | 1 +
libusbsio/distinfo | 6 ++++++
libusbsio/patches/patch-makefile | 14 ++++++++++++++
py-spsdk/Makefile | 3 ++-
8 files changed, 58 insertions(+), 1 deletion(-)
diffs:
diff --git a/Makefile b/Makefile
index 2f0d64a0df..89859bd3fc 100644
--- a/Makefile
+++ b/Makefile
@@ -2019,6 +2019,7 @@ SUBDIR+= libunwind
SUBDIR+= libunwind-git
SUBDIR+= liburing
SUBDIR+= libusbmuxd
+SUBDIR+= libusbsio
SUBDIR+= libvalhalla
SUBDIR+= libvc
SUBDIR+= libvg
diff --git a/libusbsio/DESCR b/libusbsio/DESCR
new file mode 100644
index 0000000000..bbde17cd4f
--- /dev/null
+++ b/libusbsio/DESCR
@@ -0,0 +1,12 @@
+The USB serial I/O library (LIBUSBSIO) is a library and associated
+API provided for programmers to develop host-side applications to
+communicate with serial I/O devices connected to via the USB bridge
+on LPC-Link2 and MCU-Link debug probes on supported NXP microcontroller
+evaluation boards. The standalone MCU-Link Pro debug probe is also
+supported. The LIBUSBIO library converts all API calls into USB
+messages which are transferred to the debug probe, which in turn
+communicates a target devices via I2C, SPI or GPIO interfaces. To
+make the USB device install free on host systems, LPCUSBSIO uses
+USB-HID class as the transport mechanism. The LIBUSBSIO library
+may also be used with the MCUXpresso SEC provisioning tools and
+the NXP Secure Provisioning SDK.
diff --git a/libusbsio/Makefile b/libusbsio/Makefile
new file mode 100644
index 0000000000..84e0b464e6
--- /dev/null
+++ b/libusbsio/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME= libusbsio-2.1.11-src
+PKGNAME= ${DISTNAME:S/-src//}
+CATEGORIES= devel
+MASTER_SITES= https://www.nxp.com/downloads/en/libraries/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.nxp.com/design/design-center/software/development-software/libusbsio-host-library-for-usb-enabled-mcus:LIBUSBSIO
+COMMENT= Library to communicate with serial I/O devices on supported NXP boards
+#LICENSE= # TODO: (see mk/license.mk)
+
+MAKE_FILE= makefile
+USE_TOOLS+= gmake pkg-config
+
+.include "../../devel/libusb1/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libusbsio/PLIST b/libusbsio/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/libusbsio/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/libusbsio/TODO b/libusbsio/TODO
new file mode 100644
index 0000000000..c349338181
--- /dev/null
+++ b/libusbsio/TODO
@@ -0,0 +1 @@
+Only supports Linux/macOS/Windows.
diff --git a/libusbsio/distinfo b/libusbsio/distinfo
new file mode 100644
index 0000000000..bf36a063a4
--- /dev/null
+++ b/libusbsio/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (libusbsio-2.1.11-src.zip) = fcbb1f071f1ad0c8b4cf27f76c6b9263e06070a57d1f58841cfc3411bff2b47c
+SHA512 (libusbsio-2.1.11-src.zip) = 200717be44cdb2bb7cc7eeba29afb6aed8a88a72e7664377c1abf8c1d1f88f7de1ed05c9a7d6c960ae53e4b9420889c252d51fd807b1534396430004138518a0
+Size (libusbsio-2.1.11-src.zip) = 2534221 bytes
+SHA1 (patch-makefile) = 7ce4ea8c1fa8025dd98cb7f96bea579d1244b9d5
diff --git a/libusbsio/patches/patch-makefile b/libusbsio/patches/patch-makefile
new file mode 100644
index 0000000000..92d89364fe
--- /dev/null
+++ b/libusbsio/patches/patch-makefile
@@ -0,0 +1,14 @@
+$NetBSD$
+
+XXX: handle everything like Linux. Of course, this doesn't work.
+
+--- makefile.orig 2023-12-12 18:22:44.704028197 +0000
++++ makefile
+@@ -11,6 +11,7 @@ CXX = g++
+ AR = ar -rcs
+ UNAME := $(shell uname)
+ UNAME_M := $(shell uname -m)
++UNAME=Linux
+
+ VPATH := src
+ SRCS := lpcusbsio.c hid.c
diff --git a/py-spsdk/Makefile b/py-spsdk/Makefile
index 537ed0883d..c52edf3f6f 100644
--- a/py-spsdk/Makefile
+++ b/py-spsdk/Makefile
@@ -26,7 +26,8 @@ DEPENDS+= ${PYPKGPREFIX}-deepmerge>=0:../../wip/py-deepmerge
DEPENDS+= ${PYPKGPREFIX}-fastjsonschema>=2.15.1:../../textproc/py-fastjsonschema
DEPENDS+= ${PYPKGPREFIX}-hexdump>=0:../../wip/py-hexdump
DEPENDS+= ${PYPKGPREFIX}-jinja2>=3.0:../../textproc/py-jinja2
-DEPENDS+= # TODO: libusbsio>=2.1.11
+# libusbsio is a Linux/macOS/Windows-specific library
+#DEPENDS+= libusbsio>=2.1.11:../../wip/libusbsio
DEPENDS+= # TODO: oscrypto<1.4>=0
DEPENDS+= # TODO: pylink-square>=1.0
DEPENDS+= # TODO: pyocd-pemicro>=1.1.5
Home |
Main Index |
Thread Index |
Old Index