From owner-freebsd-ports@FreeBSD.ORG Fri Nov 5 10:26:11 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 1A199106566B for ; Fri, 5 Nov 2010 10:26:11 +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 CB5BD8FC0A for ; Fri, 5 Nov 2010 10:26:10 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1PEJUn-0005AB-B7 for freebsd-ports@freebsd.org; Fri, 05 Nov 2010 10:26:09 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1PEJUn-0000cm-7g for freebsd-ports@freebsd.org; Fri, 05 Nov 2010 10:26:09 +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 oA5AQ9SB019768 for ; Fri, 5 Nov 2010 10:26:09 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 oA5AQ8IQ019767 for freebsd-ports@freebsd.org; Fri, 5 Nov 2010 10:26:08 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 10:26:08 +0000 From: Anton Shterenlikht To: freebsd-ports@freebsd.org Message-ID: <20101105102608.GA19572@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: 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 10:26:11 -0000 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? 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