Created attachment 228977 [details]
See patch attached.
I am not sure about the version of the port. It is not exactly 1.5,
because that is broken when building on FreeBSD. Instead I used a
specific commit where the upstream fix has been applied.
Also, credits to Steve Wills, who helped me debugging qmake trying
to strip a shell script in the install stage.
I will try to submit the patches upstream.
The port was tested with poudriere on the main branch of the ports tree
with 13.0-RELEASE-p4 amd64.
Created attachment 228984 [details]
Updated after upstream patches