aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/metis-edf/Makefile39
-rw-r--r--math/metis-edf/distinfo1
-rw-r--r--math/metis-edf/files/patch-CONFIG::configure43
-rw-r--r--math/metis-edf/files/patch-Programs::Makefile11
-rw-r--r--math/metis-edf/files/patch-Test::Makefile11
-rw-r--r--math/metis-edf/pkg-descr8
-rw-r--r--math/metis-edf/pkg-plist7
7 files changed, 120 insertions, 0 deletions
diff --git a/math/metis-edf/Makefile b/math/metis-edf/Makefile
new file mode 100644
index 000000000000..2ffdb3f27bff
--- /dev/null
+++ b/math/metis-edf/Makefile
@@ -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>
diff --git a/math/metis-edf/distinfo b/math/metis-edf/distinfo
new file mode 100644
index 000000000000..1cd3ed6bed6e
--- /dev/null
+++ b/math/metis-edf/distinfo
@@ -0,0 +1 @@
+MD5 (metis-edf-3.tar.gz) = 1d989afa8bb0686f815eb2e8e71fadbc
diff --git a/math/metis-edf/files/patch-CONFIG::configure b/math/metis-edf/files/patch-CONFIG::configure
new file mode 100644
index 000000000000..d361908d84f0
--- /dev/null
+++ b/math/metis-edf/files/patch-CONFIG::configure
@@ -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"
diff --git a/math/metis-edf/files/patch-Programs::Makefile b/math/metis-edf/files/patch-Programs::Makefile
new file mode 100644
index 000000000000..f50d7d73bce3
--- /dev/null
+++ b/math/metis-edf/files/patch-Programs::Makefile
@@ -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
+
+
+
diff --git a/math/metis-edf/files/patch-Test::Makefile b/math/metis-edf/files/patch-Test::Makefile
new file mode 100644
index 000000000000..85f5ddecfed0
--- /dev/null
+++ b/math/metis-edf/files/patch-Test::Makefile
@@ -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
diff --git a/math/metis-edf/pkg-descr b/math/metis-edf/pkg-descr
new file mode 100644
index 000000000000..4b7e87f21edf
--- /dev/null
+++ b/math/metis-edf/pkg-descr
@@ -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
diff --git a/math/metis-edf/pkg-plist b/math/metis-edf/pkg-plist
new file mode 100644
index 000000000000..38edff09d865
--- /dev/null
+++ b/math/metis-edf/pkg-plist
@@ -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%%