summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2006-02-22 18:47:27 +0000
committerThierry Thomas <thierry@FreeBSD.org>2006-02-22 18:47:27 +0000
commitfe139b16b0d197e2748ced4fae950ab9ff0e52c0 (patch)
treedfd96fbc79bdbf0a00bf91a39eca34002a902a78 /math
parentAdd x11-themes/gnome-icons-snowish (diff)
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. Since I'm there, fix MASTER_SITES. PR: 93714 Submitted by: Pedro F. Giffuni <giffunip (at) asme.org>
Notes
Notes: svn path=/head/; revision=156699
Diffstat (limited to 'math')
-rw-r--r--math/metis/Makefile15
-rw-r--r--math/metis4/Makefile15
2 files changed, 24 insertions, 6 deletions
diff --git a/math/metis/Makefile b/math/metis/Makefile
index c921eb018bf5..84a6d2c1cdcd 100644
--- a/math/metis/Makefile
+++ b/math/metis/Makefile
@@ -8,18 +8,27 @@
PORTNAME= metis
PORTVERSION= 4.0
CATEGORIES= math
-MASTER_SITES= http://www-users.cs.umn.edu/~karypis/metis/metis/files/
+MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ \
+ http://www-users.cs.umn.edu/~karypis/metis/metis/files/
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 +41,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/math/metis4/Makefile b/math/metis4/Makefile
index c921eb018bf5..84a6d2c1cdcd 100644
--- a/math/metis4/Makefile
+++ b/math/metis4/Makefile
@@ -8,18 +8,27 @@
PORTNAME= metis
PORTVERSION= 4.0
CATEGORIES= math
-MASTER_SITES= http://www-users.cs.umn.edu/~karypis/metis/metis/files/
+MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ \
+ http://www-users.cs.umn.edu/~karypis/metis/metis/files/
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 +41,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>