The basic source package is a compressed tar archive:
(All archives are the same. There are multiple package repository WWW sites.)
This is a self-contained slashpackage-style package. That's a whole subject in itself. The basic Guide has a chapter on building from source that has the details.
It is known to build, run, and work on FreeBSD 14, NetBSD 10, and Debian Linux version 12 and later. It should similarly build, run, and work on any modern BSD and on any modern Linux flavour.