1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Medit is an interactive mesh visualization software, developed by the Gamma

project at INRIA-Rocquencourt.

It is intended to display computation results (in mechanics of the solids or
fluids, thermics, electromagnetism, etc.) on grids 2d (triangles and
quadrangles), 3d (tetrahedrons or hexahedrons) or surfaces (triangles and
quandrangles).
This commit is contained in:
Thierry Thomas 2006-09-24 23:09:26 +00:00
parent be0aa65e46
commit bf460149a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173750
6 changed files with 145 additions and 0 deletions

View File

@ -60,6 +60,7 @@
SUBDIR += mayavi
SUBDIR += mbdyn
SUBDIR += mcstas
SUBDIR += medit
SUBDIR += minc
SUBDIR += minc2
SUBDIR += mmtk

93
science/medit/Makefile Normal file
View File

@ -0,0 +1,93 @@
# New ports collection makefile for: Medit
# Date created: Sep 24, 2006
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
PORTNAME= medit
PORTVERSION= 2006.09.24
CATEGORIES= science graphics
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.ann.jussieu.fr/~frey/logiciels/:author
MASTER_SITE_SUBDIR= thierry
EXTRACT_SUFX= .tgz
DISTFILES= # See hereunder
MAINTAINER= thierry@FreeBSD.org
COMMENT= Interactive meshes visualization
.if defined(MAINTAINER_MODE)
DISTFILES+= ${PORTNAME}.${PORTVERSION}${EXTRACT_SUFX} \
${PORTNAME}-missing.${PORTVERSION}${EXTRACT_SUFX}
MD5_FILE= ${MASTERDIR}/distinfo.src
USE_GMAKE= yes
MAKEFILE= makefile
ALL_TARGET= ${OPSYS}
MAKE_ENV= WRKSRC="${WRKSRC}" ARCHI=${OPSYS} ARCH=${ARCH} OSREL=${OSREL}
PLIST_FILES= # nada
MISSING_FILES= eigenv.c libmesh3.c libmesh3.h
.else
# We are not allowed to distribute the sources.
DISTFILES+= ${PORTNAME}-${ARCH}-${DISTVER}-${PORTVERSION}${EXTRACT_SUFX}
NO_BUILD= yes
PATCHDIR= # No patches
ONLY_FOR_ARCHS= i386 # Ask the maintainer to add one
PLIST_FILES= bin/${PORTNAME}
. if !defined(NOPORTDOCS)
DISTFILES+= meshes.tar.gz:author
MESHES= DEFAULT.medit ozark.gis part.bb part.mesh thepart.mesh
PLIST_FILES+= ${MESHES:S|^|%%EXAMPLESDIR%%/|}
PLIST_DIRS= %%EXAMPLESDIR%%
. endif
.endif
LIB_DEPENDS+= glut.4:${PORTSDIR}/graphics/libglut
NO_WRKSUBDIR= yes
USE_GL= yes
.include <bsd.port.pre.mk>
. if ${OSVERSION} < 601000
DISTVER= 4.11
. if ${OSVERSION} >= 500000
LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
. endif
. else
DISTVER= 6.1
. endif
.if defined(MAINTAINER_MODE)
post-extract:
. for mf in ${MISSING_FILES}
. if !exists(${WRKSRC}/sources/${mf})
${CP} ${WRKSRC}/${mf} ${WRKSRC}/sources
. endif
. endfor
pre-build:
${MKDIR} ${WRKSRC}/bin/${ARCH}/${OSREL}
tarball:
cd ${WRKSRC} && \
${TAR} cvfz ${_DISTDIR}${PORTNAME}-${ARCH}-${OSREL}-${PORTVERSION}${EXTRACT_SUFX}\
bin/${ARCH}/${OSREL}
.else # !MAINTAINER_MODE
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/${ARCH}/${DISTVER}/${PORTNAME} ${PREFIX}/bin
. if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${MESHES:S|^|${WRKSRC}/INRIA.dir/|} ${EXAMPLESDIR}
. endif
.endif
.include <bsd.port.post.mk>

9
science/medit/distinfo Normal file
View File

@ -0,0 +1,9 @@
MD5 (medit-i386-4.11-2006.09.24.tgz) = f4d938e6dca0ef82556833ac975d3e90
SHA256 (medit-i386-4.11-2006.09.24.tgz) = dab78485e91b021482333ef37bfdaf0b99ae7ea70d6d3d7f4edf873f659831c6
SIZE (medit-i386-4.11-2006.09.24.tgz) = 124381
MD5 (medit-i386-6.1-2006.09.24.tgz) = 04335b034cf158b10849347650572c7a
SHA256 (medit-i386-6.1-2006.09.24.tgz) = 8205fca318213cc0afcad383bca8f08e023ee26da0195101d039760111d881a8
SIZE (medit-i386-6.1-2006.09.24.tgz) = 141483
MD5 (meshes.tar.gz) = 06b0460d188b105431e5268bc6f36cf1
SHA256 (meshes.tar.gz) = 643869e1d797bf5c40024465d323ea3ae10477e687b6625be3f880cc6743298b
SIZE (meshes.tar.gz) = 2136831

View File

@ -0,0 +1,6 @@
MD5 (medit.2006.09.24.tgz) = a80c200cbb38985b5949c98aafdb5e43
SHA256 (medit.2006.09.24.tgz) = d2b0843de0e1a7c056c5aeeb32bd22ef5a82fcfdcbd4230b6ad229b45d558af7
SIZE (medit.2006.09.24.tgz) = 217236
MD5 (medit-missing.2006.09.24.tgz) = a10a1bc657eb3bc21f1497b11cfb5463
SHA256 (medit-missing.2006.09.24.tgz) = 99ede51b37d15037b9100abcba9190c7e0cd19f1742b4c45fa5672b994b4edb2
SIZE (medit-missing.2006.09.24.tgz) = 9940

View File

@ -0,0 +1,27 @@
--- makefile.orig Tue Apr 11 13:05:23 2006
+++ makefile Sun Sep 24 16:43:05 2006
@@ -4,6 +4,7 @@
default:
@echo "Type one of the following:"
@echo " make macosx for Apple Mac OS X"
+ @echo " make FreeBSD for FreeBSD"
@echo " make linux for Linux on Intel systems"
@echo " make win32 for Windows XP"
@echo " make hpux10 for HP systems with HPUX 10.x w/OpenGL"
@@ -23,6 +24,16 @@
"GLUT_LIB = -framework GLUT \
-framework OpenGL -framework Cocoa" \
"EXEDIR = /Applications/medit.app/Contents/MacOS"
+
+FreeBSD:
+ $(MAKE) $(MFLAGS) -f Makefile.arch \
+ "prog = medit" \
+ "INCDIR = -I. -I$(WRKSRC)/sources -I$(X11BASE)/include" \
+ "XLIBS = -L$(X11BASE)/lib -lXmu -lXext -lX11" \
+ "GL_LIB = -lGL" \
+ "GLU_LIB = -lGLU" \
+ "GLUT_LIB = -lglut" \
+ "EXEDIR = $(WRKSRC)/bin/$(ARCH)/$(OSREL)"
linux:
$(MAKE) $(MFLAGS) -f Makefile.arch \

9
science/medit/pkg-descr Normal file
View File

@ -0,0 +1,9 @@
Medit is an interactive mesh visualization software, developed by the Gamma
project at INRIA-Rocquencourt.
It is intended to display computation results (in mechanics of the solids or
fluids, thermics, electromagnetism, etc.) on grids 2d (triangles and
quadrangles), 3d (tetrahedrons or hexahedrons) or surfaces (triangles and
quandrangles).
WWW: http://www.ann.jussieu.fr/~frey/logiciels/medit.html