diff --git a/misc/py-comfy-aimdo/Makefile b/misc/py-comfy-aimdo/Makefile index 07ede92122d8..3891e96c3de3 100644 --- a/misc/py-comfy-aimdo/Makefile +++ b/misc/py-comfy-aimdo/Makefile @@ -1,27 +1,27 @@ PORTNAME= comfy-aimdo DISTVERSIONPREFIX= v -DISTVERSION= 0.2.14 +DISTVERSION= 0.4.2 CATEGORIES= misc python # machine-learning PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= ComfyUI: AI Model Dynamic Offloader for PyTorch WWW= https://github.com/Comfy-Org/comfy-aimdo LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>=2.8.0:misc/py-pytorch@${PY_FLAVOR} USES= python USE_PYTHON= pep517 autoplist USE_GITHUB= yes GH_ACCOUNT= Comfy-Org MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION} .include diff --git a/misc/py-comfy-aimdo/distinfo b/misc/py-comfy-aimdo/distinfo index 5ad03149f324..98763a959454 100644 --- a/misc/py-comfy-aimdo/distinfo +++ b/misc/py-comfy-aimdo/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1777009822 -SHA256 (Comfy-Org-comfy-aimdo-v0.2.14_GH0.tar.gz) = da09753f9588a0ee521bbd4e4966457345301df27d7044b63aabb3e122bb01e7 -SIZE (Comfy-Org-comfy-aimdo-v0.2.14_GH0.tar.gz) = 33407 +TIMESTAMP = 1778959069 +SHA256 (Comfy-Org-comfy-aimdo-v0.4.2_GH0.tar.gz) = 29a108ca1517123eee3a5fdc32513bf4d66ced21ca4aa9777e5fc3de4bc9d449 +SIZE (Comfy-Org-comfy-aimdo-v0.4.2_GH0.tar.gz) = 48610 diff --git a/misc/py-comfy-aimdo/files/patch-comfy__aimdo_control.py b/misc/py-comfy-aimdo/files/patch-comfy__aimdo_control.py index 873fecccbad5..f5101ada834e 100644 --- a/misc/py-comfy-aimdo/files/patch-comfy__aimdo_control.py +++ b/misc/py-comfy-aimdo/files/patch-comfy__aimdo_control.py @@ -1,11 +1,13 @@ ---- comfy_aimdo/control.py.orig 2026-03-19 07:04:32 UTC +-- Add FreeBSD support for loading the aimdo shared library. +-- FreeBSD uses .so shared libraries like Linux, with the same RTLD_DEEPBIND mode. +--- comfy_aimdo/control.py.orig 2026-05-16 19:21:31 UTC +++ comfy_aimdo/control.py -@@ -19,6 +19,8 @@ def init(): - lib = ctypes.CDLL(str(base_path / "aimdo.dll")) - elif system == "Linux": - lib = ctypes.CDLL(str(base_path / "aimdo.so"), mode=258) -+ elif system == "FreeBSD": -+ lib = ctypes.CDLL(str(base_path / "aimdo.so"), mode=258) +@@ -55,7 +55,7 @@ def init(implementation: str | None = None): + if system == "Windows": + ext = "dll" + mode = 0 +- elif system == "Linux": ++ elif system in ("Linux", "FreeBSD"): + ext = "so" + mode = 258 else: - logging.info(f"comfy-aimdo os not supported {system}") - logging.info(f"NOTE: comfy-aimdo is currently only support for Windows and Linux")