Excuse my ignorance, but what is preventing us from having Qt5? And what is stopping Qt4 from utilizing a more modern version of OpenSSL?
Enormous efforts of Qt upstream to ensure Qt5 is broken
Not even joking. They did everything for it not to work: hardcoded MacOS to Cocoa, removed support for 32-bit, removed Carbon codepath, never bothered to test builds with gcc (so it does not work, of course), heavily used SDK features of a few bleeding edge macOS versions at any given time without bothering to have fallbacks and even dumping fallback code which happened to exist etc.
On top of that a completely retarded build system, making any attempts to fix upstream bugs as painful as it gets.
The last Qt5 which someone could build on 10.6 x86_64 (!) with clang (!) was 5.3. Even if we fix that one for gcc and powerpc, 5.3 is pretty much of no use now, as modern software typically requires much later versions. Those, in turn, are broken on much later macOS versions.
IMO, the only feasible pathway will be to switch Qt to X11 backend, completely getting rid of hopelessly broken Cocoa. That should be doable, but a) we need to hack the code, because upstream does not want anyone to be able to choose GUI backend, and b) even if GUI is switched to X11, the code base still uses some Apple-specific headers and Cocoa files, which, unsurprisingly, again may fail to compile (I say “may” here, because I did not try every Qt version), so we need to fix those or replace with generic Unix versions, provided those gonna work.
This should be done for multiple components, just having qtbase is nowhere enough.
To put this into context, X11 builds are broken on macOS in general (and perhaps never worked), so it is not just about fixing something specifically for ppc. We need to start from fixing X11 at least for some macOS version, then fix building with gcc, SDK issues, bitness and endianness, and then start checking if something can actually link against that and be functional.
I tried earlier to fix Qt5 5.3 Cocoa, and dropped that, since it was way too broken.
Current state of affairs: I got Qt6 built against X11 on Sonoma with minimal patches, only qtbase as of now, and untested whether it is usable. Qt6, because it finally switched to CMake, so at least build system became sane.
With some extra patches the build started on PowerPC, but then got stuck on a bug in handling some CoreFoundation stuff. That code was introduced around 5.8, so even if the earlier version is compilable, we can’t simply revert a couple of breaking commits. I don’t know how bad is that and whether it is the only issue on the way. It is probably not as hopeless as Cocoa, but requires time, effort and a lot of testing.
If you wanna try fixing it, I can make a portfile with w/e I had on 10.6, which will start building (but will fail).
P. S. Re Qt4 and OpenSSL: it seems that MacPorts switched it to OpenSSL 3.x either accidentally (when openssl stub port was switched to that) or at least without much testing. It probably should instead use 1.1.