diff --git a/audio/lvtk/Makefile b/audio/lvtk/Makefile index 8d405b8e08ae..258686ff86a2 100644 --- a/audio/lvtk/Makefile +++ b/audio/lvtk/Makefile @@ -1,24 +1,21 @@ PORTNAME= lvtk DISTVERSION= 2.0.0rc1-14 DISTVERSIONSUFFIX= -g1028f69 CATEGORIES= audio MAINTAINER= yuri@FreeBSD.org COMMENT= Wraps the LV2 C API and extensions into easy to use C++ classes WWW= https://github.com/lvtk/lvtk LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN= configure fails: waf is not compatible with python-3.12: No module named 'imp', see https://github.com/lvtk/lvtk/issues/60 - -BUILD_DEPENDS= lv2>0:audio/lv2 \ - ${LOCALBASE}/include/gtkmm-2.4/gtkmm.h:x11-toolkits/gtkmm24 +BUILD_DEPENDS= lv2>0:audio/lv2 USES= compiler:c++11-lang pkgconfig waf USE_GITHUB= yes post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lv2/lvtk.lv2/volume.so .include diff --git a/audio/lvtk/files/patch-waflib_Context.py b/audio/lvtk/files/patch-waflib_Context.py new file mode 100644 index 000000000000..1892660027bf --- /dev/null +++ b/audio/lvtk/files/patch-waflib_Context.py @@ -0,0 +1,25 @@ +-- Replace the 'imp' module with 'types', because 'imp' was removed in +-- Python 3.12, causing waf to fail with "No module named 'imp'" and +-- breaking configure. +-- See https://github.com/lvtk/lvtk/issues/60 + +--- waflib/Context.py.orig 2026-09-16 00:55:15 UTC ++++ waflib/Context.py +@@ -6,7 +6,7 @@ Classes and functions enabling the command system + Classes and functions enabling the command system + """ + +-import os, re, imp, sys ++import os, re, sys, types + from waflib import Utils, Errors, Logs + import waflib.Node + +@@ -660,7 +660,7 @@ def load_module(path, encoding=None): + except KeyError: + pass + +- module = imp.new_module(WSCRIPT_FILE) ++ module = types.ModuleType(WSCRIPT_FILE) + try: + code = Utils.readf(path, m='r', encoding=encoding) + except EnvironmentError: