diff --git a/comms/Makefile b/comms/Makefile index 77a058606f96..52aeced5971d 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -1,224 +1,225 @@ COMMENT = Communication utilities SUBDIR += acfax SUBDIR += airspy SUBDIR += airspyhf SUBDIR += aldo SUBDIR += amtterm SUBDIR += anyremote SUBDIR += apitran SUBDIR += aprsd SUBDIR += atslog SUBDIR += bfhist SUBDIR += bforce-kst SUBDIR += birda SUBDIR += bladerf SUBDIR += bluegps SUBDIR += bluez-firmware SUBDIR += bpl+ SUBDIR += chirp SUBDIR += chu SUBDIR += concordance SUBDIR += conserver-com SUBDIR += cqrlog SUBDIR += cubicsdr SUBDIR += cutecom SUBDIR += cwdaemon SUBDIR += cwstudio SUBDIR += cyclonedds SUBDIR += dcf77pi SUBDIR += deforaos-phone SUBDIR += dfu-programmer SUBDIR += dfu-util SUBDIR += digiham SUBDIR += direwolf SUBDIR += dsd SUBDIR += dump1090 SUBDIR += ebook2cw SUBDIR += ebusd SUBDIR += echolinux SUBDIR += ems-flasher SUBDIR += fl_moxgen SUBDIR += flamp SUBDIR += flcluster SUBDIR += fldigi SUBDIR += fllog SUBDIR += flmsg SUBDIR += flrig SUBDIR += flwrap SUBDIR += freedv SUBDIR += gammu SUBDIR += gkermit SUBDIR += gnocky SUBDIR += gnokii SUBDIR += gnuradio SUBDIR += gpredict SUBDIR += gqrx SUBDIR += gr-osmosdr SUBDIR += grig SUBDIR += gstreamer1-plugins-spandsp SUBDIR += gtkmmorse SUBDIR += hackrf SUBDIR += hackrf-devel SUBDIR += hamlib SUBDIR += hcidump SUBDIR += hidapi SUBDIR += ibp SUBDIR += iceoryx SUBDIR += inspectrum SUBDIR += iwmbt-firmware SUBDIR += java-simple-serial-connector SUBDIR += kermit SUBDIR += klog SUBDIR += libconcord SUBDIR += libdc SUBDIR += libfap SUBDIR += libfec SUBDIR += libimobiledevice SUBDIR += libimobiledevice-glue SUBDIR += libirman SUBDIR += libmodbus SUBDIR += librs232 SUBDIR += libsdr SUBDIR += libsdr-gui SUBDIR += libticables2 SUBDIR += libticalcs2 SUBDIR += libusbmuxd SUBDIR += libusbsio SUBDIR += limesuite SUBDIR += linrad SUBDIR += liquid-dsp SUBDIR += lirc SUBDIR += locator SUBDIR += lrzsz SUBDIR += lysdr SUBDIR += mbelib SUBDIR += mgetty+sendfax SUBDIR += minicom SUBDIR += morse SUBDIR += multimon-ng SUBDIR += nanovna-saver SUBDIR += nasawash SUBDIR += nec2c SUBDIR += nmealib SUBDIR += obexapp SUBDIR += opencbm SUBDIR += opencbm-kmod SUBDIR += opencbm-plugin-xa1541 SUBDIR += openobex SUBDIR += openzwave SUBDIR += owfs SUBDIR += p5-Cisco-UCS SUBDIR += p5-Device-Gsm SUBDIR += p5-Device-Modem SUBDIR += p5-Device-SerialPort SUBDIR += p5-Fax-Hylafax-Client SUBDIR += p5-Nexmo-SMS SUBDIR += p5-SMS-SMS77 SUBDIR += p5-SMS-Send SUBDIR += p5-SMS-Send-DeviceGsm SUBDIR += p5-SMS-Send-NexmoUnicode SUBDIR += p5-SMS-Send-TW-HiAir SUBDIR += p5-SMS-Send-TW-PChome SUBDIR += p5-SMS-Send-TW-Socket2Air SUBDIR += p5-SMS-Send-TW-chtsns SUBDIR += p5-SMS-Send-TW-emome SUBDIR += pear-Horde_ActiveSync SUBDIR += pear-Horde_SyncMl SUBDIR += picocom SUBDIR += pr SUBDIR += predict SUBDIR += py-adafruit-ampy SUBDIR += py-elelabs-zigbee-ezsp-utility SUBDIR += py-esptool SUBDIR += py-fritzconnection SUBDIR += py-hid SUBDIR += py-hidapi SUBDIR += py-libimobiledevice SUBDIR += py-libscrc + SUBDIR += py-libusbsio SUBDIR += py-pymodbus SUBDIR += py-pyserial SUBDIR += py-pyserial-asyncio SUBDIR += py-streamdeck SUBDIR += py-xmodem SUBDIR += pyla SUBDIR += qico SUBDIR += qpage SUBDIR += qrq SUBDIR += qsstv SUBDIR += qt5-connectivity SUBDIR += qt5-sensors SUBDIR += qt5-serialbus SUBDIR += qt5-serialport SUBDIR += qt6-connectivity SUBDIR += qt6-sensors SUBDIR += qt6-serialbus SUBDIR += qt6-serialport SUBDIR += qtel SUBDIR += quisk SUBDIR += redsea SUBDIR += remserial SUBDIR += rtl-433 SUBDIR += rtl-sdr SUBDIR += rubygem-callsign SUBDIR += rubygem-ruby-termios SUBDIR += rubygem-serialport SUBDIR += rxtx SUBDIR += scmxx SUBDIR += scrcpy SUBDIR += sdr++ SUBDIR += ser2net SUBDIR += serialoverip SUBDIR += sigdigger SUBDIR += sigutils SUBDIR += smstools3 SUBDIR += snap7 SUBDIR += soapyairspy SUBDIR += soapybladerf SUBDIR += soapyplutosdr SUBDIR += soapyredpitaya SUBDIR += soapyremote SUBDIR += soapysdr-rtlsdr SUBDIR += soapysdrhackrf SUBDIR += soapyuhd SUBDIR += spandsp SUBDIR += splat SUBDIR += sredird SUBDIR += sunxi-tools SUBDIR += suscan SUBDIR += suwidgets SUBDIR += svxlink SUBDIR += syncterm SUBDIR += tcpser SUBDIR += thebridge SUBDIR += tilp2 SUBDIR += tio SUBDIR += tits SUBDIR += tkscanfax SUBDIR += tlf SUBDIR += trustedqsl SUBDIR += twpsk SUBDIR += uarduno SUBDIR += uhd SUBDIR += uird SUBDIR += ujprog SUBDIR += unixcw SUBDIR += usbmuxd SUBDIR += viewfax SUBDIR += vrflash SUBDIR += wsjtx SUBDIR += wsjtz SUBDIR += wwl SUBDIR += wy60 SUBDIR += xastir SUBDIR += xcwcp SUBDIR += xdemorse SUBDIR += xdx SUBDIR += xlog SUBDIR += xmorse SUBDIR += xnec2c SUBDIR += xnecview SUBDIR += yagiuda SUBDIR += yfklog .include diff --git a/comms/py-libusbsio/Makefile b/comms/py-libusbsio/Makefile new file mode 100644 index 000000000000..77ab7e3cda71 --- /dev/null +++ b/comms/py-libusbsio/Makefile @@ -0,0 +1,29 @@ +PORTNAME= libusbsio +PORTVERSION= 2.1.11 +CATEGORIES= comms python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= awoonyaa@gmail.com +COMMENT= Python wrapper for NXP libusbsio binary library +WWW= https://pypi.org/project/libusbsio/ + +LICENSE= BSD3CLAUSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +LIB_DEPENDS= libhidapi.so:comms/hidapi \ + libudev.so:devel/libudev-devd \ + libusbsio.so:comms/libusbsio + +USES= dos2unix python +USE_PYTHON= autoplist concurrent pep517 + +DOS2UNIX_FILES= libusbsio/*.py + +post-extract: + ${MKDIR} ${WRKSRC}/libusbsio/bin/${OPSYS:tl}_${ARCH} + ${LN} -s ${LOCALBASE}/lib/${PORTNAME}.so ${WRKSRC}/libusbsio/bin/${OPSYS:tl}_${ARCH}/libusbsio.so + +.include diff --git a/comms/py-libusbsio/distinfo b/comms/py-libusbsio/distinfo new file mode 100755 index 000000000000..723af044bfb2 --- /dev/null +++ b/comms/py-libusbsio/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703160417 +SHA256 (libusbsio-2.1.11.tar.gz) = 7d2e81f4aedccbe8a3c327b002c7750dd374abdf1ef6d54780728e653af9124d +SIZE (libusbsio-2.1.11.tar.gz) = 259491 diff --git a/comms/py-libusbsio/files/patch-libusbsio_libusbsio.py b/comms/py-libusbsio/files/patch-libusbsio_libusbsio.py new file mode 100644 index 000000000000..6f02053c3179 --- /dev/null +++ b/comms/py-libusbsio/files/patch-libusbsio_libusbsio.py @@ -0,0 +1,21 @@ +https://github.com/monwarez/libusbsio/commit/6da5bec9ab40f1ea17bfb1812cacd6ffbd854d0c + +--- libusbsio/libusbsio.py.orig 2022-02-07 13:26:21 UTC ++++ libusbsio/libusbsio.py +@@ -261,6 +261,16 @@ class LIBUSBSIO(object): + else: + platf = LIBUSBSIO.P_LINUX32 + packing = 4 ++ elif platform.system().lower().startswith('fre'): ++ dllname = "libusbsio.so" ++ is_64bits = sys.maxsize > 2**32 ++ dfltdir = "freebsd_" + platform.machine() ++ if is_64bits: ++ platf = LIBUSBSIO.P_LINUX64 ++ packing = 8 ++ else: ++ platf = LIBUSBSIO.P_LINUX32 ++ packing = 4 + elif platform.system().lower().startswith('dar'): + dfltdir = "osx_" + platform.machine() + if platform.machine() == "arm64": diff --git a/comms/py-libusbsio/pkg-descr b/comms/py-libusbsio/pkg-descr new file mode 100755 index 000000000000..5915e65ddfdd --- /dev/null +++ b/comms/py-libusbsio/pkg-descr @@ -0,0 +1,8 @@ +Python wrapper for NXP libusbsio binary library + +The NXP libusbsio is a binary library for Win/Linux/MacOS systems +used to exercise SPI, I2C bus and GPIO pins over USBSIO interface of +NXP LPCLink2 and MCUlink Pro devices. + +This Python component provides a wrapper object which encapsulates the +binary library and exposes its API to Python applications.