Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2006 17:42:50 GMT
From:      "Pedro F. Giffuni" <giffunip@asme.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/93714: Minor enhancement for math/metis port (amd64 only) 
Message-ID:  <200602221742.k1MHgoth066334@www.freebsd.org>
Resent-Message-ID: <200602221750.k1MHoBMe034699@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         93714
>Category:       ports
>Synopsis:       Minor enhancement for math/metis port (amd64 only)
>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 22 17:50:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.0-Release
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.0-RELEASE FreeBSD 6.0-RELEASE #12: Sat Feb 11 13:45:47 COT 2006     root@etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION  amd64

>Description:
              Add -fPIC for amd64, this will help CalculiX build on amd64 when the atlas libraries are not build statically. For now a shared library, and therefore a run dependency to the ports that build with metis, is not convenient.

Pet portlint while here.
>How-To-Repeat:
              
>Fix:
              patch follows:
diff -ruN metis.orig/Makefile metis/Makefile
--- metis.orig/Makefile	Sun Feb 19 23:33:59 2006
+++ metis/Makefile	Wed Feb 22 12:35:03 2006
@@ -13,13 +13,21 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A package for unstructured graph partitioning
 
-CONFLICTS=	metis-edf-*
+CONFLICTS=	metis-edf-[0-9]*
 
 ALL_TARGET=
 
 PROGRAMS=	graphchk kmetis mesh2dual mesh2nodal	\
 		oemetis onmetis partnmesh partdmesh pmetis
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+post-configure:
+	@${REINPLACE_CMD} -e 's+COPTIONS =+COPTIONS = -fPIC+;'	\
+		${WRKSRC}/Makefile.in
+.endif
+
 do-install:
 .for p in ${PROGRAMS}
 	${INSTALL_PROGRAM} ${WRKSRC}/${p} ${PREFIX}/bin
@@ -32,4 +40,4 @@
 	${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602221742.k1MHgoth066334>