From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 8 00:50:04 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 3FF2316A420 for ; Wed, 8 Feb 2006 00:50:04 +0000 (GMT) (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 5550643D55 for ; Wed, 8 Feb 2006 00:50:03 +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 k180o3pn034261 for ; Wed, 8 Feb 2006 00:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k180o2ZS034260; Wed, 8 Feb 2006 00:50:02 GMT (envelope-from gnats) Resent-Date: Wed, 8 Feb 2006 00:50:02 GMT Resent-Message-Id: <200602080050.k180o2ZS034260@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 B9E8D16A420 for ; Wed, 8 Feb 2006 00:49:46 +0000 (GMT) (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 7C28C43D45 for ; Wed, 8 Feb 2006 00:49:46 +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 k180nkR1041188 for ; Wed, 8 Feb 2006 00:49:46 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k180nkXq041187; Wed, 8 Feb 2006 00:49:46 GMT (envelope-from nobody) Message-Id: <200602080049.k180nkXq041187@www.freebsd.org> Date: Wed, 8 Feb 2006 00:49:46 GMT From: "Pedro F. Giffuni" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/93005: Minor port enhancement to math/umfpack 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: Wed, 08 Feb 2006 00:50:04 -0000 >Number: 93005 >Category: ports >Synopsis: Minor port enhancement to math/umfpack port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 08 00:50:02 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Pedro F. Giffuni >Release: 6.0R amd64 >Organization: >Environment: FreeBSD etoile.cable.net.co 6.0-RELEASE FreeBSD 6.0-RELEASE #11: Thu Feb 2 23:55:44 COT 2006 root@etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION amd64 >Description: Let the cblas library get overriden from the ports makefile, also implement maintainers mode. FWIW, I wanted to activate LP64 for amd64 and ia64 but the author recommended not doing this as unfortunately the current BLAS libraries don't implement 64 bit extensions and this would hit performance very badly. >How-To-Repeat: >Fix: Patch follows: diff -ruN umfpack.orig/Makefile umfpack/Makefile --- umfpack.orig/Makefile Sun Dec 18 16:03:54 2005 +++ umfpack/Makefile Tue Feb 7 19:40:17 2006 @@ -19,10 +19,20 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/UMFPACK ALL_TARGET= lib +USE_REINPLACE= yes +CBLAS_LIBS?= -lcblas -latlas + post-extract: ${CP} ${WRKDIR}/${DISTNAME}/AMD/Make/Make.linux \ ${WRKDIR}/${DISTNAME}/AMD/Make/Make.freebsd +pre-build: + @${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; \ + s+%%CFLAGS%%+${CFLAGS}+ ; \ + s+%%BLASBASE%%+${LOCALBASE}+ ; \ + s+%%CBLAS_LIBS%%+${CBLAS_LIBS}+ ;' \ + ${WRKDIR}/${DISTNAME}/AMD/Make/Make.freebsd + do-install: ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/AMD/Lib/libamd.a ${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/Lib/libumfpack.a ${PREFIX}/lib @@ -46,5 +56,11 @@ @${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} @${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} .endif + +.if defined(MAINTAINER_MODE) +test: build + @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} $(MAKE) hb ) +.endif + .include diff -ruN umfpack.orig/files/patch-Make+Make.freebsd umfpack/files/patch-Make+Make.freebsd --- umfpack.orig/files/patch-Make+Make.freebsd Sun Dec 18 16:03:54 2005 +++ umfpack/files/patch-Make+Make.freebsd Tue Feb 7 19:39:19 2006 @@ -1,13 +1,13 @@ ---- Make/Make.freebsd.orig Fri Mar 18 22:29:13 2005 -+++ Make/Make.freebsd Fri Mar 18 22:30:13 2005 +--- Make/Make.freebsd.orig Sat Jan 14 17:09:34 2006 ++++ Make/Make.freebsd Sat Jan 14 17:13:14 2006 @@ -6,8 +6,8 @@ # if you use the Intel compiler and the Fortran BLAS. # Using GNU gcc and f77 compilers: - CC = gcc - CFLAGS = -O3 -fPIC -+ CC ?= cc -+ CFLAGS ?= -O3 -fPIC ++ CC = %%CC%% ++ CFLAGS = %%CFLAGS%% -fPIC # Using Intel's icc and ifc compilers: # F77 = ifc @@ -17,14 +17,14 @@ # 2: with the ATLAS C-BLAS (http://www.netlib.org/atlas). -# CONFIG = -DCBLAS -I../ATLAS/include -# LIB = -lcblas -latlas -lm -+CONFIG = -DCBLAS -I../ATLAS/include -I${LOCALBASE}/include -+LIB = -L${LOCALBASE}/lib -lcblas -latlas -lm ++CONFIG = -DGETRUSAGE -DCBLAS -I../ATLAS/include -I%%BLASBASE%%/include ++LIB = -L%%BLASBASE%%/lib %%CBLAS_LIBS%% -lm # 3: with Fortran interface to the ATLAS BLAS -# CONFIG = -# LIB = -lf77blas -latlas -lfrtbegin -lg2c -lm -+# CONFIG = -I${LOCALBASE}/include -+# LIB = -L${LOCALBASE}/lib -lf77blas -latlas -lfrtbegin -lg2c -lm ++# CONFIG = -I%%BLASBASE%%/include ++# LIB = -L%%BLASBASE%%/lib -lf77blas -latlas -lfrtbegin -lg2c -lm # 4: with Fortran interface to the BLAS, and Goto's BLAS - CONFIG = >Release-Note: >Audit-Trail: >Unformatted: