As the CERNLIB installation procedures currently use PATCHY, you will either have to port PATCHY and possibly also the splitting program FCASPLIT, or extract the code on a system to which these programs have already been ported.
If it is necessary to modify the compiler and/or options, one should also remove the check of the file p4boot.sh against p4boot.sh0. If there is a mismatch, the installation procedure will exit.
Fortran installation packages. It may be necessary to make modifications to the files rceta.f or fcasplit.f