ports/60835: New port: math/emc2, a graphic editor of two dimensional geometry and mesh.

Thierry Thomas thierry at pompo.net
Fri Jan 2 21:10:28 UTC 2004


>Number:         60835
>Category:       ports
>Synopsis:       New port: math/emc2, a graphic editor of two dimensional geometry and mesh.
>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:   Fri Jan 02 13:10:18 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 5.2-RC i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD ws90bj.pompo.net 5.2-RC FreeBSD 5.2-RC #0: Fri Jan 2 18:13:49 CET 2004 thierry at ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-040102 i386


	
>Description:
	Yet another add-on for the port math/freefem++.

>How-To-Repeat:
	N/A.

>Fix:
	Please execute the following shar file:

--- emc2.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:
#
#	math/emc2
#	math/emc2/Makefile
#	math/emc2/distinfo
#	math/emc2/pkg-descr
#	math/emc2/pkg-plist
#	math/emc2/files
#	math/emc2/files/patch-Makefile
#	math/emc2/files/patch-libI77::fio.h
#
echo c - math/emc2
mkdir -p math/emc2 > /dev/null 2>&1
echo x - math/emc2/Makefile
sed 's/^X//' >math/emc2/Makefile << 'END-of-math/emc2/Makefile'
X# New ports collection makefile for:	emc2
X# Date created:        16 December 2003
X# Whom:                thierry at pompo.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	emc2
XPORTVERSION=	2.15
XCATEGORIES=	math science
XMASTER_SITES=	ftp://ftp.inria.fr/INRIA/Projects/Gamma/emc2/
XDISTNAME=	${PORTNAME}-v${PORTVERSION}c
X.if !defined(NOPORTDOCS)
XDISTFILES=	${DISTNAME}${EXTRACT_SUFX}	\
X		${PORTNAME}.doc.en.ps.gz ${PORTNAME}.doc.fr.ps.gz
XEXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
X.endif
X
XMAINTAINER=	ports at FreeBSD.org
XCOMMENT=	A graphic editor of two dimensional geometry and mesh
X
XRESTRICTED=	No resale, contact author for commercial usage
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XUSE_XLIB=	yes
XUSE_GMAKE=	yes
XALL_TARGET=	${PORTNAME}
X
X.if defined(LANG) && ${LANG:Mfr*} != ""
XCFLAGS+=	-DFRENCH
X.endif
X
Xpost-install:
X	@${STRIP_CMD} ${PREFIX}/bin/emc2
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}
X.for doc in ${PORTNAME}.doc.en.ps.gz ${PORTNAME}.doc.fr.ps.gz
X	@${INSTALL_DATA} ${DISTDIR}/${doc} ${DOCSDIR}
X.endfor
X	@${ECHO_MSG} "===>  Documentation installed in ${DOCSDIR}."
X	@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
X	@${ECHO_MSG} "===>  Examples installed in ${EXAMPLESDIR}."
X.endif
X
X.include <bsd.port.mk>
END-of-math/emc2/Makefile
echo x - math/emc2/distinfo
sed 's/^X//' >math/emc2/distinfo << 'END-of-math/emc2/distinfo'
XMD5 (emc2-v2.15c.tar.gz) = 28452afd8e734e9fb27783fcc4df6fac
XMD5 (emc2.doc.en.ps.gz) = 5056bcca5d12d2410c121778404ab40c
XMD5 (emc2.doc.fr.ps.gz) = 9c65a98f9926eb85e51c651aa9ee4488
END-of-math/emc2/distinfo
echo x - math/emc2/pkg-descr
sed 's/^X//' >math/emc2/pkg-descr << 'END-of-math/emc2/pkg-descr'
XEmc2 is a portable, interactive and graphic software Edition of two
Xdimensional geometry and mesh. We can create and modify the geometry
X(CAD), define the discretization on the lines, define the subdomains,
Xand define some reference numbers to take into account the boundary
Xconditions and material properties. The elements of the mesh are triangles
Xand quadrilaterals. We have two kind of meshes: grid mesh and Delaunay
XVoronoï (automatic mesh). We make the edition of the mesh by moving,
Xremoving, adding vertices, by regularization, or by transformations
X(symmetry, rotation,..), etc.
X
XSuggested add-on: the port math/bamg.
X
XWWW: http://www-rocq1.inria.fr/gamma/cdrom/www/emc2/eng.htm
END-of-math/emc2/pkg-descr
echo x - math/emc2/pkg-plist
sed 's/^X//' >math/emc2/pkg-plist << 'END-of-math/emc2/pkg-plist'
Xbin/emc2
Xbin/prf_f3d
X%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
X%%PORTDOCS%%%%DOCSDIR%%/emc2.doc.en.ps.gz
X%%PORTDOCS%%%%DOCSDIR%%/emc2.doc.fr.ps.gz
X%%PORTDOCS%%%%EXAMPLESDIR%%/c.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/cooler.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/culot1.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/demi_carre.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/fissure.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/gruyere.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/houman.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/levier.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/mos.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/naca.f
X%%PORTDOCS%%%%EXAMPLESDIR%%/naca.pts
X%%PORTDOCS%%%%EXAMPLESDIR%%/naca012.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/q.emc2_bd
X%%PORTDOCS%%%%EXAMPLESDIR%%/rotor.emc2_bd
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
END-of-math/emc2/pkg-plist
echo c - math/emc2/files
mkdir -p math/emc2/files > /dev/null 2>&1
echo x - math/emc2/files/patch-Makefile
sed 's/^X//' >math/emc2/files/patch-Makefile << 'END-of-math/emc2/files/patch-Makefile'
X--- Makefile.orig	Mon Feb 10 09:17:51 2003
X+++ Makefile	Tue Dec 16 23:22:42 2003
X@@ -8,9 +8,9 @@
X # for IBM RS6000
X #CC=xlc
X #CFLAGS=-O
X-BIN=/usr/local/bin
X-X11INCLUDEDIR=/usr/include/X11R6
X-X11LIBDIR=/usr/lib/X11R6
X+BIN=$(PREFIX)/bin
X+X11INCLUDEDIR=$(X11BASE)/include
X+X11LIBDIR=$(X11BASE)/lib
X X11LIB= -L$(X11LIBDIR)  -lX11
X MATHLIB=  -lm
X 
END-of-math/emc2/files/patch-Makefile
echo x - math/emc2/files/patch-libI77::fio.h
sed 's/^X//' >math/emc2/files/patch-libI77::fio.h << 'END-of-math/emc2/files/patch-libI77::fio.h'
X--- libI77/fio.h.orig	Tue Nov  9 15:58:43 1999
X+++ libI77/fio.h	Tue Dec 16 23:53:43 2003
X@@ -17,6 +17,12 @@
X #endif
X #endif
X 
X+#ifdef  __FreeBSD__
X+#ifndef NON_UNIX_STDIO
X+#define NON_UNIX_STDIO
X+#endif
X+#endif
X+
X #ifdef UIOLEN_int
X typedef int uiolen;
X #else
END-of-math/emc2/files/patch-libI77::fio.h
exit
--- emc2.shar ends here ---

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



More information about the freebsd-ports-bugs mailing list