new port - different versions of the same file - advice needed

Anton Shterenlikht mexas at
Fri Nov 5 10:26:11 UTC 2010

I'm trying to make a port of Slatec numerical libraries:

This file contains the full sources:

However, according to Netlib FAQ: ,
I've got to replace 3 files in this archive by newer versions:

The easiest to use versions of the routines r1mach, d1mach, and i1mach
are located in the blas directory of Netlib. These versions of r1mach
and d1mach attempt to determine machine characteristics automatically.

The original versions of r1mach, d1mach, and i1mach,
in the slatec/src directory, require a user to scan
their source and to uncomment the statements specifying
the constants for his particular machine. Constants for some
architectures are not explicitly identified in the comments
of r1mach, d1mach, and i1mach. For those architectures conforming
to the IEEE floating-point standard, and most newer ones do,
you can locate and uncomment the IEEE-conforming constants in the routines. 
*end quote*

So I need to download,
extract all files from it, and then overwrite d1mach.f, i1mach.f
and r1mach.f by the Blas versions:

What is the best way to achive this?

many thanks

Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423

More information about the freebsd-ports mailing list