From owner-freebsd-ports@FreeBSD.ORG Thu Jan 11 00:49:39 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 09E6616A47C for ; Thu, 11 Jan 2007 00:49:39 +0000 (UTC) (envelope-from maho.nakata@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id BF5AC13C442 for ; Thu, 11 Jan 2007 00:49:37 +0000 (UTC) (envelope-from maho.nakata@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so119761pyh for ; Wed, 10 Jan 2007 16:49:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:message-id:to:subject:from:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding:sender; b=Z9s9M4vjDvCCyO30WPBywlwTZwLMYNGVvC0VCDAPKCq+F2+/K8mUnKSNdTO2M1d7IW0jtLHlwRkukctwqXwLs90rRvue874LoXON6vRKMxTBQuDeh96gdWkELSNAfRpkd9jtWyc/dvhHiMMZ0/LDAsu91gw191sWvTyrtK9qqV0= Received: by 10.35.103.12 with SMTP id f12mr1635875pym.1168476577489; Wed, 10 Jan 2007 16:49:37 -0800 (PST) Received: from localhost ( [133.11.172.102]) by mx.google.com with ESMTP id c1sm144080nzd.2007.01.10.16.49.36; Wed, 10 Jan 2007 16:49:37 -0800 (PST) Date: Thu, 11 Jan 2007 09:48:54 +0900 (JST) Message-Id: <20070111.094854.115975485.chat95@mac.com> To: ports@freebsd.org, portmgr@freebsd.org From: NAKATA Maho In-Reply-To: <20070111.094542.78764907.chat95@mac.com> References: <20070107.133544.78739935.chat95@mac.com> <20070109.175640.102530289.chat95@mac.com> <20070111.094542.78764907.chat95@mac.com> X-Mailer: Mew version 5.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: Maho NAKATA Cc: Subject: Linking against BLAS/LAPACK and optimized BLAS - ATLAS (was Re: Migration tips for gfortran42) 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: Thu, 11 Jan 2007 00:49:39 -0000 Hi here is some tips again * Linking blas/lapack or atlas .if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS) WITH_ATLAS= yes .endif .if defined(WITH_ATLAS) LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas BLAS= -lf77blas -latlas LAPACK= -lalapack .else LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack BLAS_LIBS= -lblas LAPACK= -lalapack .endif atlas build is very fragile and CPU/platform dependent. and pointyhat doesn't build usually and I think atlas from packagecluster can also be unusbale or low performance for some cases (if you have 4 CPU and if package cluster have 2 CPU) using LAPACK/BLAS is good for package building for casual users. thanks, -- NAKATA, Maho (maho@FreeBSD.org)