You will almost certainly have to compile PostgreSQL - and possibly its dependencies, depending on what's available pre-packaged for HP-UX - from source code. See installation from source code in the docs.
PostgreSQL is pretty well behaved and reasonable to compile, and there's a HP-UX ia64 buildfarm member so builds are tested on HP-UX.