mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 01:56:37 -04:00
Sponsored by: Serenity Cybersecurity, LLC Co-authored-by: Gleb Popov <arrowd@FreeBSD.org>
21 lines
857 B
Python
21 lines
857 B
Python
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":
|