diff options
-rw-r--r-- | games/anki/Makefile | 2 | ||||
-rw-r--r-- | games/anki/files/patch-qt_aqt_____init____.py | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/games/anki/Makefile b/games/anki/Makefile index b28c09a8a824..153ea7eee848 100644 --- a/games/anki/Makefile +++ b/games/anki/Makefile @@ -1,6 +1,6 @@ PORTNAME= anki DISTVERSION= 2.1.54 -PORTREVISION= 16 +PORTREVISION= 17 # Don't forget to update ${_MY_BUILDHASH} if DISTVERSION changes CATEGORIES= games education python MASTER_SITES= LOCAL/kai/:yarncache \ diff --git a/games/anki/files/patch-qt_aqt_____init____.py b/games/anki/files/patch-qt_aqt_____init____.py new file mode 100644 index 000000000000..6428c77633ba --- /dev/null +++ b/games/anki/files/patch-qt_aqt_____init____.py @@ -0,0 +1,13 @@ +Prevents runtime issues with nVidia drivers + +--- qt/aqt/__init__.py.orig 2023-04-15 12:54:44 UTC ++++ qt/aqt/__init__.py +@@ -369,7 +369,7 @@ def setupGL(pm: aqt.profiles.ProfileManager) -> None: + driver = pm.video_driver() + + # work around pyqt loading wrong GL library +- if is_lin: ++ if is_lin and not sys.platform.startswith("freebsd"): + import ctypes + + ctypes.CDLL("libGL.so.1", ctypes.RTLD_GLOBAL) |