From owner-freebsd-ports@FreeBSD.ORG Fri Nov 5 12:51:30 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE4AA106564A for ; Fri, 5 Nov 2010 12:51:30 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id AB1B68FC08 for ; Fri, 5 Nov 2010 12:51:30 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1PELlQ-0007AY-J4; Fri, 05 Nov 2010 12:51:29 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1PELlQ-0000q2-Da; Fri, 05 Nov 2010 12:51:28 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id oA5CpSGG028534; Fri, 5 Nov 2010 12:51:28 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id oA5CpS65028530; Fri, 5 Nov 2010 12:51:28 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 5 Nov 2010 12:51:27 +0000 From: Anton Shterenlikht To: Anton Shterenlikht Message-ID: <20101105125127.GA25609@mech-cluster241.men.bris.ac.uk> References: <20101105102608.GA19572@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101105102608.GA19572@mech-cluster241.men.bris.ac.uk> User-Agent: Mutt/1.4.2.3i Cc: freebsd-ports@freebsd.org Subject: Re: new port - different versions of the same file - advice needed X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2010 12:51:31 -0000 On Fri, Nov 05, 2010 at 10:26:08AM +0000, Anton Shterenlikht wrote: > I'm trying to make a port of Slatec numerical libraries: > http://netlib.org/slatec/ > > This file contains the full sources: > http://netlib.org/slatec/slatec_src.tgz > > However, according to Netlib FAQ: http://netlib.org/misc/faq.html#2.17 , > 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 http://netlib.org/slatec/slatec_src.tgz, > extract all files from it, and then overwrite d1mach.f, i1mach.f > and r1mach.f by the Blas versions: > > http://netlib.org/blas/d1mach.f > http://netlib.org/blas/i1mach.f > http://netlib.org/blas/r1mach.f > > 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 http://eis.bris.ac.uk/~mexas/blasmach.tgz I then put in the Makefile MASTER_SITES= http://netlib.org/slatec/ \ http://eis.bris.ac.uk/~mexas/ 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 -- 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