From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 29 21:50:15 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C570016B210 for ; Mon, 29 May 2006 21:50:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1F5A43D6E for ; Mon, 29 May 2006 21:50:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4TLoC2r084622 for ; Mon, 29 May 2006 21:50:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4TLoCtR084621; Mon, 29 May 2006 21:50:12 GMT (envelope-from gnats) Resent-Date: Mon, 29 May 2006 21:50:12 GMT Resent-Message-Id: <200605292150.k4TLoCtR084621@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Pedro F. Giffuni" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6412016AA86 for ; Mon, 29 May 2006 21:40:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7716443D80 for ; Mon, 29 May 2006 21:40:44 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4TLeiev050662 for ; Mon, 29 May 2006 21:40:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k4TLeigK050661; Mon, 29 May 2006 21:40:44 GMT (envelope-from nobody) Message-Id: <200605292140.k4TLeigK050661@www.freebsd.org> Date: Mon, 29 May 2006 21:40:44 GMT From: "Pedro F. Giffuni" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/98109: Cleanup the math/elmer-mathlibs port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2006 21:50:27 -0000 >Number: 98109 >Category: ports >Synopsis: Cleanup the math/elmer-mathlibs port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon May 29 21:50:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Pedro F. Giffuni >Release: 6.1-Release (amd64) >Organization: >Environment: FreeBSD etoile.cable.net.co 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Fri May 12 00:18:58 COT 2006 root@etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION amd64 >Description: elmer-mathlibs is a port of blas, lapack and arpack built with F90 (gfortran). It is actually an interim port provided because libraries generated with g77 are not ABI compatible the rest of Elmer. This updates adds preliminary support for a WITH_MPI knob and fixes a minor issue by properly sending FFLAGS to configure. There should be no functional change. >How-To-Repeat: >Fix: diff -ruN elmer-mathlibs.orig/Makefile elmer-mathlibs/Makefile --- elmer-mathlibs.orig/Makefile Mon May 29 12:27:32 2006 +++ elmer-mathlibs/Makefile Mon May 29 16:38:42 2006 @@ -15,25 +15,35 @@ COMMENT= Math libraries build with F90 for used in ELMER FEM BUILD_DEPENDS= ${FC}:${PORTSDIR}/lang/gfortran +.ifdef WITH_MPI +BUILD_DEPENDS+= ${LOCALBASE}/mpich/include/mpif.h:${PORTSDIR}/net/mpich +.endif -CONFLICTS= atlas-[0-9]* blas-[0-9]* arpack-[0-9]* lapack-[0-9]* scalapack-[0-9]* +CONFLICTS= atlas-[0-9]* blas-[0-9]* arpack-[0-9]* lapack-[0-9]* +.ifdef WITH_MPI +CONFLICTS+= scalapack-[0-9]* +.endif USE_GCC= 4.1+ WITH_FORTRAN= yes FC= ${LOCALBASE}/bin/gfortran41 F77= ${FC} -CONFIGURE_ENV+= F77=${FC} +.ifdef WITH_OPTIMIZED_FLAGS +FFLAGS+= -O3 -ffast-math -funroll-loops +.endif +CONFIGURE_ENV+= F77=${FC} FFLAGS="${FFLAGS}" GNU_CONFIGURE= yes +.ifdef WITH_MPI +CONFIGURE_ARGS+= --with-mpi=yes --with-mpi-dir=${LOCALBASE}/mpich +.endif + ALL_TARGET= PLIST_FILES= lib/libarpack.a lib/libblas.a lib/liblapack.a - -.include - -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" -FFLAGS+= -fPIC +.ifdef WITH_MPI +PLIST_FILES+= lib/libparpack.a .endif -.include +.include >Release-Note: >Audit-Trail: >Unformatted: