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>
This commit is contained in:
Thierry Thomas 2006-02-22 18:47:27 +00:00
parent 464821776f
commit fe139b16b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156699
2 changed files with 24 additions and 6 deletions

View file

@ -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>

View file

@ -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>