ports/93714: Minor enhancement for math/metis port (amd64 only)
Pedro F. Giffuni
giffunip at asme.org
Wed Feb 22 17:50:21 UTC 2006
>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 at 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 at 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:
More information about the freebsd-ports-bugs
mailing list