Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2003 23:44:56 +0200 (CEST)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53909: New port: cad/metis-edf - a meshes partionning tool used by Code_Aster.
Message-ID:  <20030629214456.BED4A22BDCB@ws90bj.pompo.net>
Resent-Message-ID: <200306292150.h5TLoJBY027826@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         53909
>Category:       ports
>Synopsis:       New port: cad/metis-edf - a meshes partionning tool used by Code_Aster.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 29 14:50:19 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD ws90bj.pompo.net 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Tue Jun 10 23:15:41 CEST 2003 root@ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-030610 i386


	
>Description:
	METIS is a software package for partitioning unstructured graphs,
	partitioning meshes, and computing fill-reducing orderings of
	sparse matrices.
	
	This port is not the regular METIS package, but a patched version
	required by Code_Aster (to be ported).

>How-To-Repeat:
	N/A.

>Fix:
	Please execute the following shar file:

--- metis-edf.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cad/metis-edf
#	cad/metis-edf/Makefile
#	cad/metis-edf/distinfo
#	cad/metis-edf/pkg-descr
#	cad/metis-edf/pkg-plist
#	cad/metis-edf/files
#	cad/metis-edf/files/patch-CONFIG::configure
#	cad/metis-edf/files/patch-Programs::Makefile
#	cad/metis-edf/files/patch-Test::Makefile
#
echo c - cad/metis-edf
mkdir -p cad/metis-edf > /dev/null 2>&1
echo x - cad/metis-edf/Makefile
sed 's/^X//' >cad/metis-edf/Makefile << 'END-of-cad/metis-edf/Makefile'
X# New ports collection makefile for:	metis-edf
X# Date created:		Thu Jun 26 2003
X# Whom:			thierry@pompo.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	metis-edf
XPORTVERSION=	3
XCATEGORIES=	cad
XMASTER_SITES=	http://www.code-aster.org/FICHIERS/metis/
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	Meshes partionning tool used by Code_Aster
X
XALL_TARGET=	default
XMAKE_ENV+=	CC="${CC}" AR="${AR}" LD="${LD}" F77="${F77}"
XUSE_REINPLACE=	yes
X
XF77?=		f77
X
Xdo-install:
X	@${CP} ${WRKSRC}/CONFIG/onmetis.in ${WRKSRC}/onmetis
X	@${REINPLACE_CMD} -e "s#HOME_METIS#${PREFIX}/bin#" ${WRKSRC}/onmetis
X	${INSTALL_SCRIPT} ${WRKSRC}/onmetis ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/onmetis.exe ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/libmetis.a ${PREFIX}/lib
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${DOCSDIR}
X	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/Test/fort.81 ${EXAMPLESDIR}
X	@${ECHO_MSG} "===> Test file installed in ${EXAMPLESDIR}."
X.endif
X
X.include <bsd.port.mk>
END-of-cad/metis-edf/Makefile
echo x - cad/metis-edf/distinfo
sed 's/^X//' >cad/metis-edf/distinfo << 'END-of-cad/metis-edf/distinfo'
XMD5 (metis-edf-3.tar.gz) = 1d989afa8bb0686f815eb2e8e71fadbc
END-of-cad/metis-edf/distinfo
echo x - cad/metis-edf/pkg-descr
sed 's/^X//' >cad/metis-edf/pkg-descr << 'END-of-cad/metis-edf/pkg-descr'
XMETIS is a software package for partitioning unstructured graphs,
Xpartitioning meshes, and computing fill-reducing orderings of sparse
Xmatrices.
X
XImportant note: this is not the original METIS, it has been specially
Xpatched by EDF to be used by Code_Aster.
X
XWWW: http://www-users.cs.umn.edu/~karypis/metis/index.html
END-of-cad/metis-edf/pkg-descr
echo x - cad/metis-edf/pkg-plist
sed 's/^X//' >cad/metis-edf/pkg-plist << 'END-of-cad/metis-edf/pkg-plist'
Xbin/onmetis
Xbin/onmetis.exe
Xlib/libmetis.a
X%%PORTDOCS%%%%DOCSDIR%%/manual.ps
X%%PORTDOCS%%%%EXAMPLESDIR%%/fort.81
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
END-of-cad/metis-edf/pkg-plist
echo c - cad/metis-edf/files
mkdir -p cad/metis-edf/files > /dev/null 2>&1
echo x - cad/metis-edf/files/patch-CONFIG::configure
sed 's/^X//' >cad/metis-edf/files/patch-CONFIG::configure << 'END-of-cad/metis-edf/files/patch-CONFIG::configure'
X--- CONFIG/configure.orig	Mon Dec 16 18:11:44 2002
X+++ CONFIG/configure	Sun Jun 29 14:58:48 2003
X@@ -18,7 +18,7 @@
X    if [ -z "$rtn" ] || [ "$rtn" = "y" -o "$rtn" = "Y" ]; then
X       OS_TYPE=SunOS64
X    fi
X-elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" ]; then
X+elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" -a $OS_TYPE != "FreeBSD" ]; then
X 	echo " Operating system $OS_TYPE unknown on this distribution"
X 	echo " Installation failed !"
X    exit 8
X@@ -30,14 +30,23 @@
X # FOPTIONS : Fortran compiler options,
X # LDOPTIONS : link options, AR : archiver
X 
X-CC="cc"
X-F90="f90"
X-LD="$F90"
X-COPTIONS=""
X-FOPTIONS=""
X-LDOPTIONS="-L. -L.."
X-OPTFLAGS="-O"
X-AR="ar rv"
X+if [ $OS_TYPE = "FreeBSD" ]; then
X+   CC="$CC"
X+   F90="$F77"
X+   LD="$LD"
X+   COPTIONS="$CFLAGS"
X+   LDOPTIONS="$LDFLAGS -lc -lg2c -L. -L.."
X+   AR="$AR rv"
X+else
X+   CC="cc"
X+   F90="f90"
X+   LD="$F90"
X+   COPTIONS=""
X+   FOPTIONS=""
X+   LDOPTIONS="-L. -L.."
X+   OPTFLAGS="-O"
X+   AR="ar rv"
X+fi
X if [ $OS_TYPE = "Linux" ]; then
X    CC="gcc"
X    F90="g77"
END-of-cad/metis-edf/files/patch-CONFIG::configure
echo x - cad/metis-edf/files/patch-Programs::Makefile
sed 's/^X//' >cad/metis-edf/files/patch-Programs::Makefile << 'END-of-cad/metis-edf/files/patch-Programs::Makefile'
X--- Programs/Makefile.orig	Thu Dec 12 13:47:59 2002
X+++ Programs/Makefile	Sun Jun 29 15:39:26 2003
X@@ -11,7 +11,7 @@
X 
X 
X 
X-ONMETISOBJS = onmetis.o io.o smbfactor.o ecri11.o lect11.o lect00.o
X+ONMETISOBJS = onmetis.o io.o smbfactor.o ecri11.o lect11.o lect00.o /usr/lib/crt1.o
X 
X  
X 
END-of-cad/metis-edf/files/patch-Programs::Makefile
echo x - cad/metis-edf/files/patch-Test::Makefile
sed 's/^X//' >cad/metis-edf/files/patch-Test::Makefile << 'END-of-cad/metis-edf/files/patch-Test::Makefile'
X--- Test/Makefile.orig	Thu Dec 12 13:47:59 2002
X+++ Test/Makefile	Sun Jun 29 16:00:25 2003
X@@ -4,7 +4,7 @@
X 
X vers_check:
X 	@echo "### Test 2 : test --version option, onmetis returns :"
X-	(../onmetis --version ; exit 0)
X+	@echo `../onmetis --version`
X 	@echo " "
X 
X fort.85 : fort.81
END-of-cad/metis-edf/files/patch-Test::Makefile
exit
--- metis-edf.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030629214456.BED4A22BDCB>