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

Anton Shterenlikht mexas at
Fri Nov 5 12:51:31 UTC 2010

On Fri, Nov 05, 2010 at 10:26:08AM +0000, Anton Shterenlikht wrote:
> 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:
> *quote*
> 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?

What I've done for now is to create a tgz
of the 3 *.f files above, and put it at

I then put in the Makefile

DISTNAME=       ${PORTNAME}_src blasmach

This seems to work, but it relies on blasmach.tgz
being untarred *after* slatec_src.tgz. I guess
this is an unsafe assumption?

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