Recently Qt6-related ports are increasing and currently textproc/fcitx-qt6 doesn't exist. Fortunately, textproc/fcitx-qt5 already has build time cmake knob for Qt6 support as ENABLE_QT6 which builds plugin file only. Unfortunately, the knob doesn't seem to work when ENABLE_LIBRARY and ENABLE_QT5, which current textproc/fcitx-qt5 enables. FLAVOR'ize doesn't fit in this case, and actually, I couldn't make my prototype patch working with poudriere jail. If I understand correctly, subpackage would not fit too, as build didn't work well with all 3 knobs enabled at once.
Created attachment 247504 [details] Patch to create and support Qt6 slave port Created patch to support Qt6 slave port, slave port itself, and hook the slave port to build. Not sure this is actually enough (possibly missing something) and possibly Qt5 libraries are required even if there's no applications installed. Tested on stable/14, amd64 with some Qt5 applications and master port (textproc/fcitx-qt5) installed, additionally install (to test) graphics/heimer and its dependencies and tested fcitx can be enabled or not, input some Japanese text using japanese/mozc-server as backend in conjunction with japanese/fcitx-mozc and it worked for me. Mouse cursor became very small when over heimer window, but it should be problem of Qt6 framework and not of fcitx-qt5 port.