mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
Add metis-edf 3, meshes partionning tool used by Code_Aster.
PR: 53909 Submitted by: thierry@pompo.net
This commit is contained in:
parent
419650db62
commit
9fd1a0b832
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85421
15 changed files with 241 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
||||||
SUBDIR += linux-eagle
|
SUBDIR += linux-eagle
|
||||||
SUBDIR += magic
|
SUBDIR += magic
|
||||||
SUBDIR += mars
|
SUBDIR += mars
|
||||||
|
SUBDIR += metis-edf
|
||||||
SUBDIR += ngspice_rework
|
SUBDIR += ngspice_rework
|
||||||
SUBDIR += oregano
|
SUBDIR += oregano
|
||||||
SUBDIR += pcb
|
SUBDIR += pcb
|
||||||
|
|
39
cad/metis-edf/Makefile
Normal file
39
cad/metis-edf/Makefile
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
# New ports collection makefile for: metis-edf
|
||||||
|
# Date created: Thu Jun 26 2003
|
||||||
|
# Whom: thierry@pompo.net
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= metis-edf
|
||||||
|
PORTVERSION= 3
|
||||||
|
CATEGORIES= cad
|
||||||
|
MASTER_SITES= http://www.code-aster.org/FICHIERS/metis/
|
||||||
|
|
||||||
|
MAINTAINER= ports@FreeBSD.org
|
||||||
|
COMMENT= Meshes partionning tool used by Code_Aster
|
||||||
|
|
||||||
|
ALL_TARGET= default
|
||||||
|
MAKE_ENV+= CC="${CC}" AR="${AR}" LD="${LD}" F77="${F77}"
|
||||||
|
USE_REINPLACE= yes
|
||||||
|
|
||||||
|
F77?= f77
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
@${CP} ${WRKSRC}/CONFIG/onmetis.in ${WRKSRC}/onmetis
|
||||||
|
@${REINPLACE_CMD} -e "s#HOME_METIS#${PREFIX}/bin#" ${WRKSRC}/onmetis
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/onmetis ${PREFIX}/bin
|
||||||
|
${INSTALL_PROGRAM} ${WRKSRC}/onmetis.exe ${PREFIX}/bin
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/libmetis.a ${PREFIX}/lib
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
.if !defined(NOPORTDOCS)
|
||||||
|
@${MKDIR} ${DOCSDIR}
|
||||||
|
@${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${DOCSDIR}
|
||||||
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
||||||
|
@${MKDIR} ${EXAMPLESDIR}
|
||||||
|
@${INSTALL_DATA} ${WRKSRC}/Test/fort.81 ${EXAMPLESDIR}
|
||||||
|
@${ECHO_MSG} "===> Test file installed in ${EXAMPLESDIR}."
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
1
cad/metis-edf/distinfo
Normal file
1
cad/metis-edf/distinfo
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MD5 (metis-edf-3.tar.gz) = 1d989afa8bb0686f815eb2e8e71fadbc
|
43
cad/metis-edf/files/patch-CONFIG::configure
Normal file
43
cad/metis-edf/files/patch-CONFIG::configure
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
--- CONFIG/configure.orig Mon Dec 16 18:11:44 2002
|
||||||
|
+++ CONFIG/configure Sun Jun 29 14:58:48 2003
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
if [ -z "$rtn" ] || [ "$rtn" = "y" -o "$rtn" = "Y" ]; then
|
||||||
|
OS_TYPE=SunOS64
|
||||||
|
fi
|
||||||
|
-elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" ]; then
|
||||||
|
+elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" -a $OS_TYPE != "FreeBSD" ]; then
|
||||||
|
echo " Operating system $OS_TYPE unknown on this distribution"
|
||||||
|
echo " Installation failed !"
|
||||||
|
exit 8
|
||||||
|
@@ -30,14 +30,23 @@
|
||||||
|
# FOPTIONS : Fortran compiler options,
|
||||||
|
# LDOPTIONS : link options, AR : archiver
|
||||||
|
|
||||||
|
-CC="cc"
|
||||||
|
-F90="f90"
|
||||||
|
-LD="$F90"
|
||||||
|
-COPTIONS=""
|
||||||
|
-FOPTIONS=""
|
||||||
|
-LDOPTIONS="-L. -L.."
|
||||||
|
-OPTFLAGS="-O"
|
||||||
|
-AR="ar rv"
|
||||||
|
+if [ $OS_TYPE = "FreeBSD" ]; then
|
||||||
|
+ CC="$CC"
|
||||||
|
+ F90="$F77"
|
||||||
|
+ LD="$LD"
|
||||||
|
+ COPTIONS="$CFLAGS"
|
||||||
|
+ LDOPTIONS="$LDFLAGS -lc -lg2c -L. -L.."
|
||||||
|
+ AR="$AR rv"
|
||||||
|
+else
|
||||||
|
+ CC="cc"
|
||||||
|
+ F90="f90"
|
||||||
|
+ LD="$F90"
|
||||||
|
+ COPTIONS=""
|
||||||
|
+ FOPTIONS=""
|
||||||
|
+ LDOPTIONS="-L. -L.."
|
||||||
|
+ OPTFLAGS="-O"
|
||||||
|
+ AR="ar rv"
|
||||||
|
+fi
|
||||||
|
if [ $OS_TYPE = "Linux" ]; then
|
||||||
|
CC="gcc"
|
||||||
|
F90="g77"
|
11
cad/metis-edf/files/patch-Programs::Makefile
Normal file
11
cad/metis-edf/files/patch-Programs::Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Programs/Makefile.orig Thu Dec 12 13:47:59 2002
|
||||||
|
+++ Programs/Makefile Sun Jun 29 15:39:26 2003
|
||||||
|
@@ -11,7 +11,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-ONMETISOBJS = onmetis.o io.o smbfactor.o ecri11.o lect11.o lect00.o
|
||||||
|
+ONMETISOBJS = onmetis.o io.o smbfactor.o ecri11.o lect11.o lect00.o /usr/lib/crt1.o
|
||||||
|
|
||||||
|
|
||||||
|
|
11
cad/metis-edf/files/patch-Test::Makefile
Normal file
11
cad/metis-edf/files/patch-Test::Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Test/Makefile.orig Thu Dec 12 13:47:59 2002
|
||||||
|
+++ Test/Makefile Sun Jun 29 16:00:25 2003
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
vers_check:
|
||||||
|
@echo "### Test 2 : test --version option, onmetis returns :"
|
||||||
|
- (../onmetis --version ; exit 0)
|
||||||
|
+ @echo `../onmetis --version`
|
||||||
|
@echo " "
|
||||||
|
|
||||||
|
fort.85 : fort.81
|
8
cad/metis-edf/pkg-descr
Normal file
8
cad/metis-edf/pkg-descr
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
METIS is a software package for partitioning unstructured graphs,
|
||||||
|
partitioning meshes, and computing fill-reducing orderings of sparse
|
||||||
|
matrices.
|
||||||
|
|
||||||
|
Important note: this is not the original METIS, it has been specially
|
||||||
|
patched by EDF to be used by Code_Aster.
|
||||||
|
|
||||||
|
WWW: http://www-users.cs.umn.edu/~karypis/metis/index.html
|
7
cad/metis-edf/pkg-plist
Normal file
7
cad/metis-edf/pkg-plist
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
bin/onmetis
|
||||||
|
bin/onmetis.exe
|
||||||
|
lib/libmetis.a
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/manual.ps
|
||||||
|
%%PORTDOCS%%%%EXAMPLESDIR%%/fort.81
|
||||||
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||||
|
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
39
math/metis-edf/Makefile
Normal file
39
math/metis-edf/Makefile
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
# New ports collection makefile for: metis-edf
|
||||||
|
# Date created: Thu Jun 26 2003
|
||||||
|
# Whom: thierry@pompo.net
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= metis-edf
|
||||||
|
PORTVERSION= 3
|
||||||
|
CATEGORIES= cad
|
||||||
|
MASTER_SITES= http://www.code-aster.org/FICHIERS/metis/
|
||||||
|
|
||||||
|
MAINTAINER= ports@FreeBSD.org
|
||||||
|
COMMENT= Meshes partionning tool used by Code_Aster
|
||||||
|
|
||||||
|
ALL_TARGET= default
|
||||||
|
MAKE_ENV+= CC="${CC}" AR="${AR}" LD="${LD}" F77="${F77}"
|
||||||
|
USE_REINPLACE= yes
|
||||||
|
|
||||||
|
F77?= f77
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
@${CP} ${WRKSRC}/CONFIG/onmetis.in ${WRKSRC}/onmetis
|
||||||
|
@${REINPLACE_CMD} -e "s#HOME_METIS#${PREFIX}/bin#" ${WRKSRC}/onmetis
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/onmetis ${PREFIX}/bin
|
||||||
|
${INSTALL_PROGRAM} ${WRKSRC}/onmetis.exe ${PREFIX}/bin
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/libmetis.a ${PREFIX}/lib
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
.if !defined(NOPORTDOCS)
|
||||||
|
@${MKDIR} ${DOCSDIR}
|
||||||
|
@${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${DOCSDIR}
|
||||||
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
||||||
|
@${MKDIR} ${EXAMPLESDIR}
|
||||||
|
@${INSTALL_DATA} ${WRKSRC}/Test/fort.81 ${EXAMPLESDIR}
|
||||||
|
@${ECHO_MSG} "===> Test file installed in ${EXAMPLESDIR}."
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
1
math/metis-edf/distinfo
Normal file
1
math/metis-edf/distinfo
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MD5 (metis-edf-3.tar.gz) = 1d989afa8bb0686f815eb2e8e71fadbc
|
43
math/metis-edf/files/patch-CONFIG::configure
Normal file
43
math/metis-edf/files/patch-CONFIG::configure
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
--- CONFIG/configure.orig Mon Dec 16 18:11:44 2002
|
||||||
|
+++ CONFIG/configure Sun Jun 29 14:58:48 2003
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
if [ -z "$rtn" ] || [ "$rtn" = "y" -o "$rtn" = "Y" ]; then
|
||||||
|
OS_TYPE=SunOS64
|
||||||
|
fi
|
||||||
|
-elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" ]; then
|
||||||
|
+elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" -a $OS_TYPE != "FreeBSD" ]; then
|
||||||
|
echo " Operating system $OS_TYPE unknown on this distribution"
|
||||||
|
echo " Installation failed !"
|
||||||
|
exit 8
|
||||||
|
@@ -30,14 +30,23 @@
|
||||||
|
# FOPTIONS : Fortran compiler options,
|
||||||
|
# LDOPTIONS : link options, AR : archiver
|
||||||
|
|
||||||
|
-CC="cc"
|
||||||
|
-F90="f90"
|
||||||
|
-LD="$F90"
|
||||||
|
-COPTIONS=""
|
||||||
|
-FOPTIONS=""
|
||||||
|
-LDOPTIONS="-L. -L.."
|
||||||
|
-OPTFLAGS="-O"
|
||||||
|
-AR="ar rv"
|
||||||
|
+if [ $OS_TYPE = "FreeBSD" ]; then
|
||||||
|
+ CC="$CC"
|
||||||
|
+ F90="$F77"
|
||||||
|
+ LD="$LD"
|
||||||
|
+ COPTIONS="$CFLAGS"
|
||||||
|
+ LDOPTIONS="$LDFLAGS -lc -lg2c -L. -L.."
|
||||||
|
+ AR="$AR rv"
|
||||||
|
+else
|
||||||
|
+ CC="cc"
|
||||||
|
+ F90="f90"
|
||||||
|
+ LD="$F90"
|
||||||
|
+ COPTIONS=""
|
||||||
|
+ FOPTIONS=""
|
||||||
|
+ LDOPTIONS="-L. -L.."
|
||||||
|
+ OPTFLAGS="-O"
|
||||||
|
+ AR="ar rv"
|
||||||
|
+fi
|
||||||
|
if [ $OS_TYPE = "Linux" ]; then
|
||||||
|
CC="gcc"
|
||||||
|
F90="g77"
|
11
math/metis-edf/files/patch-Programs::Makefile
Normal file
11
math/metis-edf/files/patch-Programs::Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Programs/Makefile.orig Thu Dec 12 13:47:59 2002
|
||||||
|
+++ Programs/Makefile Sun Jun 29 15:39:26 2003
|
||||||
|
@@ -11,7 +11,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-ONMETISOBJS = onmetis.o io.o smbfactor.o ecri11.o lect11.o lect00.o
|
||||||
|
+ONMETISOBJS = onmetis.o io.o smbfactor.o ecri11.o lect11.o lect00.o /usr/lib/crt1.o
|
||||||
|
|
||||||
|
|
||||||
|
|
11
math/metis-edf/files/patch-Test::Makefile
Normal file
11
math/metis-edf/files/patch-Test::Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Test/Makefile.orig Thu Dec 12 13:47:59 2002
|
||||||
|
+++ Test/Makefile Sun Jun 29 16:00:25 2003
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
vers_check:
|
||||||
|
@echo "### Test 2 : test --version option, onmetis returns :"
|
||||||
|
- (../onmetis --version ; exit 0)
|
||||||
|
+ @echo `../onmetis --version`
|
||||||
|
@echo " "
|
||||||
|
|
||||||
|
fort.85 : fort.81
|
8
math/metis-edf/pkg-descr
Normal file
8
math/metis-edf/pkg-descr
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
METIS is a software package for partitioning unstructured graphs,
|
||||||
|
partitioning meshes, and computing fill-reducing orderings of sparse
|
||||||
|
matrices.
|
||||||
|
|
||||||
|
Important note: this is not the original METIS, it has been specially
|
||||||
|
patched by EDF to be used by Code_Aster.
|
||||||
|
|
||||||
|
WWW: http://www-users.cs.umn.edu/~karypis/metis/index.html
|
7
math/metis-edf/pkg-plist
Normal file
7
math/metis-edf/pkg-plist
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
bin/onmetis
|
||||||
|
bin/onmetis.exe
|
||||||
|
lib/libmetis.a
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/manual.ps
|
||||||
|
%%PORTDOCS%%%%EXAMPLESDIR%%/fort.81
|
||||||
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||||
|
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
Loading…
Add table
Reference in a new issue