Some small changes compared to submitted patch:
PORTVERSION --> DISTVERSION
Add CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_GnuTar:BOOL=True to reduce noise (only used for packaging)
Add STATIC option (library not provided in previous version and it's hardcoded in upstream's Makefile)
Sort OPTIONS_DEFINE
Disable build of unit tests / test suite (hardcoded) and confirmed broken by upstream for now
Ref: https://groups.google.com/g/hugin-ptx/c/leMFlRYImvQ
Minor cosmetic changes to Makefile for readability
Submitter has tested this update with port Hugin
PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258354