diff options
-rw-r--r-- | science/Makefile | 1 | ||||
-rw-r--r-- | science/medit/Makefile | 93 | ||||
-rw-r--r-- | science/medit/distinfo | 9 | ||||
-rw-r--r-- | science/medit/distinfo.src | 6 | ||||
-rw-r--r-- | science/medit/files/patch-makefile | 27 | ||||
-rw-r--r-- | science/medit/pkg-descr | 9 |
6 files changed, 145 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index 0d44ef9335b2..b2dd11b01725 100644 --- a/science/Makefile +++ b/science/Makefile @@ -60,6 +60,7 @@ SUBDIR += mayavi SUBDIR += mbdyn SUBDIR += mcstas + SUBDIR += medit SUBDIR += minc SUBDIR += minc2 SUBDIR += mmtk diff --git a/science/medit/Makefile b/science/medit/Makefile new file mode 100644 index 000000000000..131e2bc3c0bb --- /dev/null +++ b/science/medit/Makefile @@ -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> diff --git a/science/medit/distinfo b/science/medit/distinfo new file mode 100644 index 000000000000..3e7fd83d5103 --- /dev/null +++ b/science/medit/distinfo @@ -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 diff --git a/science/medit/distinfo.src b/science/medit/distinfo.src new file mode 100644 index 000000000000..a42134db9ab3 --- /dev/null +++ b/science/medit/distinfo.src @@ -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 diff --git a/science/medit/files/patch-makefile b/science/medit/files/patch-makefile new file mode 100644 index 000000000000..1feffe06e74f --- /dev/null +++ b/science/medit/files/patch-makefile @@ -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 \ diff --git a/science/medit/pkg-descr b/science/medit/pkg-descr new file mode 100644 index 000000000000..631d430a64ce --- /dev/null +++ b/science/medit/pkg-descr @@ -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 |